Skip to content

Instantly share code, notes, and snippets.

View colstrom's full-sized avatar

Chris Olstrom colstrom

View GitHub Profile
function emacs-daemon-start -a daemon
emacs --no-init-file --load ~/.emacs.d/$daemon/init.el --daemon=$daemon
end
#!/usr/bin/env bash
ARCHIVE=nix_1.10-1_amd64.deb
CHECKSUM=b284d26ca9ee57f90ce9a3eca1a8eae19243927491e374ac3a1322af7db07378
function resolve-dependencies {
apt-get --assume-yes install \
libdbd-sqlite3-perl \
libwww-curl-perl xz-utils \
software-properties-common
FROM colstrom/ubuntu-core
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0x27557f056dc33ca5 \
&& echo 'deb http://ppa.launchpad.net/fish-shell/release-2/ubuntu trusty main' >> /etc/apt/sources.list \
&& echo 'deb-src http://ppa.launchpad.net/fish-shell/release-2/ubuntu trusty main' >> /etc/apt/sources.list \
&& apt-get update \
&& apt-get -y dist-upgrade \
&& apt-get -y install fish git-core curl software-properties-common \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
@colstrom
colstrom / keybase.md
Created November 18, 2015 06:12
keybase.md

Keybase proof

I hereby claim:

  • I am colstrom on github.
  • I am colstrom (https://keybase.io/colstrom) on keybase.
  • I have a public key whose fingerprint is A2E1 8D10 7872 8C07 3F6F DB8E 94C9 55CA 28F6 1158

To claim this, I am signing this object:

---
name: concourse
releases:
- name: concourse
url: https://bosh.io/d/github.com/concourse/concourse?v=0.71.1
sha1: b28e7dc2bfd34b8b7f93349a83b7d5d136c3462c
- name: garden-linux
url: https://bosh.io/d/github.com/cloudfoundry-incubator/garden-linux-release?v=0.332.0
sha1: 5b7f294dc80d1ad76f9249c79fc5f01d34148ee8
Verifying that +colstrom is my blockchain ID. https://onename.com/colstrom
@colstrom
colstrom / gistpkg.zpl
Last active December 9, 2016 19:10
without-trailing.fish: removes a pattern from the end of strings
name = without-trailing
author = Chris Olstrom
license = MIT
provides = fish/functions/without-trailing
requires
command/sed
@colstrom
colstrom / gistpkg.zpl
Last active December 9, 2016 19:37
without-leading.fish: removes a pattern from the start of a string
name = without-leading
author = Chris Olstrom
license = MIT
provides = fish/functions/without-leading
requires
command/sed
#!/bin/sh
# The MIT License (MIT)
# Copyright (c) 2016 Chris Olstrom <[email protected]>
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
#!/bin/sh
# The MIT License (MIT)
# Copyright (c) 2016 Chris Olstrom <[email protected]>
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is