cd ~
wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip -P ~
unzip ngrok-stable-linux-amd64.zip
sudo mv ngrok /usr/local/bin/
# To test out ngrok ssh background
ngrok tcp 22 --log=stdout > ~/ngrok.log &
# To copy token goto: https://dashboard.ngrok.com/get-started
ngrok authtoken ...
nano ~/.ngrok2/ngrok.yml
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 | |
Yii::$app->db->createCommand("SET foreign_key_checks = 0")->execute(); | |
$tables = Yii::$app->db->schema->getTableNames(); | |
foreach ($tables as $table) { | |
Yii::$app->db->createCommand()->dropTable($table)->execute(); | |
} | |
Yii::$app->db->createCommand("SET foreign_key_checks = 1")->execute(); |
sudo apt-get install xz-utils
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz -P ~/
tar -xvf ~/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz -C ~/
cd ~/wkhtmltox/bin/
sudo mv wkhtmltopdf /usr/bin/wkhtmltopdf
sudo mv wkhtmltoimage /usr/bin/wkhtmltoimage
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
<snippet> | |
<content><![CDATA[ | |
<script type="text/javascript"> | |
jQuery(document).ready(function(\$) { | |
${1://put all your jQuery goodness in here.} | |
}); | |
</script> | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>jqready</tabTrigger> |