Skip to content

Instantly share code, notes, and snippets.

$ curl -v6 https://www.dustinhome.no
* Rebuilt URL to: https://www.dustinhome.no/
* Hostname was NOT found in DNS cache
* Trying 2001:67c:112c:8000::15...
* Connected to www.dustinhome.no (2001:67c:112c:8000::15) port 443 (#0)
* successfully set certificate verify locations:
* CAfile: none
CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* Unknown SSL protocol error in connection to www.dustinhome.no:443
@mpolden
mpolden / gist:add875e1b11ebb8e0762
Created October 23, 2014 21:17
Set major-mode for buffers created with C-x b
(setq-default major-mode
(lambda ()
(unless buffer-file-name
(let ((buffer-file-name (buffer-name)))
(set-auto-mode t)))))
/tmp/smlnj$ ./config/install.sh
./config/install.sh: Using shell /bin/sh.
./config/install.sh: SML root is /tmp/smlnj.
./config/install.sh: Installation directory is /tmp/smlnj.
./config/install.sh: Installing version 110.77.
./config/install.sh: URL of source archive is http://smlnj.cs.uchicago.edu/dist/working/110.77/.
./config/install.sh: Script /tmp/smlnj/bin/.arch-n-opsys reports ARCH=x86; OPSYS=darwin; HEAP_SUFFIX=x86-darwin.
./config/install.sh: Run-time system already exists.
/tmp/smlnj/config/unpack: The bootfiles tree already exists.
./config/install.sh: CM metadata directory name is ".cm"
postgresql:
pkg:
- installed
- env:
- LC_ALL: en_US.UTF-8
service:
- running
- enable: true
- require:
- pkg: postgresql
Host 172.16.*
User vagrant
IdentityFile ~/.vagrant.d/insecure_private_key
StrictHostKeyChecking no
;; result from clojure.xml/parse
{:tag :foo,
:attrs nil,
:content
[{:tag :bar,
:attrs
{:text "some text"
:more-text "some more text"},
:content nil}]}
def filter_iterable(key, iterable):
filtered = {}
for v in iterable:
if v[key] not in filtered:
filtered[v[key]] = v
return filtered.values()
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from celery import Celery
from celery.schedules import crontab
app = Celery()
app.conf.CELERY_TIMEZONE = 'Europe/Oslo'
app.conf.CELERYBEAT_SCHEDULE = {
'every-minute': {t
$ vagrant status
/Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/version.rb:191:in `initialize': Malformed version number string virtualbox (ArgumentError)
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/box_collection.rb:273:in `new'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/box_collection.rb:273:in `block (2 levels) in find'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/box_collection.rb:270:in `map'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/box_collection.rb:270:in `block in find'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/box_collection.rb:416:in `block in with_collection_lock'
from /Applications/Vagrant/embedded/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/box_collection.rb:415:in `with_collection_lock'
from /Applications
@mpolden
mpolden / gist:9305417
Created March 2, 2014 11:46
Activate command mode in atom with jj
# Install vim-mode
apm install vim-mode
# Open keymap (cmd-shift-p "keymap") and add
'.vim-mode.insert-mode:not(.mini)':
'j j': 'vim-mode:activate-command-mode'