Skip to content

Instantly share code, notes, and snippets.

View paperclip's full-sized avatar

Douglas Leeder paperclip

  • Sophos
View GitHub Profile
@paperclip
paperclip / autodeploy.sh
Last active May 20, 2025 04:23
Talpa autodeploy script
#!/bin/bash
set -o pipefail
[[ -n "$WORKING_DIR" ]] || WORKING_DIR="$1"
[[ -n "$WORKING_DIR" ]] || WORKING_DIR=$(pwd)
function failure()
{
echo "$@"
@paperclip
paperclip / c.py
Created February 29, 2012 14:13
From http://thedailywtf.com/Comments/The-Regex-Code-Review.aspx - python implementation of three alternatives
#!/usr/bin/env python
import re
class Simple(object):
def __init__(self, searchterms):
self.__m_searchterms = searchterms
def isMatch(self, text):
for term in self.__m_searchterms: