This file contains hidden or 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
local keys = redis.call('hgetall',KEYS[1]) | |
local i = ARGV[1] | |
local key | |
local value | |
for k,v in ipairs(keys) do | |
if k % 2 == 0 then | |
value = v | |
else |
This file contains hidden or 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/sh | |
export DISABLE_AUTO_TITLE=true | |
SESSION_NAME="local-storm" | |
tmux has-session -t $SESSION_NAME | |
if [ $? != 0 ] | |
then |
This file contains hidden or 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/sh | |
# A rather simple example of tmux scripting | |
# Sets a new session for a cluster of listed servers | |
# Session has a single window with every server in a cluster as separate pane with synchronized input, | |
# and an additional window for every machine in a cluster | |
export DISABLE_AUTO_TITLE=true # needed to fix names of windows | |
SERVER_LIST="server-1 server-2 server-3" | |
CLUSTER_NAME="some-cluster" # will be a name of the tmux session |
This file contains hidden or 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
#!/usr/bin/ruby | |
# logtodayone.rb | |
# Brett Terpstra (http://brettterpstra.com) | |
# Use and modify freely, attribution appreciated | |
# | |
# This script works with the Day One[1] command line utility | |
# It parses an input string for an exclamation point prefix to mark starred | |
# and/or a [date string] at the beginning to parse natural language dates | |
# |
This file contains hidden or 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
//------------------------------------------------------------------- | |
// ==ServerScript== | |
// @name dump_http | |
// @status on | |
// @description Simple http dumping script | |
// @include .* | |
// @exclude | |
// @responsecode 200 | |
// ==/ServerScript== | |
// -------------------------------------------------------------------- |
This file contains hidden or 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 | |
set -e | |
if [[ $# -ne 1 ]]; then | |
echo 'Sorry, need only one parameter'; exit 1; | |
fi | |
FILENAME="$1" |
This file contains hidden or 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
# Path to your oh-my-zsh configuration. | |
ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="juanghurtado" | |
# Set to this to use case-sensitive completion |
NewerOlder