Skip to content

Instantly share code, notes, and snippets.

View gist:67ecc86aa50ecf6302659a0994679bb7
; CouchDB Configuration Settings
; Custom settings should be made in this file. They will override settings
; in default.ini, but unlike changes made to default.ini, this file won't be
; overwritten on server upgrade.
[couchdb]
;max_document_size = 4294967296 ; bytes
;os_process_timeout = 5000
View gist:0076f5fecd45c8eae209714a9096917c
EmojiOneColor-SVGinOT.ttf: "EmojiOne Color" "Regular"
LiberationMono-Regular.ttf: "Liberation Mono" "Regular"
LiberationMono-Regular.ttf: "Liberation Mono" "Regular"
DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"
NotoColorEmoji.ttf: "Noto Color Emoji" "Regular"
Ubuntu Mono derivative Powerline.ttf: "Ubuntu Mono derivative Powerline" "Regular"
FreeMono.ttf: "Liberation Mono" "Regular"
Courier_New.ttf: "Liberation Mono" "Regular"
Courier_New_Italic.ttf: "Liberation Mono" "Italic"
TlwgTypo.ttf: "Tlwg Typo" "Regular"
View gist:0b6a75bba22a53cd9989e4a7009b143b
19 if ( $allow_address = 0 ) {
20 set $check "A";
21 }
22
23 if ( $request_uri ~ ^/wp-login\.php ) {
24 set $check "${check}B";
25 }
26
27 if ( $check = "AB" ) {
28 return 403;
View gist:57eb7fe10839d933abe180a4538dc24e
if has("unix")
let s:uname = system("uname")
if s:uname == "Linux\n"
" Remote Clipboard
function! PropagatePasteBufferToOSX()
let @n=getreg('"')
call system('pbcopy-remote', @n)
echo "done"
endfunction
View -
health#nvim#check
================================================================================
## Remote Plugins
- SUCCESS: Up to date
## Python 2 provider
- INFO: `g:python2_host_prog` is not set. Searching for python2 in the environment.
- INFO: Executable: /usr/local/bin/python2
- INFO: Python2 version: 2.7.11
View -
MiniArooni: 7 windows (created Fri Sep 2 11:34:55 2016) [189x44] (group 0) (attached)
MiniArooni-group- 6583: 7 windows (created Fri Sep 2 11:35:04 2016) [189x45] (group 0)
MiniArooni-group-12178: 7 windows (created Fri Sep 2 11:35:04 2016) [189x45] (group 0)
MiniArooni-group-12271: 7 windows (created Fri Sep 2 11:35:05 2016) [189x45] (group 0)
MiniArooni-group-15695: 7 windows (created Fri Sep 2 11:35:05 2016) [189x45] (group 0)
MiniArooni-group-16042: 7 windows (created Sat Sep 10 14:38:17 2016) [189x45] (group 0) (attached)
MiniArooni-group-17429: 7 windows (created Fri Sep 2 11:35:05 2016) [189x45] (group 0)
MiniArooni-group-23331: 7 windows (created Fri Sep 2 11:35:04 2016) [189x45] (group 0)
MiniArooni-group-29848: 7 windows (created Fri Sep 2 11:35:04 2016) [189x45] (group 0)
MiniArooni-group-47340: 7 windows (created Fri Sep 2 11:35:05 2016) [189x45] (group 0)
View -
#!/usr/bin/env sh
# A useful wrapper to invoke tmux that I got from a guy on IRC #tmux
# 5/20/2016 -- Modified by David Parkinson
# Basically invokes a new sesion if no argument, and group attaches to an existing session
# and kills any group sessions that are unattached. Very useful.
# from https://ntnn.de/plain//tmux_attach_or_new
# Now added tmuxifier logic
link=0
View tmux_attach_or_new
#!/usr/bin/env sh
# A useful wrapper to invoke tmux that I got from a guy on IRC #tmux
# 5/20/2016 -- Modified by David Parkinson
# Basically invokes a new sesion if no argument, and group attaches to an existing session
# and kills any group sessions that are unattached. Very useful.
# from https://ntnn.de/plain//tmux_attach_or_new
# Now added tmuxifier logic
link=0
@arooni
arooni / 0_reuse_code.js
Created Jun 29, 2016
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View restart_synergy
#! /bin/sh
case "${1}" in
suspend|hibernate)
;;
resume|thaw)
lsof -t -i:24800
# Is synergy already running? Then kill existing ssh and synergy clients before reconnecting
if [ $? -eq 0 ]