Skip to content

Instantly share code, notes, and snippets.

@aanton
aanton / Personal.xml
Last active May 3, 2018 05:13
PHPStorm keymap
<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" />
@aanton
aanton / puppeteer.js
Created September 15, 2017 14:09
Puppeteer screenshot demo
'use strict';
const puppeteer = require('puppeteer');
(async() => {
const browser = await puppeteer.launch({
headless: true,
ignoreHTTPSErrors: true,
timeout: 1000
@aanton
aanton / .zshrc
Last active July 15, 2023 20:25
fzf & fd combo for improving your ZSH shell
# 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