{
"index": "wsx5_answers",
"type": "topics",
"body": {
"stored_fields": ["title"],
"size": 15,
"from": 0,
"query": {
"match" : {
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
# vget is a simiple vendoring helper for golang. | |
# Example: | |
# vget.sh https://github.com/lib/pq dev | |
# will clone repository to ./vendor/github.com/lib/pq, check out `dev` and remove .git directory. | |
[ $# -eq 0 ] && echo 'Usage:\n\t vget <git_repo_clone_url> [git_ref]' | |
a=$1 | |
p=vendor/${a:8} | |
if [ ! -d $p ] || [ ! -d "$p/.git" ]; then | |
echo 'Clone...' |
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
do $$ | |
declare r record; | |
declare t record; | |
begin | |
for t in select table_name | |
from information_schema.tables | |
where table_schema='public' | |
loop | |
for r in select a.attname | |
from pg_catalog.pg_attribute a |
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
# This file has been auto-generated by i3-config-wizard(1). | |
# It will not be overwritten, so edit it as you like. | |
# | |
# Should you change your keyboard layout somewhen, delete | |
# this file and re-run i3-config-wizard(1). | |
# | |
# i3 config file (v4) | |
# | |
# Please see http://i3wm.org/docs/userguide.html for a complete reference! |
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
;; -*- mode: emacs-lisp -*- | |
;; This file is loaded by Spacemacs at startup. | |
;; It must be stored in your home directory. | |
(defun dotspacemacs/layers () | |
"Configuration Layers declaration." | |
(setq-default | |
;; List of additional paths where to look for configuration layers. | |
;; Paths must have a trailing slash (i.e. `~/.mycontribs/') | |
dotspacemacs-configuration-layer-path '() |
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/zsh | |
# This script installs prezto for zsh, Tmux and Vim with plugins | |
# run with sudo | |
# Tested on Ubuntu 14.04 | |
# | |
# Author: Joseph Buchma | |
cd |
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
# By Daniel Thau. Public domain. | |
# | |
# This configuration file binds many vi- and vim-like bindings to the | |
# appropriate tmux key bindings. Note that for many key bindings there is no | |
# tmux analogue. This is intended for tmux 1.3, which handles pane selection | |
# differently from the previous versions | |
# split windows like vim | |
# vim's definition of a horizontal/vertical split is reversed from tmux's |
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 | |
# This script setting up ready to use Tmux and Vim with plugins | |
# run with sudo | |
# Tested on Ubuntu 14.04 | |
# | |
# Author: Joseph Buchma | |
echo 'Install Tmux' | |
echo '============' |
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
" configure colors & colorscheme | |
if &term =~ '256color' | |
" disable Background Color Erase (BCE) so that color schemes | |
" render properly when inside 256-color tmux and GNU screen. | |
" see also http://snk.tuxfamily.org/log/vim-256color-bce.html | |
set t_ut= | |
endif | |
:function SetDarkBg() | |
: let g:indent_guides_auto_colors = 0 |