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
| # vim: set expandtab sw=4 tabstop=4: | |
| # *color* 'area' 'fgcolor' 'bgcolor' '[attributes]' | |
| # general | |
| color default 15 0 | |
| color cursor 15 241 | |
| color title-focus 242 221 | |
| color title-blur 242 221 | |
| color delimiter 213 default | |
| color author 156 default |
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
| dtrace -p PROCESS_ID -n 'syscall::open*:entry { printf("%s %s",execname,copyinstr(arg0)); }' |
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
| find YOURDIRECTORY/ -type f -perm /u=x,g=x,o=x -exec ls -l {} \; |
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
| find . -size +1M -exec rm -f {} \; |
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
| /** | |
| * Equalizer by Geo | |
| * Equalizer all div heights inside a div | |
| */ | |
| function equalizer(cssPath) { | |
| var element = $(cssPath); | |
| var maxHeight = Math.max.apply(null, element.map(function() { | |
| return $(this).outerHeight(); | |
| }).get()); | |
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
| cat .ssh/id_rsa.pub | ssh [email protected] "cat >> .ssh/authorized_keys" |
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
| find www/ -maxdepth 2 -type d -name ".idea" -ls |
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
| SELECT TABLE_NAME, table_rows, data_length, index_length, | |
| round(((data_length + index_length) / 1024 / 1024),2) "Size in MB" | |
| FROM information_schema.TABLES WHERE table_schema = "schema_name" | |
| ORDER BY (data_length + index_length) DESC; |
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
| grant all privileges on *.* to root@'%' identified by ''; |
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 | |
| if [ ! -z $1 ]; then | |
| if [ $1 == 'list' ]; then | |
| echo '' | |
| echo 'Available PHP versions' | |
| echo '----------------------' | |
| ls -al /opt/phpbrew/php/ | grep php | cut -d '-' -f 4 | |
| echo '' | |
| fi |
NewerOlder