start new:
tmux
start new with session name:
tmux new -s myname
function pull-request() { | |
open https://github.com/lifechurch/youversionapi.com/pull/new/`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'` | |
} |
#! /bin/bash | |
cd $1 | |
ctags --langmap=php:.php --php-kinds=cdfiv --languages=php --file-scope=no --recurse -f ~/.vim/tags |
Huge version without GUI. Features included (+) or not (-): | |
+arabic +autocmd -balloon_eval -browse ++builtin_terms +byte_offset +cindent | |
-clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments | |
+conceal +cryptv -cscope +cursorbind +cursorshape +dialog_con +diff +digraphs | |
-dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path | |
+find_in_path +float +folding -footer +fork() -gettext -hangul_input +iconv | |
+insert_expand +jumplist +keymap +langmap +libcall +linebreak +lispindent | |
+listcmds +localmap -lua +menu +mksession +modify_fname +mouse -mouseshape | |
+mouse_dec -mouse_gpm -mouse_jsbterm +mouse_netterm +mouse_sgr -mouse_sysmouse | |
+mouse_urxvt +mouse_xterm +multi_byte +multi_lang -mzscheme +netbeans_intg |
# Check if .zshrc exists | |
if [ -f "$HOME/.zshrc" ]; then | |
echo ".zshrc exists..." | |
# Check for any .zshrc changes | |
if diff $HOME/.zshrc $BIN_DIR/zshrc > /dev/null; then | |
echo ".zshrc file has not changed. Nothing to do. Booooring." | |
else | |
echo ".zshrc file has changed! Copying to backup..." | |
cp -f $HOME/.zshrc $BIN_DIR/zshrc | |
fi |
#! /bin/bash | |
# @link https://coderwall.com/p/fkk2lw | |
if [ "$1" == "" ]; then | |
TRUNK="integration" | |
else | |
TRUNK=$1 | |
fi | |
if [ "$2" == "" ]; then |
<?php defined('SYSPATH') or die('No direct script access.'); | |
/** | |
* @package YouVersion_API | |
*/ | |
Event::add('system.ready', 'sentry_setup'); | |
function sentry_setup() | |
{ | |
// Setup an ad-hoc rate limiting system for logging |
{% if my_string == my_string|replace('search-for-me', 'replace-with-me-to-avoid-match') %} | |
do stuff | |
{% endif %} |
class UpdateInbox(object): | |
''' | |
Update the Inbox for a user | |
Instantiate with the user's id to update, a where dictionary, and a | |
dictionary to replace the content with if required (otherwise will | |
just delete the notification) | |
''' | |
_items = [] | |
def __init__(self, **kwargs): |
import datetime | |
import sys | |
import time | |
''' | |
Test with moment id 1856634658674967553 | |
this is the first moment inserted in our yv_1 shard SO the sequence id should be 1, | |
shard id should be 1 and the datetime should be 2014-06-05 16:01:38+00 | |
''' |