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
# Pop-out player: | |
# Press mod+PageUp to pop out the current window: float it, resize it, stick it. | |
# Press mod+Shift+PageUp to enter edit mode. | |
bindsym $mod+Prior fullscreen disable, floating enable, resize set 576 324, sticky enable, move window to position 1322 735 | |
bindsym $mod+Shift+Prior mode "$mode_popout" | |
set $mode_popout Pop-out player: (k) lower left, (l) lower right, (i) upper left, (o) upper right | |
mode "$mode_popout" { | |
# Change position |
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
// 1. Go to page https://www.linkedin.com/settings/email-frequency | |
// 2. You may need to login | |
// 3. Open JS console | |
// ([How to?](http://webmasters.stackexchange.com/questions/8525/how-to-open-the-javascript-console-in-different-browsers)) | |
// 4. Copy the following code in and execute | |
// 5. No more emails | |
// | |
// Bookmarklet version: | |
// http://chengyin.github.io/linkedin-unsubscribed/ |
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
# this will show current branch name of repository in shell prompt | |
# add this in ~/.bashrc | |
export PS1="\\[\033[1;55m\]\w\$(__git_ps1 ' [%s]') \$ " |
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 | |
// Originally by Andrew Moore | |
// Src: http://stackoverflow.com/questions/4795385/how-do-you-use-bcrypt-for-hashing-passwords-in-php/6337021#6337021 | |
// | |
// Heavily modified by Robert Kosek, from data at php.net/crypt | |
class Bcrypt { | |
private $rounds; | |
private $prefix; |
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
# Enable Vim mode in ZSH | |
bindkey -v | |
autoload -U edit-command-line | |
zle -N edit-command-line | |
bindkey '^E' edit-command-line # Opens Vim to edit current command line | |
bindkey '^R' history-incremental-search-backward # Perform backward search in command line history | |
bindkey '^S' history-incremental-search-forward # Perform forward search in command line history | |
bindkey '^P' history-search-backward # Go back/search in history (autocomplete) | |
bindkey '^N' history-search-forward # Go forward/search in history (autocomplete) |