Custom Text

You can call me Arrow or aroceu, whatever your heart desires. I write stories and code, I make graphics and designs, I talk about myself a lot, and I prefer lists in threes but break that preference quite often.
ceu: (luke)
Note: Replace all RED CAPITALIZED TEXT with your/your repository's information.

If using Github Desktop:

  1. In repository (header) > Repository > Repository Settings
  2. Remote > Primary Remote Repository (origin) URL
  3. Make sure that repository URL is HTTPS://

cPanel Version Control:

  1. Navigate to your website's cPanel
  2. Open Terminal in cPanel
  3. Enter these commands in the following order (ENTER after each):
    1. ssh-keygen -t rsa -f ~/.ssh/KEYFILENAME -b 4096 -C "USERNAME@ROOT.DOMAIN"
    • KEYFILENAME can be anything. I advise making it similar if not identical to your repository name.
  4. touch ~/.ssh/config
  5. chmod 0600 ~/.ssh/config
  6. chown USERNAME:USERNAME ~/.ssh/config
  • Navigate to SSH Access > Manage SSH Keys
    1. REPOSITORY Key > Manage > Authorize
    2. REPOSITORY Key > View/Download > Copy key
  • Navigate to your Github > Repository > Settings
    1. Deploy Keys > Add deploy key
    2. Title: [anything]
    3. Key: [paste from earlier ("copy key")]
      • Allow write access
  • Navigate to your website's cPanel > File Manager
    1. Navigate to .ssh (folder) > config (file)
    2. Add to file:
                              Host REPOSITORY.github.com
         			User git
      			Hostname github.com
      			IdentityFile ~/.ssh/KEYFILENAME
          			IdentitiesOnly yes
    3. Save and close
  • Navigate back to cPanel Terminal
    • Test if the repository works with ssh -Tv git@REPOSITORY.github.com
    • If it outputs by saying Hi REPOSITORY/USERNAME then it's successful. Don't worry about additional messages.
  • Navigate to GitVersion Control
    1. Create the repository
    2. For the repository URL, make sure the format is: ssh://REPOSITORY.github.com/USERNAME/REPOSITORY

    Then you're done! All updates pulled from Github Version Control in cPanel should now work with your private repository :)

    ceu: (hilda)
    Here's the Javascript code I use to echo an HTML version of my atom feed to my updates page.

    Read more... )
    ceu: (tahani!!)
    I don't write a lot of Javascript code, but a friend wanted some help with website stuff and I'm always happy to help, so I wrote some code for her. I'm sharing it here for archival reasons, but also if anyone happens to stop by and is interested in implementing this logic themselves.

    You will need some familiarity with HTML, CSS, and algorithmic code for this. I will not be explaining it in detail here.

    What this code does: For each in-page click with the corresponding ID, a random image will be selected and changed per click. At the same time, text elsewhere on the page will also change, per the webmaster's preset settings.

    What this code is for: Websites that utilize iframes as internal navigation, in order to allow the title of the page, not within the iframe, to change; simultaneously this allows the random image to change with each new iframe navigation without leaving or refreshing the page.

    Read more... )