start new:
tmux
start new with session name:
tmux new -s myname
#!/bin/bash | |
# | |
# Watch current directory (recursively) for file changes, and execute | |
# a command when a file or directory is created, modified or deleted. | |
# | |
# Written by: Senko Rasic <[email protected]> | |
# | |
# Requires Linux, bash and inotifywait (from inotify-tools package). | |
# | |
# To avoid executing the command multiple times when a sequence of |
package ca.underflow.hbase | |
import org.hbase.async._ | |
import com.stumbleupon.async._ | |
object Demo extends App { | |
// This let's us pass inline functions to the deferred | |
// object returned by most asynchbase methods |
/* | |
Compile on Fedora 16 Linux: | |
g++ -O2 -Wall -g -o boostgz boostgz.cc -lboost_iostreams-mt | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <fstream> | |
#include <iostream> |
# Xcode 4.3.3 | |
Apple clang version 3.1 (tags/Apple/clang-318.0.61) (based on LLVM 3.1svn) | |
Target: x86_64-apple-darwin11.4.0 | |
Thread model: posix | |
# Xcode 4.3.2 | |
Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn) | |
Target: x86_64-apple-darwin11.4.0 | |
Thread model: posix |
This is code to convert a string to a type based on discussions here:
https://groups.google.com/d/msg/julia-dev/q9lG55PMdlc/C3IRKbKXcpoJ
type UnsupportedType
end
is_valid_type_ex(s::Symbol) = true
is_valid_type_ex(x::Int) = true
In addition to the charts that follow, you might want to consider the Frequently Asked Questions section for a selection of common questions about MongoDB.
The following table presents the MySQL/Oracle executables and the corresponding MongoDB executables.
#!/usr/bin/env python | |
# -*- coding: UTF-8 -*- | |
# file: unzip.py | |
import zipfile,os,sys | |
if len(sys.argv)==2: | |
fname=sys.argv[1] | |
else: | |
print "Usage: python %s filename\n\n" % sys.argv[0] | |
sys.exit() |
I recently had the following problem:
We didn't want to open the MySQL port to the network, but it's possible to SSH from the Jenkins machine to the MySQL machine. So, basically you would do something like
ssh -L 3306:localhost:3306 remotehost
''' | |
An authentication module for pyzmq modelled on zauth from czmq. | |
The functions to read and generate certificates should be interoperable | |
with czmq's zcert's - though are not as fully featured. | |
''' | |
import datetime | |
import glob | |
import json |