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 [ $EUID != 0 ]; then | |
echo "You must be root to run this script" 1>&2 | |
exit 1 | |
fi | |
URL_RELEASES="https://github.com/atom/atom/releases/latest" | |
NEW_RELEASE=$(curl -sL $URL_RELEASES | egrep -o 'href="([^"#]+)atom-amd64.deb"' | cut -d'"' -f2 | sort | uniq) | |
NEW_VERSION=$(echo $NEW_RELEASE | egrep -o '[0-9]+\.[0-9]+\.[0-9]+') | |
CURRENT_VERSION=$(atom --version | fgrep Atom | awk '{print $3}') |
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
'use strict'; | |
const puppeteer = require('puppeteer'); | |
(async() => { | |
const browser = await puppeteer.launch({ | |
headless: true, | |
ignoreHTTPSErrors: true, | |
timeout: 1000 |
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
<keymap version="1" name="Personal" parent="Default for XWin"> | |
<action id="BaseOnThisFunction" /> | |
<action id="CheckinProject" /> | |
<action id="CloseActiveTab"> | |
<keyboard-shortcut first-keystroke="shift ctrl w" /> | |
</action> | |
<action id="CloseContent"> | |
<keyboard-shortcut first-keystroke="ctrl w" /> | |
</action> | |
<action id="CompareTwoFiles" /> |
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
# fzf | |
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh | |
export FZF_DEFAULT_OPTS="--multi --reverse --border --inline-info --preview '([ -e {} ] && (head -20 {} || tree -C {} | head -20 ) || (echo {})) 2> /dev/null' --preview-window=right:40%:wrap" | |
export FZF_CTRL_R_OPTS="--no-preview" | |
export FZF_CTRL_T_OPTS="--bind 'ctrl-x:execute(subl -a {})'" | |
# fzf bindigs | |
bindkey '^P' fzf-file-widget |
OlderNewer