Skip to content

Instantly share code, notes, and snippets.

function spamFilter() {
var threads = GmailApp.search("newer_than:1h in:inbox");
for (var i = 0; i < threads.length; i++) {
var newsRegex = ('[!-~]{5,20}\@news\.[A-Za-z0-9]{5,20}\.edu');
var confirmationRegex = ('c[0,o,O]{0,4}nf[i,I]{0,2}rmat[i,I]{0,2}[0,o,O]{0,4}n');
var securityRegex = ('[S,s]ecur[i,I]{0,2}ty');
const newsFound = threads[i].getMessages()[0].getFrom().match(newsRegex);
using System;
using Microsoft.Win32;
using OpenTK;
using OpenTK.Input;
namespace TestProgram
{
class Program
{
static void Main(string[] args)
christopher@UNIMATRIX-001:/mnt/downloads/SourceCode$ sudo dpkg-buildpackage -rfakeroot
[sudo] password for christopher:
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: info: source package openbve
dpkg-buildpackage: info: source version 1.6.0.0-1
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Christopher Lees <leezer3@gmail.com>
dpkg-buildpackage: info: host architecture amd64
dpkg-source --before-build SourceCode
fakeroot debian/rules clean
@leezer3
leezer3 / retry.bash
Last active March 20, 2017 14:15 — forked from florianleibert/retry.bash
Retry logic in bash (for ssh / scp)
#!/usr/bin/env bash
set -o nounset
set -o errexit
set -o pipefail
declare -r max=4
declare i=0
function wrap() {