Skip to content

Instantly share code, notes, and snippets.

View mackjoner's full-sized avatar

Funbeta mackjoner

View GitHub Profile
{
"editor.fontSize": 14,
"editor.fontFamily": "Menlo",
"workbench.colorTheme": "One Dark Pro",
"window.zoomLevel": 0,
"terminal.integrated.fontFamily": "Droid Sans Mono Dotted for Powerline",
"terminal.integrated.fontSize": 12,
"typescript.check.npmIsInstalled": false,
"workbench.iconTheme": "vscode-icons",
// js format
@mackjoner
mackjoner / .jsbeautifyrc
Last active January 8, 2018 09:37 — forked from softwarespot/.jsbeautifyrc
JS Beautifier configuration
// Documentation: https://github.com/beautify-web/js-beautify
// Example URL: https://github.com/victorporof/Sublime-HTMLPrettify/blob/master/.jsbeautifyrc
// Based on Airbnb's JavaScript Style Guide, URL: https://github.com/airbnb/javascript
{
// Collapse curly brackets
//"brace_style": "collapse",
"quotemark": "single",
"brace_style": "end-expand",
// Break chained method calls across subsequent lines
@mackjoner
mackjoner / gist:220c2519868d68a0b44818a7dc4e1f53
Created November 20, 2017 10:07
How to delete all (or most) jobs from a beanstalk tube from the shell
#!/usr/bin/expect -f
# Filename: beanstalk-purge
set timeout 1
spawn telnet [lindex $argv 0] [lindex $argv 1]
sleep 1
send "use [lindex $argv 2]\n"
expect "USING"
for {set i 1} {$i < [lindex $argv 3]} { incr i 1 } {
@mackjoner
mackjoner / .tmux.conf
Created October 25, 2017 07:20 — forked from subfuzion/.tmux.conf
My .tmux.conf for tmux 2.1 (with fixes for mouse breakage)
# Inspirations:
# http://mutelight.org/practical-tmux
# http://zanshin.net/2013/09/05/my-tmux-configuration/
# http://files.floriancrouzat.net/dotfiles/.tmux.conf
# http://stackoverflow.com/questions/9628435/tmux-status-bar-configuration
# https://github.com/Lokaltog/powerline
# https://github.com/remiprev/teamocil
# http://superuser.com/questions/74492/whats-the-best-prefix-escape-sequence-for-screen-or-tmux
# http://blog.hawkhost.com/2010/07/02/tmux-%E2%80%93-the-terminal-multiplexer-part-2/
#
@mackjoner
mackjoner / mou.md
Created October 17, 2017 09:23 — forked from zhenyi2697/mou.md
markdown: mou demo

Mou

Mou icon

Overview

Mou, the missing Markdown editor for web developers.

Syntax

@mackjoner
mackjoner / gist:89db2b951e3b81fcfb2e77ff384fdf5f
Last active September 27, 2017 13:34
vimrc and init.vim
if empty(glob('~/.vim/autoload/plug.vim', '~/.local/share/nvim/site/autoload/plug.vim'))
silent curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
silent curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin('~/.vim/plugged')
" Theme
@mackjoner
mackjoner / elasticsearch.yml
Created June 20, 2017 09:32 — forked from reyjrar/elasticsearch.yml
ElasticSearch config for a write-heavy cluster
##################################################################
# /etc/elasticsearch/elasticsearch.yml
#
# Base configuration for a write heavy cluster
#
# Cluster / Node Basics
cluster.name: logng
# Node can have abritrary attributes we can use for routing
@mackjoner
mackjoner / deployment-tool-ansible-puppet-chef-salt.md
Created April 13, 2017 07:01 — forked from jaceklaskowski/deployment-tool-ansible-puppet-chef-salt.md
Choosing a deployment tool - ansible vs puppet vs chef vs salt

Requirements

  • no upfront installation/agents on remote/slave machines - ssh should be enough
  • application components should use third-party software, e.g. HDFS, Spark's cluster, deployed separately
  • configuration templating
  • environment requires/asserts, i.e. we need a JVM in a given version before doing deployment
  • deployment process run from Jenkins

Solution

@mackjoner
mackjoner / install-tmux
Created February 15, 2017 10:09 — forked from rothgar/install-tmux
Install tmux 1.9 on rhel/centos 6
# Install tmux on Centos release 6.5
# install deps
yum install gcc kernel-devel make ncurses-devel
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL
curl -OL https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
tar -xvzf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure --prefix=/usr/local
@mackjoner
mackjoner / install_tmux_centos.md
Created February 15, 2017 10:08 — forked from rschuman/install_tmux_centos.md
Installation of most recent libevent2 and tmux on CentOS. Compile flags borrowed from https://gist.github.com/sturadnidge/4185338