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
# git branch switch | |
def gbs [] { | |
let branch = ( | |
git branch | | |
split row "\n" | | |
str trim | | |
where ($it !~ '\*') | | |
where ($it != '') | | |
str join (char nl) | | |
fzf --no-multi |
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
# Prerequisites: | |
# kitty: https://sw.kovidgoyal.net/kitty/ | |
# kitty themes: https://github.com/dexpota/kitty-themes | |
# pastel: https://github.com/sharkdp/pastel | |
# Usage: | |
# $ kittycolors | |
# $ kittycolors -s | |
kittycolors() { | |
if [[ $# -eq 0 ]]; then | |
grep -o "#[a-f0-9]\{6\}" ~/.config/kitty/current-theme.conf | pastel color |
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
nnoremap <leader>x12 :%s/\n//g<cr>:%s/\~/\~\r/g<cr>gg:nohlsearch<cr> |
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 ocsh() { | |
local pods pod | |
pods=$(oc get pods | cut -d' ' -f 1 | sed '1d' | grep -v '\-build' | grep -v '\-deploy') && | |
pod=$(echo "$pods" | fzf +m) && | |
oc rsh $(echo "$pod") | |
} |
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 java() { | |
case $* in | |
-v) | |
;& | |
version) | |
;& | |
--version) shift 1; command java -version ;; | |
*) command java "$@" ;; | |
esac | |
} |
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
Using rake (0.8.7) | |
Using BlueCloth (1.0.1) | |
Using aaronh-chronic (0.3.9) | |
Using aasm (2.2.0) | |
Using activesupport (2.3.11) | |
Using rack (1.1.2) | |
Using actionpack (2.3.11) | |
Using actionmailer (2.3.11) | |
Using builder (3.0.0) | |
Using braintree (2.10.0) |
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 'http://rubygems.org' | |
gem 'rails', '2.3.11' | |
gem 'rack-ssl-enforcer' | |
#gem 'mysql', '=2.7' | |
gem 'mysql2', '0.2.7' | |
gem 'warden', '= 0.10.3' | |
gem 'devise', '= 1.0.9' |
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
import org.eclipse.swt.SWT; | |
import org.eclipse.swt.events.PaintEvent; | |
import org.eclipse.swt.events.PaintListener; | |
import org.eclipse.swt.layout.FillLayout; | |
import org.eclipse.swt.widgets.Canvas; | |
import org.eclipse.swt.widgets.Display; | |
import org.eclipse.swt.widgets.Shell; | |
public class Circle { | |
public void run() { |