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
# | |
# bash completion support for core Git. | |
# | |
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]> | |
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/). | |
# Distributed under the GNU General Public License, version 2.0. | |
# | |
# The contained completion routines provide support for completing: | |
# | |
# *) local and remote branch names |
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://greek0.net/secure_unison.html |
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
# add to .bashrc or .profile | |
export LESSOPEN="| /usr/share/source-highlight/src-hilite-lesspipe.sh %s" | |
export LESS=' -R ' |
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"?> | |
<feed xmlns="http://www.w3.org/2005/Atom"> | |
<title>Example Feed</title> | |
<subtitle>A subtitle.</subtitle> | |
<link href="http://example.org/feed/" rel="self" /> | |
<link href="http://example.org/" /> | |
<id>urn:uuid:60a76c80-d399-11d9-b91C-0003939e0af6</id> | |
<updated>2003-12-13T18:30:02Z</updated> |
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
(defonce ignored-namespaces (atom #{})) | |
(defn reload-all [] | |
(doseq [n (remove (comp @ignored-namespaces ns-name) (all-ns))] | |
(require (ns-name n) :reload ))) |
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
# Create linux boot disk : | |
sudo dd if=/home/te/Downloads/linuxmint-17-mate-64bit-v2.iso of=/dev/sdc1 bs=4k | |
# disable boot sound on os x | |
Just open up the Terminal application, you can find it in “Applications” -> “Terminal,” and enter the following on the command line: | |
sudo nvram SystemAudioVolume=%80 | |
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
Bases upon. | |
-- http://mad-scientist.us/juniper.html | |
Debs to be installed on ubuntu | |
xterm | |
libc6:i386 | |
zlib1g:i386 | |
libgtk2-perl | |
libwww-perl |
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
in .nvimrc add | |
" requires vim-fireplace | |
au TermOpen * let g:last_term_job_id = b:terminal_job_id | |
function! SendToTerm(lines) | |
call jobsend(g:last_term_job_id, add(a:lines, '')) | |
endfunction |
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
(defn resolve-symbol-value [sym] | |
;todo catch execptions and rethrow with sym name | |
(if (symbol? sym) | |
(var-get (resolve sym)) | |
sym)) | |
(defmulti restructure-swagger | |
(fn [method swagger-map liberator-map] (prn method) method)) | |
(defmethod restructure-swagger :get [_ swagger-map liberator-map] |
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 auth-base-api | |
[:service-available? workaround-missing-mediatype | |
:handle-unauthorized unauthorized-handler | |
:authorized? authorized? | |
:allowed? allowed? | |
:available-media-types (conj available-media-types "application/json") | |
:handle-exception exception-handler | |
:processable? parse-and-coerce-body | |
:handle-unprocessable-entity unprocessable | |
:available-charsets ["utf-8"] |
OlderNewer