Skip to content

Instantly share code, notes, and snippets.

View khebbie's full-sized avatar

Klaus Hebsgaard khebbie

View GitHub Profile
(defun dotspacemacs/layers ()
(setq-default
dotspacemacs-configuration-layer-path '()
dotspacemacs-delete-orphan-packages t
dotspacemacs-distribution 'spacemacs
dotspacemacs-configuration-layers
`((auto-completion :variables
auto-completion-return-key-behavior nil
@khebbie
khebbie / pre-setup.ps1
Last active November 13, 2015 08:57
Machine setup
# run this file as admin
Set-ExecutionPolicy Set-ExecutionPolicy
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
@khebbie
khebbie / .spacemacs
Created September 28, 2015 09:40
.spacemacs for Release 0.104.0
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration."
(setq-default
;; List of additional paths where to look for configuration layers.
;; Paths must have a trailing slash (ie. `~/.mycontribs/')
dotspacemacs-configuration-layer-path '()
set -g default-terminal "screen-256color"
# soften status bar color from harsh green to light gray
set -g status-bg '#777777'
set -g status-fg '#aaaaaa'
set -g status on
set -g status-keys vi
set -g history-limit 1000000
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration."
(setq-default
;; List of additional paths where to look for configuration layers.
;; Paths must have a trailing slash (ie. `~/.mycontribs/')
dotspacemacs-configuration-layer-path '()
@khebbie
khebbie / task.ex
Last active August 29, 2015 14:27
Elixir mix task
defmodule Mix.Tasks.Import do
use Mix.Task
def run(_) do
# place your task code here
end
end
@khebbie
khebbie / .gitconfig
Created August 11, 2015 06:59
New git config with Haackeds aliases
[user]
name = Klaus Hebsgaard
email = klaus@hebsgaard.dk
[alias]
co = checkout
aa = add --all .
br = branch
ci = commit
fu = reset --hard
# Log display from screencast, with train tracks.
@khebbie
khebbie / .irbrc
Last active August 29, 2015 14:23
My dotfiles for devbox (vagrant)
require 'active_support'
require 'active_support/core_ext'
# load a gem that may or may not be handled by bundler in your directory
# see links above for details on this
def unbundled_require gem
if defined?(::Bundler)
# Have to check for a version to avoid gems with dashes, e.g. pry-rails
spec_path = Dir.glob("#{Gem.dir}/specifications/#{gem}-[0-9]*.gemspec").last
if spec_path.nil?
SELECT
pg_terminate_backend(pid)
FROM
pg_stat_activity
WHERE
pid <> pg_backend_pid()
AND datname = 'database name';

Keybase proof

I hereby claim:

  • I am khebbie on github.
  • I am khebbie (https://keybase.io/khebbie) on keybase.
  • I have a public key whose fingerprint is 47A7 715E ACA9 2DED 4A75 70B6 A7FC 89FB 1737 2EAF

To claim this, I am signing this object: