This works under init.d on CentOS. Some modification be required to file locations for other distributions or systemd.
In your /etc/varnish/default.vcl file:
Before all else:
import std;
import argparse | |
import re | |
from multiprocessing.pool import ThreadPool as Pool | |
import requests | |
import bs4 | |
root_url = 'http://pyvideo.org' | |
index_url = root_url + '/category/50/pycon-us-2014' | |
# diff the files in any two directories | |
function difftree () | |
{ | |
if [ $# -eq 0 ]; then | |
echo "DIFFTREE - Be in the source directory to compare." | |
echo " usage: difftree <path to directory to compare to>" | |
return 1 | |
fi | |
here=`pwd` |
This function is useful when you need to know the fingerprint of your ssh keys because you have too many keys across too many systems or you're verifying your key use against a particular system/service.
Add this to your .bashrc/.bash_profile/.profile or whereever you keep your shell functions. Works in bash, have not verified use in zsh, csk, ksh, fish, etc.
# fingerprint an ssh key
function fingerprint(){
if [ $# -eq 0 ]; then
echo "usage: fingerprint [md5|sha256] "
Create new filters and create new labels.
from:([email protected]) AND {"Patch Links" "approved this pull request." "requested changes on this pull request." "commented on this pull request." "pushed AROUND 1 commit" "pushed AROUND 2 commits"}
label: gh-pull-request