Just a quick test for gists creation notifications
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
DOCKER_IMAGE_NAMESPACE=$1 | |
DOCKER_REGISTRY=${DOCKER_REGISTRY:-registry.docker.lan} | |
readarray -t tags < <(curl -H “Accept: application/vnd.docker.distribution.manifest.v2+json” http://$DOCKER_REGISTRY/v2/${DOCKER_IMAGE_NAMESPACE}/tags/list | jq “.tags” | jq -r -c ‘to_entries | .[].value’) | |
for tag in “${tags[@]}” | |
do | |
echo “Removing tag $tag for $DOCKER_IMAGE_NAMESPACE” |
I hereby claim:
- I am jc1arke on github.
- I am jc1arke (https://keybase.io/jc1arke) on keybase.
- I have a public key ASA5OwAbnWp_uxoCB60-Q95-NsZ48YY_uP1LhHjgwWBbrgo
To claim this, I am signing this object:
List of phones I have had in order from first to last/current:
- Nokia 5110
- Nokia 3510i
- Motorola Razr v3x
- HP iPaq
- Palm Treo
- BlackBerry 8310
- BlackBerry 8520
- Sony-Ericsson XPeria X10 Mini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'aws-sdk' | |
AWS.config( :access_key_id => ENV['AWS_ACCESS_KEY_ID'], :secret_access_key => ENV['AWS_SECRET_KEY'] ) | |
bucket = 'route53_backups' | |
debug = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Login or logout will be needed to according to current user state | |
if( $fbMe ) : | |
$button_url = $facebook -> getLogoutUrl(); | |
$button_image = "http://static.ak.fbcdn.net/rsrc.php/z2Y31/hash/cxrz4k7j.gif"; | |
else : | |
$button_url = $facebook -> getLoginUrl(); | |
$button_image = "http://static.ak.fbcdn.net/rsrc.php/zB6N8/hash/4li2k73z.gif"; | |
endif; | |
..... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include_once "fbmain.php"; | |
$config['baseurl'] = "http://codetest.co.za/week9/"; | |
// Check if user session is valid and user is signed in | |
if( $fbMe ) : | |
// Retrieve the movies that the user likes via the Graph API | |
try | |
{ | |
$movies = $facebook -> api( '/me/movies' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$fbconfig['appid'] = "your-application-id-here"; | |
$fbconfig['api'] = "your-application-api-key"; | |
$fbconfig['secret'] = "your-application-secrey-key"; | |
try | |
{ | |
include_once "facebook.php"; | |
} | |
catch( Exception $e ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var enableRefresh = true; // Set this to true if you want it to continously check for new tweets, otherwise set it as false | |
// Execute only once the *full* document has rendered to the user's browser | |
jQuery(document).ready( function() { | |
loadTweets( "twitter_name_here", 1, 'ul.latest_tweet' ); // Call function loadTweets (pay attention to the "1" ;) ;) | |
}); | |
var loadTweets = function(user, count, element) { | |
// Set the URL | |
twitter_url = "http://twitter.com/status/user_timeline/" + user + ".json?count=" + count + "&callback=?"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class GetMyTweets | |
{ | |
private $username = null; | |
private $password = null; | |
/** | |
* Overloaded constructor used to set the username and password for the class | |
*/ | |
public function __construct( $_username, $_password ) |