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
#!/bin/bash | |
####### | |
# Keep in mind that Ubuntu 14.04 has a little broken python-boto. I found that installing https://launchpad.net/~chris-lea/+archive/ubuntu/python-boto does help | |
###### | |
declare -x S3_USE_SIGV4=True #required for eu-central-1 | |
declare -x AWS_ACCESS_KEY_ID= |
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
server { #generic php-fpm setup, really | |
server_name i; | |
root /var/www/i/www; | |
client_max_body_size 20m; | |
index index.php index.htm index.html; | |
location ~ ^.+\.php$ { | |
if ( -f $document_root/../maintenance) { | |
return 503; | |
} |
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 random_number($length=1){ | |
$number = array(); | |
for($i=0; $i < $length; $i++){ | |
$number[] = mt_rand(0,9); | |
} | |
return $number; | |
} | |
function company_itn(){ |
NewerOlder