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
source "/usr/share/tmux/powerline.conf" | |
# split panes using | and - | |
bind | split-window -h -c "#{pane_current_path}" | |
bind - split-window -v -c "#{pane_current_path}" | |
set-option -g status-interval 1 | |
set-option -g automatic-rename on | |
set-option -g automatic-rename-format '#{b:pane_current_path}' | |
setw -g mode-keys vi |
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
#!/bin/sh | |
bash -c "xdotool getactivewindow key Home" | |
bash -c "xdotool getactivewindow key End" |
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
[Desktop Entry] | |
Version=1.0 | |
Name=Firefox Developer Edition | |
Comment=Browse the Web | |
Exec=/opt/firefox/firefox --class="firefox-developer" -P dev-edition-default %u | |
StartupNotify=true | |
StartupWMClass=firefox-developer | |
Icon=/opt/firefox/browser/icons/mozicon128.png | |
Terminal=false |
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
var search = 'search-phrase'; | |
var matches = document.cookie.split(';').filter(function(e) { return new RegExp(search, 'gi').test(e); }); |
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
$ cat package.json | grep version | awk '{print $2}' | sed s/\"//g | sed s/,//g |
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
module.exports = function(string) { | |
var md5 = require('crypto').createHash('md5'); | |
md5.update(string); | |
return md5.digest('hex'); | |
}; |
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
$ [sudo] tlp fullcharge BAT0 |
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
/** | |
* Dust.js decode html filter. Only in browser. | |
*/ | |
(function(dust) { | |
dust.filters = dust.filters || {}; | |
dust.filters.dh = function(value) { | |
var d = document.createElement('div'); | |
d.innerHTML = value; | |
return d.textContent; | |
}; |
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 getUnreadItems() { | |
$.ajax({ | |
url : "https://api.twitter.com/1/statuses/user_timeline.json?include_entities=true&include_rts=true&screen_name=" + account + "&count=1", | |
dataType : "jsonp", | |
success: function(results) { | |
var id = results['0'].id; | |
var text = results['0'].text; | |
var initialValue = results['0'].id; | |
var avatar = results['0'].user.profile_image_url; |