I hereby claim:
- I am jeremykendall on github.
- I am jeremykendall (https://keybase.io/jeremykendall) on keybase.
- I have a public key whose fingerprint is F208 596D C3AF 4E0F 5799 3253 AE91 19ED 6A12 CA18
To claim this, I am signing this object:
#!/bin/bash | |
# Forces an ntp update | |
# | |
# Based on SO user Martin Schröder's answer to "How to force a clock update | |
# using ntp?": http://askubuntu.com/a/256004/41943 | |
# Fail fast (set -e will bail at first error) | |
set -e | |
if [ "$EUID" -ne 0 ]; then |
I hereby claim:
To claim this, I am signing this object:
"dist": { | |
"type": "zip", | |
- "url": "https://<private-git-repo>/repos/mirrors/doctrine-doctrine-bundle/zipball/765b0d87fcc3e839c74817b7211258cbef3a4fb9?access_token=981ac7c34450e7a84f7252b43cdc508ed1748d3e", | |
- "reference": "765b0d87fcc3e839c74817b7211258cbef3a4fb9", | |
+ "url": "https://<private-git-repo>/repos/mirrors/doctrine-doctrine-bundle/zipball/v1.2.0?access_token=981ac7c34450e7a84f7252b43cdc508ed1748d3e", | |
+ "reference": "v1.2.0", | |
"shasum": null | |
}, | |
"require": { | |
"doctrine/dbal": ">=2.2,<2.5-dev", |
<?php | |
/** | |
* Example of password hashing and verification with password_hash and | |
* password_verify | |
* | |
* This script is intended to be run from the command line | |
* like so: 'php -f password_hash_example.php' | |
* | |
* @see http://stackoverflow.com/a/20809916/1134565 |
#!/usr/bin/env php | |
<?php | |
if (!$argc == 3) { | |
die('Please provide input and output file names'); | |
} | |
$file = $argv[1]; | |
$output = $argv[2]; |
<?php | |
add_filter('nav_menu_css_class', 'namespace_menu_classes', 10, 2); | |
function namespace_menu_classes($classes , $item) | |
{ | |
if (get_post_type() == 'company' || is_archive('company')) { | |
$classes = str_replace('current_page_parent', '', $classes); | |
if (strpos($item->url, 'portfolio') !== false) { |
exec { "sed -i 's/www-data/vagrant/g' /etc/apache2/envvars": | |
onlyif => "/bin/grep -c 'www-data' /etc/apache2/envvars", | |
notify => Service['apache2'], | |
require => Package['apache2'], | |
} |
# php -v | |
PHP 5.3.14 (cli) (built: Aug 24 2012 12:56:43) | |
Copyright (c) 1997-2012 The PHP Group | |
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies | |
# php -a | |
Interactive shell | |
php > var_dump(directory_separator) | |
php > var_dump(DIRECTORY_SEPARATOR); |
var http = require('http'); | |
http.createServer(function(request, response) { | |
response.writeHead(200); | |
response.end("Hello, dogg!"); | |
}).listen(9090); | |
console.log('Listening on port 9090'); |
var http = require('http'); | |
http.createServer(function(request, response) { | |
response.writeHead(200); | |
response.end("Hello, dogg!"); | |
}).listen(9090); | |
console.log('Listening on port 9090'); |