about:config
browser.cache.disk.enable = false
browser.cache.memory.enable = true
browser.cache.memory.capacity = -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
#!/bin/bash | |
MY_URL="http://moefou.org" #change you website | |
RESULT_502=`curl -I $MY_URL|grep "HTTP/1.1 502"` | |
RESULT_504=`curl -I $MY_URL|grep "HTTP/1.1 504"` | |
if [ -n "$RESULT_502" ]; then | |
killall php-fpm;php-fpm | |
date>>/data/logs/web_error.log;echo "502 Bad Gateway">>/data/logs/web_error.log | |
elif [ -n "$RESULT_504" ]; then | |
killall php-fpm;php-fpm | |
date>>/data/logs/web_error.log;echo "504 Gateway Time-out">>/data/logs/web_error.log |
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 | |
/** | |
* Lightens/darkens a given colour (hex format), returning the altered colour in hex format.7 | |
* @param str $hex Colour as hexadecimal (with or without hash); | |
* @percent float $percent Decimal ( 0.2 = lighten by 20%(), -0.4 = darken by 40%() ) | |
* @return str Lightened/Darkend colour as hexadecimal (with hash); | |
*/ | |
function color_luminance( $hex, $percent ) { | |
// validate hex string |
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
npm install git+https://Navix@bitbucket.org/jetqa/shedjs.git --save |
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
echo 'export PATH=$PATH:/usr/local/bin' >> $HOME/.bashrc |
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
sudo npm cache clean -f | |
sudo npm install -g n | |
sudo n stable | |
sudo ln -sf /usr/local/n/versions/node/<VERSION>/bin/node /usr/bin/node |
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
pg_dump -h 127.0.0.1 --username=<USERNAME> -W <DBNAME> > <FILENAME>.psql |
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
git clone https://github.com/letsencrypt/letsencrypt | |
cd letsencrypt | |
./letsencrypt-auto certonly --webroot -w <PUBLIC_PATH> -d <DOMAIN> -d <DOMAIN_ALI> |
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
openssl genrsa -out server.key 4096 | |
openssl req -new -sha256 -key server.key -out server.csr | |
openssl x509 -req -days 3650 -sha256 -in server.csr -signkey server.key -out server.crt |
OlderNewer