Skip to content

Instantly share code, notes, and snippets.

View ChrisBuchholz's full-sized avatar

Christoffer Buchholz ChrisBuchholz

View GitHub Profile
Debugger entered--Lisp error: (void-function custom-set-variable)
(custom-set-variable '(company-quickhelp-color-background "#4F4F4F") '(company-quickhelp-color-foreground "#DCDCCC") '(custom-safe-themes '("eacee5f1c2f46185d6f089d97b7953bd9fc5d5b773f72cc76c9fcb556eeba174" default)) '(fci-rule-color "#5B6268") '(jdee-db-active-breakpoint-face-colors (cons "#1B2229" "#51afef")) '(jdee-db-requested-breakpoint-face-colors (cons "#1B2229" "#98be65")) '(jdee-db-spec-breakpoint-face-colors (cons "#1B2229" "#3f444a")) '(nrepl-message-colors '("#CC9393" "#DFAF8F" "#F0DFAF" "#7F9F7F" "#BFEBBF" "#93E0E3" "#94BFF3" "#DC8CC3")) '(org-agenda-files '("~/org/personal.org" "~/org/refile.org" "~/org/crypto.org")) '(package-selected-packages '(evil-nerd-commenter evil-collection spacemacs-theme drag-stuff counsel-projectile treemacs-projectile projectile treemacs-evil treemacs general org-bullets doom-themes multi-term paredit slime crux org-link-minor-mode evil-surround evil-visual-mark-mode)) '(pdf-view-midnight-colors '("#

Keybase proof

I hereby claim:

  • I am chrisbuchholz on github.
  • I am chrisbuchholz (https://keybase.io/chrisbuchholz) on keybase.
  • I have a public key ASAZ7Sfqtc42TDn3B6Ce4O2wl5ZjlTdWQTJh-mpJZ0atqgo

To claim this, I am signing this object:

@ChrisBuchholz
ChrisBuchholz / errors.rs
Last active January 6, 2017 14:32
swift and rust error handling
// run with `cargo script errors.rs`
#[derive(Debug)]
pub enum AError {
SomeError,
}
pub enum Ado {
A,
B,
function editgit() {
CMD='git ls-files -m'
if eval $CMD; then
vim `eval $CMD` -O
fi
}
let names = Vec;
name!("john");
name!("jane");
fn main() {
// ...
}
mod routes;
fn main() {
let routes = routes::all();
for r in routes {
println!("{}", n);
}
}
let mut server = Server::new();
server.get("/", hello_handle);
server.get("/hmm", hmm_handle);
server.blueprint("/a", a::routes);
server.blueprint("/b", b::routes);
server.listen("127.0.0.1:8080");
[alias]
s = status
c = commit -m
a = add
aa= !git add -u && git add . && git status
# add changes to the prior commit and keep original commit message
# similar to squashing two commits, but quicker
ca = commit --amend -C HEAD
cob = checkout -b
up = !git fetch origin && git rebase origin/master
Enum('Role', 'viewer technician admin owner')
@ChrisBuchholz
ChrisBuchholz / gist:ad19fc0d289f80a9c3bb
Created March 10, 2015 14:02
mount a remote folder over ssh
rmount () {
#
# requires osxfuse, sshfs and ssh-copy-id and that you have keyless
# ssh login set up between you and the remote
#
# usage:
# rmount 99.99.99.99 /some/path
#
# if you leave out the path it defaults to ./ (home folder)
#