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
--color | |
--format documentation |
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
gem: --no-ri --no-rdoc |
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
... | |
# for simple user | |
bold_red='\e[1;31m' | |
background_white='\e[30;47m' | |
reset_colors='\e[0m' | |
PS1="${debian_chroot:+($debian_chroot)}\[$background_white\] \w \[$reset_colors\] \[$bold_red\]>\[$reset_colors\] " | |
# for root | |
bold_red='\e[1;31m' |
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
Check keycode: | |
xev | grep -A2 --line-buffered '^KeyRelease' | sed -n '/keycode /s/^.*keycode \([0-9]*\).* (.*, \(.*\)).*$/\1 \2/p' | |
List of keysyms: | |
http://wiki.linuxquestions.org/wiki/List_of_Keysyms_Recognised_by_Xmodmap | |
Add keysym to special keycode: | |
xmodmap -e "keycode 135 = z Z Cyrillic_ya Cyrillic_YA" | |
Export xmodmap configuration: |
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
[global_config] | |
focus = mouse | |
inactive_color_offset = 0.47 | |
suppress_multiple_term_dialog = True | |
[keybindings] | |
[profiles] | |
[[default]] | |
scrollbar_position = hidden | |
palette = "#2e3436:#e91e16:#2db600:#c4a000:#3465a4:#75507b:#06989a:#d3d7cf:#555753:#ef2929:#8ae234:#fce94f:#729fcf:#ad7fa8:#34e2e2:#eeeeec" | |
copy_on_selection = True |
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
n=$(which node);n=${n%/bin/node}; chmod -R 755 $n/bin/*; sudo cp -r $n/{bin,lib,share} /usr/local |
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
xmodmap -e "clear Lock" | |
xmodmap -e "keycode 66 = Escape" |
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
[client] | |
default-character-set=utf8 | |
[mysql] | |
default-character-set=utf8 | |
[mysqld] | |
collation-server = utf8_unicode_ci | |
init-connect='SET NAMES utf8' | |
character-set-server = utf8 |
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
ssh -f user@host -L 3307:127.0.0.1:3306 -N | |
mysql -h 127.0.0.1 -P 3307 |
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
function base64ToBlob(b64String, callback) { | |
var contentType = b64String.split(',')[0].split(':')[1].split(';')[0]; | |
var byteCharacters = atob(b64String.split(',')[1]); | |
var sliceSize = 512; | |
var byteArrays = []; | |
for (var offset = 0; offset < byteCharacters.length; offset += sliceSize) { | |
var slice = byteCharacters.slice(offset, offset + sliceSize); | |
var byteNumbers = new Array(slice.length); | |
for (var i = 0; i < slice.length; i++) { |
OlderNewer