Skip to content

Instantly share code, notes, and snippets.

View xlymian's full-sized avatar

Paul Mylchreest xlymian

View GitHub Profile
@junegunn
junegunn / b.rb
Last active January 26, 2023 14:34
b - browse Chrome bookmarks with fzf
#!/usr/bin/env bash
# vim: set filetype=ruby:
# b - browse Chrome bookmarks with fzf
[ $(uname) = Darwin ] || exit 1
which fzf > /dev/null 2>&1 || brew reinstall --HEAD fzf || exit 1
/usr/bin/ruby -x "$0" |
fzf-tmux -u 30% --ansi --multi --no-hscroll --tiebreak=begin |
awk 'BEGIN { FS = "\t" } { print $2 }' |
@samertm
samertm / .emacs
Last active March 31, 2019 16:21
Tricking Out Emacs for Go
;; from https://www.youtube.com/watch?v=r6j2W5DZRtA
;; get the following packages ("M-x package-list-packages"):
;; go-mode
;; go-eldoc
;; company-mode
;; company-go
;; get the following go programs (run each line in your shell):
;; go get golang.org/x/tools/cmd/godoc
;; go get golang.org/x/tools/cmd/goimports
;; go get github.com/rogpeppe/godef
(source "melpa" "http://melpa.milkbox.net/packages/")
(source "gnu" "http://elpa.gnu.org/packages/")
(source "marmalade" "http://marmalade-repo.org/packages/")
(depends-on "ac-js2")
(depends-on "adaptive-wrap")
(depends-on "ag")
(depends-on "auto-complete")
(depends-on "calfw")
(depends-on "cask")
@kristopherjohnson
kristopherjohnson / Zenburn.dvtcolortheme
Created October 5, 2013 13:41
Zenburn color theme for Xcode 4 and Xcode 5. Save to ~/Library/Developer/Xcode/UserData/FontAndColorThemes/. See http://kippura.org/zenburnpage/
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>DVTConsoleDebuggerInputTextColor</key>
<string>0 0 0 1</string>
<key>DVTConsoleDebuggerInputTextFont</key>
<string>Menlo-Bold - 11.0</string>
<key>DVTConsoleDebuggerOutputTextColor</key>
<string>0 0 0 1</string>
@xlymian
xlymian / git-prunable-branches
Created December 9, 2011 21:26
git-prunable-branches
#!/usr/bin/env ruby
# git_branch_prunable 0.1 - 2011-11-29
# by Paul Mylchreest (paul.mylchreest@mac.com)
#
%x( git branch ).each_line do |branch|
branch.strip!
next if branch =~ /master|development|staging/
cmd = "git log #{branch} -n 1 --pretty=oneline"
first_commit_line = %x( #{cmd} )
@adamstac
adamstac / TODO
Created February 11, 2011 18:50
A Rubyist’s guide to setting up a Mac OS X development environment using Homebrew, RVM, Git and Bundler
* Review this article and add new steps as needed: http://blog.therubymug.com/blog/2010/05/20/the-install-osx.html