This file contains hidden or 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
| #installing mongodb | |
| vim /etc/yum.repos.d/mongodb.repo | |
| [mongodb] | |
| name=MongoDB Repository | |
| baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/ | |
| gpgcheck=0 | |
| enabled=1 | |
| yum install mongo-10gen mongo-10gen-server | |
| chkconfig mongod on |
This file contains hidden or 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
| Blockchain | |
| - Anything that can be mathematically represented | |
| - can be modelled | |
| - secured | |
| - traded | |
| Privacy: | |
| - Info, Identity, Funds are private | |
| Contract: Program that runs everytime a message called a transaction is received |
This file contains hidden or 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
| # Serve Static Files from public folder | |
| app.use(express.static('public')); | |
| # Serve "public" folder's files as Static Files from path "/static" | |
| app.use('/static', express.static('public')); | |
| # Hosting apache & NodeJS on same server | |
| <VirtualHost *:80> | |
| ServerName bms.komiapp.com | |
| ProxyPreserveHost on |
This file contains hidden or 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 frontpage: | |
| https://ecommerce.shopify.com/c/ecommerce-design/t/if-home-variable-5824 | |
This file contains hidden or 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
| ###### ~/.bash_profile ###### | |
| alias a='vim ~/.bash_profile && source ~/.bash_profile' | |
| alias gpp='git pull && git push' | |
| # FIND PROCESS | |
| function p(){ | |
| ps aux | grep -i $1 | grep -v grep | |
| } |
This file contains hidden or 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
| mysqltuner.pl | |
| https://raw.githubusercontent.com/major/MySQLTuner-perl/master/mysqltuner.pl | |
| tuning primer sh | |
| http://www.day32.com/MySQL/tuning-primer.sh | |
| calculator | |
| http://www.mysqlcalculator.com/ | |
This file contains hidden or 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 | |
| $conn = mysqli_connect($ht, $ur, $pd); | |
| mysqli_select_db($conn, $db); | |
| //foreach req, check if the column exists, otherwise create it | |
| foreach($_POST as $k => $v){ | |
| $key = trim(mysqli_real_escape_string($conn, $k)); |
This file contains hidden or 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
| apt-get update | |
| #lamp | |
| apt-get install apache2 mysql-server | |
| mysql_secure_installation | |
| apt-get install php5 php-pear php5-mysql git vim locate | |
| updatedb | |
| vim /etc/vim/vimrc | |
| syntax on |
This file contains hidden or 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 | |
| error_reporting(-1); // reports all errors | |
| ini_set("display_errors", "1"); // shows all errors | |
| ini_set("log_errors", 1); | |
| ini_set("error_log", "/tmp/php-error.log"); | |
| ?> | |
This file contains hidden or 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
| password | |
| 123456 | |
| 12345678 | |
| 1234 | |
| qwerty | |
| 12345 | |
| dragon | |
| pussy | |
| baseball | |
| football |