This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(setq-default major-mode | |
(lambda () | |
(unless buffer-file-name | |
(let ((buffer-file-name (buffer-name))) | |
(set-auto-mode t))))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
postgresql: | |
pkg: | |
- installed | |
- env: | |
- LC_ALL: en_US.UTF-8 | |
service: | |
- running | |
- enable: true | |
- require: | |
- pkg: postgresql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Host 172.16.* | |
User vagrant | |
IdentityFile ~/.vagrant.d/insecure_private_key | |
StrictHostKeyChecking no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; result from clojure.xml/parse | |
{:tag :foo, | |
:attrs nil, | |
:content | |
[{:tag :bar, | |
:attrs | |
{:text "some text" | |
:more-text "some more text"}, | |
:content nil}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def filter_iterable(key, iterable): | |
filtered = {} | |
for v in iterable: | |
if v[key] not in filtered: | |
filtered[v[key]] = v | |
return filtered.values() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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' |
NewerOlder