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
if (${DOLLAR}http_x_forwarded_proto != "https") { | |
rewrite ^(.*)${DOLLAR} https://${DOLLAR}server_name${DOLLAR}1 permanent; | |
} |
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 | |
$row = 0; | |
if ($argc != 4) { | |
die('Expected 3 arguments: php convert.php $input_file $output_file $after_date' . "\n"); | |
} | |
date_default_timezone_set('Europe/London'); |
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 | |
function colours($red, $green, $blue) { | |
if ($red > $green) { | |
if ($red > $blue) { | |
return 'red'; | |
} else if ($blue > $red) { | |
return 'blue'; | |
} | |
} else if ($green > $red) { |
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
Fuck you, I won't do what you tell me | |
Fuck you, I won't do what you tell me | |
Fuck you, I won't do what you tell me | |
Fuck you, I won't do what you tell me | |
Fuck you, I won't do what you tell me | |
Fuck you, I won't do what you tell me | |
Fuck you, I won't do what you tell me | |
Fuck you, I won't do what you tell me | |
Fuck you, I won't do what you tell me! | |
Fuck you, I won't do what you tell me! |
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
[SSH] opening connection to vagrant@127.0.0.1:2222<{:user_known_hosts_file=>"/dev/null", :paranoid=>false, :keys_only=>true, :port=>"2222", :keys=>["/Users/andy/Work/adaptivehosting/adaptivehosting-lamp/.kitchen/kitchen-vagrant/default-ubuntu-1404/.vagrant/machines/default/virtualbox/private_key"]}> | |
ssh vagrant@127.0.0.1 -p 2222 -i /Users/andy/Work/adaptivehosting/adaptivehosting-lamp/.kitchen/kitchen-vagrant/default-ubuntu-1404/.vagrant/machines/default/virtualbox/private_key |
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
execute 'create-ssh-key-' + account_id do | |
user account_id | |
cwd user_home | |
environment( | |
'HOME' => user_home, | |
'USER' => account_id | |
) | |
command 'ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa' | |
not_if { ::File.exist?(File.join(user_home, '.ssh', 'id_rsa')) } | |
end |
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
require 'spec_helper' | |
describe package('httpd'), :if => os[:family] == 'redhat' do | |
it { should be_installed } | |
end | |
describe package('apache2'), :if => os[:family] == 'ubuntu' do | |
it { should be_installed } | |
end |
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
Hi Andy, | |
Yes certainly, I need some information from you please: | |
Address: | |
Contact number: | |
Card details to confirm the booking, you can call with these if you wish, | |
Card type: |
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 | |
if ($argc == 1) { | |
die("Specify a url!"); | |
} | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, $argv[1]); | |
curl_setopt($ch, CURLOPT_VERBOSE, true); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); |
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 | |
VERSION=`grep 'version' metadata.rb | grep -o "[0-9.]" | tr -d '\n'''` | |
git tag -d $VERSION | |
git push origin :refs/tags/$VERSION |
NewerOlder