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
" Vim color file colour light | |
" generated by VimTax http://www.vimtax.com | |
set background=light | |
hi clear | |
if exists("syntax_on") | |
syntax reset | |
endif | |
set t_Co=256 | |
let colors_name = "colour-light" |
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
#!/bin/bash | |
# | |
# Replaces ${var:def} expressions in text files with environment variables with | |
# an optional default. | |
# | |
# Assuming VAR1 contains the value "foo" nad VAR2 is undefined, the following | |
# expressions will evaluate as given on the right side: | |
# | |
# ${VAR1} ~> foo | |
# ${VAR2:bar} ~> bar |
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
#!/bin/bash | |
# The MIT License (MIT) | |
# | |
# Copyright (c) <year> <copyright holders> | |
# | |
# 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 |
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
http://overpass.osm.rambler.ru/cgi/interpreter?data=[out:json];node[name%3DKiel]%3Bnode%28around%3A10000%29[amenity%3Dpost_box]%3Bout%3B |
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
errs = | |
transaction: 'Operation not allowed during transaction' | |
wrongtype: 'Operation against a key holding the wrong kind of value' | |
notransaction: 'Operation not allowed without transaction' | |
notsupported: 'Operation not supported' | |
toomuchop: 'Operation with too much operands' | |
# calculate hamming weight (for BITCOUNT command) | |
# see http://jsperf.com/hamming-weight/4 | |
hamming = (x) -> |
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
# npm install connect | |
connect = require 'connect' | |
accept = [ | |
'text/turtle', | |
'application/rdf+xml', | |
'application/rdf+json' | |
] |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- save to ~/.local/share/gtksourceview-3.0/styles/ --> | |
<!-- | |
The MIT License (MIT) | |
Copyright (c) <year> <copyright holders> | |
Permission is hereby granted, free of charge, to any person obtaining a copy |
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
#!/bin/bash | |
containers=`sudo find /var/lib/docker/graph/ -maxdepth 1 -type d -printf "%f "` | |
docker rmi $containers |