I hereby claim:
- I am abovedave on github.
- I am djl (https://keybase.io/djl) on keybase.
- I have a public key whose fingerprint is 41C3 3F81 6988 1E75 EF14 B6EA D13A 8253 2635 C319
To claim this, I am signing this object:
server { | |
server_name www.example.com; | |
rewrite ^ $scheme://example.com$uri permanent; | |
} | |
server { | |
listen 80; | |
server_name example.com; | |
root /srv/www/example.com/public_html/; |
#!/usr/bin/env bash | |
destination="/path/to/save/sql" | |
mysql_host="localhost" | |
mysql_user="readaccount" | |
mysql_pass="password" | |
databases=`mysql -h$mysql_host --user=$mysql_user -p$mysql_pass -e "SHOW DATABASES;" | grep -Ev "(Database|information_schema)"` | |
for db in $databases; |
rsync -r ssh remoteuser@remotehost:/copy/from /copy/to/ |
#!/usr/bin/env bash | |
# Media Temple account number | |
account="XXXXXX" | |
# A list of website directories to back up | |
websites="example.com" | |
homedir="/home/$account/users/.home" |
function numberWithCommas(x) { | |
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); | |
} | |
$('.count ul li strong').each(function(){ | |
var start = parseInt($(this).text(), 10); | |
var _self = $(this); | |
setInterval(function(){ | |
var update = start++; |
// ------------------------ | |
// Syntax 'input:class:target' for toggling classes | |
// E.g., data-class="body:show-nav:header nav" | |
$('[data-class]').each(function(){ | |
var self = $(this), | |
input = self.data('class').split(':'), | |
root = $(input[0]), | |
theclass = input[1], | |
target = $(input[2]), |
if(window.devicePixelRatio >= 1.2){ | |
var images = document.getElementsByTagName('img'); | |
for(var i=0;i < images.length;i++){ | |
var attr_2x = images[i].getAttribute('data-2x'); | |
if(attr_2x){ | |
images[i].src = attr_2x; | |
} | |
} |
$lang['fr'] = [ | |
"checkoutTitle" => "Purchase from La Pèira", | |
"subTotal" => "Subtotal", | |
"tax" => "Tax", | |
"total" => "Total", | |
"fullName" => "Full name", | |
"addressLineOne" => "Address line one", | |
"addressLineTwo" => "Address line two", | |
"cityOrTown" => "City/Town", | |
"postCode" => "Post code", |
body { | |
font-size: 105%; | |
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | |
} | |
body.ghx-scroll-columns { | |
overflow: auto !important; | |
} | |
#header { | |
position: fixed; | |
z-index: 100; |
I hereby claim:
To claim this, I am signing this object: