Update system packages -- will migrate system forward to CentOS 5.8. (Optional?)
$ sudo yum updateInstall the EPEL Repo:
| .ipad-only, .iphone-only, .retina-only, .non-retina-only, .retina-iphone-only, .non-retina-iphone-only { display: none; } | |
| /* ---------- iPad Only ---------- */ | |
| @media only screen and (device-width: 768px) { | |
| .ipad-only { display: block; } | |
| } | |
| /* ---------- iPhone/iPod Only ---------- */ | |
| @media only screen and (device-width: 320px) { | |
| .iphone-only { display: block; } |
| # Tkinter and GPIO together | |
| from Tkinter import * | |
| import RPi.GPIO as GPIO | |
| GPIO.setmode(GPIO.BCM) | |
| GPIO.setup(24, GPIO.OUT) | |
| GPIO.output(24, GPIO.LOW) | |
| def toggle(): |
| #!/usr/bin/python | |
| import time | |
| from SimpleCV import Color, Image, np, Camera | |
| cam = Camera() #initialize the camera | |
| quality = 400 | |
| minMatch = 0.3 | |
| try: | |
| password = Image("password.jpg") |
This process worked for me. I take no responsibility for any damage or loss incurred as a result of following or not following these steps or, for that matter, anything else you might do or not do.
svn.domain.com.au.http (other protocols should work).git.domain.com.au and:| #!/bin/bash | |
| # | |
| # This script configures WordPress file permissions based on recommendations | |
| # from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
| # | |
| # Author: Michael Conigliaro | |
| # | |
| WP_OWNER=changeme # <-- wordpress owner | |
| WP_GROUP=changeme # <-- wordpress group | |
| WP_ROOT=/home/changeme # <-- wordpress root directory |
| <?php | |
| /** | |
| * This script is for easily deploying updates to Github repos to your local server. It will automatically git clone or | |
| * git pull in your repo directory every time an update is pushed to your $BRANCH (configured below). | |
| * | |
| * Read more about how to use this script at http://behindcompanies.com/2014/01/a-simple-script-for-deploying-code-with-githubs-webhooks/ | |
| * | |
| * INSTRUCTIONS: | |
| * 1. Edit the variables below | |
| * 2. Upload this script to your server somewhere it can be publicly accessed |
UPDATE 2014-12-21: RubyGems 1.8.30, 2.0.15 and 2.2.3 have been released. It requires manual installation, please see instructions below.
Hello,
If you reached this page, means you've hit this SSL error when trying to
| #add 'node_modules' to .gitignore file | |
| git rm -r --cached node_modules | |
| git commit -m 'Remove the now ignored directory node_modules' | |
| git push origin master |
| <?php | |
| // Created following https://medium.com/@bkwebster/how-to-get-instagram-api-access-token-and-fix-your-broken-feed-c8ad470e3f02 | |
| function get_instagram($user_id=XXXXXXXXX, $count=18, $width=190, $height=190){ | |
| $url = 'https://api.instagram.com/v1/users/'.$user_id.'/media/recent/?access_token=XXXXXXXXXXXXXXXXXXXXXX&count='.$count; | |
| // Also Perhaps you should cache the results as the instagram API is slow | |
| $cache = './instagram/'.sha1($url).'.json'; | |
| if(file_exists($cache) && filemtime($cache) > time() - 60*60){ | |
| // If a cache file exists, and it is newer than 1 hour, use it |