Create a template service file at /etc/systemd/system/secure-tunnel@.service
. The template parameter will correspond to the name
of target host:
[Unit]
Description=Setup a secure tunnel to %I
After=network.target
#!/bin/bash | |
# Will maximize the current window to a new desktop, or, if the window is not | |
# Use your window manager's keybindings to attach this script to the key combination of your choice | |
# Requires the following packages in Ubuntu: | |
# xdotool x11-utils wmctrl | |
function goFull() { | |
echo $1 | |
DESKTOP=`wmctrl -d | cut -d \ -f 1 | tail -1` |
import numpy as np | |
import scipy.sparse | |
import scipy.ndimage | |
import scipy.stats | |
import scipy.signal | |
import matplotlib.pyplot as plt | |
def main(): | |
x, y = generate_data(int(1e7)) |
#!/usr/bin/env bash | |
pushd $(dirname $0) > /dev/null; CURRABSPATH=$(readlink -nf "$(pwd)"); popd > /dev/null; # Get the directory in which the script resides | |
set -x | |
MUSLPKG="musl:musl.tgz:http://www.musl-libc.org/releases/musl-1.1.4.tar.gz" | |
LEVTPKG="libevent:libevent2.tgz:https://cloud.github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz" | |
TMUXPKG="tmux:tmux.tgz:http://iweb.dl.sourceforge.net/project/tmux/tmux/tmux-1.9/tmux-1.9a.tar.gz" | |
NCRSPKG="ncurses:ncurses.tgz:http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz" | |
TEMPDIR="$CURRABSPATH/tmp" | |
TMPLIB="tempinstall/lib" | |
TMPINC="tempinstall/include" |
By default when Nginx starts receiving a response from a FastCGI backend (such as PHP-FPM) it will buffer the response in memory before delivering it to the client. Any response larger than the set buffer size is saved to a temporary file on disk.
This process is outlined at the Nginx ngx_http_fastcgi_module page manual page.
SAM and BAM filtering one-liners
@author: David Fredman, david.fredmanAAAAAA@gmail.com (sans poly-A tail)
@dependencies: http://sourceforge.net/projects/bamtools/ and http://samtools.sourceforge.net/
Please extend with additional/faster/better solutions via a pull request!
BWA mapping (using piping for minimal disk I/O)
Index: broadcom-wl/src/src/wl/sys/wl_cfg80211.c | |
=================================================================== | |
--- broadcom-wl.orig/src/src/wl/sys/wl_cfg80211.c | |
+++ broadcom-wl/src/src/wl/sys/wl_cfg80211.c | |
@@ -1466,7 +1466,7 @@ wl_cfg80211_get_station(struct wiphy *wi | |
scb_val.val = 0; | |
err = wl_dev_ioctl(dev, WLC_GET_RSSI, &scb_val, sizeof(scb_val_t)); | |
if (err) { | |
- WL_ERR(("Could not get rssi (%d)\n", err)); | |
+ // WL_ERR(("Could not get rssi (%d)\n", err)); |
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
my $path = shift @ARGV; | |
$path ||= $ENV{PWD}; | |
unless ($path =~ m/^\//) { | |
$path = "$ENV{PWD}/$path"; |
#!/usr/bin/env bash | |
# memusg -- Measure memory usage of processes | |
# Usage: memusg COMMAND [ARGS]... | |
# | |
# Author: Jaeho Shin <netj@sparcs.org> | |
# Created: 2010-08-16 | |
############################################################################ | |
# Copyright 2010 Jaeho Shin. # | |
# # | |
# Licensed under the Apache License, Version 2.0 (the "License"); # |