Create a template service file at /etc/systemd/system/[email protected]
. The template parameter will correspond to the name
of target host:
[Unit]
Description=Setup a secure tunnel to %I
After=network.target
Create a template service file at /etc/systemd/system/[email protected]
. The template parameter will correspond to the name
of target host:
[Unit]
Description=Setup a secure tunnel to %I
After=network.target
# Deep Thought is a computer that was created by the pan-dimensional, | |
# hyper-intelligent species of beings (whose three-dimensional | |
# protrusions into our universe are ordinary white mice) to come up | |
# with the Answer to The Ultimate Question of Life, the Universe, | |
# and Everything. Deep Thought is the size of a small city. | |
class Worker | |
MUTEX = Mutex.new | |
@@mutex = Mutex.new |
#!/usr/bin/env python2.7 | |
# -*- coding: utf-8 -*- | |
# vim:ts=2:sw=2:expandtab | |
import os | |
import xcb | |
from xcb.xproto import * | |
from PIL import Image | |
XCB_MAP_STATE_VIEWABLE = 2 |
#!/bin/sh | |
sudo mount -o remount,exec /tmp | |
if [ -x /usr/local/nixstrap/proot-x86_64 ] && [ -h ~/.nix-profile ]; then | |
echo "Launching shell with nix-* tools!" | |
exec /usr/local/nixstrap/proot-x86_64 -b /usr/local/nixstrap/nix-1.8-x86_64-linux:/nix bash --init-file ~/.nix-profile/etc/profile.d/nix.sh | |
fi | |
set -e |
function pruneCommittedDiffs(mailbox, dest_mailbox) | |
diff_set = mailbox:contain_subject('[Differential]') | |
committed_diff_set = diff_set:contain_field('X-Phabricator-Mail-Tags', '<differential-committed>') | |
for _, message in ipairs(committed_diff_set) do | |
mmbox, uid = table.unpack(message) | |
rev_key = string.gsub(mmbox[uid]:fetch_field('In-Reply-To'), 'In%-Reply%-To: ', '') | |
all_diff_msgs = diff_set:contain_field('In-Reply-To', rev_key) + diff_set:contain_field('Message-ID', rev_key) | |
all_diff_msgs:move_messages(dest_mailbox) | |
end | |
end |
<script type="text/javascript"> | |
(function () { | |
"use strict"; | |
// once cached, the css file is stored on the client forever unless | |
// the URL below is changed. Any change will invalidate the cache | |
var css_href = './index_files/web-fonts.css'; | |
// a simple event handler wrapper | |
function on(el, ev, callback) { | |
if (el.addEventListener) { | |
el.addEventListener(ev, callback, false); |
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS
REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
#!/bin/bash | |
# ----------------------------------------------------------------------- | |
# Copyright (C) 2013 Matthias Sohn <[email protected]> | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |