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
| ###############GENERAL######################## | |
| #list all folder sizes | |
| du -a -h --max-depth=1 | sort -hr | |
| #list by size | |
| ls -S -l | |
| #delete a folder | |
| rm -rf mydir |
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
| #!/bin/bash | |
| # Main Code | |
| case $1 in | |
| help) | |
| echo "options: | |
| some_help"; | |
| ;; | |
| do_something) |
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
| #############PUSH################################### | |
| git status | |
| git add <file> | |
| git commit | |
| #unod git add | |
| git reset | |
| #undo commit: | |
| $ git reset HEAD~ |
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
| " run: wget -O .vimrc_1 https://gist.githubusercontent.com/orhan-swe/d04d38e7d384ffe02eee2e21cc6a59a5/raw/db03ce2a97eb53c5e42ac67698b967d4569b2ac1/.vimrc | |
| "let mapleader="," | |
| set number | |
| set hidden " have unwritten changes to a file and be able to open a new file | |
| set tabstop=4 " default seems to be 8 | |
| set shiftwidth=4 " make indent als to 4 | |
| " set autochdir " current dir will be the current files dir, note: may give issues | |
| set visualbell " don't beep | |
| set noerrorbells " don't beep | |
| set title " change the terminals title |
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
| memcached: | |
| >sudo apt-get install memcached | |
| >sudo apt-get install php5-memcache |
NewerOlder