Skip to content

Instantly share code, notes, and snippets.

View gist:e2c602bba8fe1c275f8c625143749cb2
BuildEvent(target_name='SCV', second=0)
BuildEvent(target_name='SCV', second=11)
BuildEvent(target_name='SupplyDepot', second=23)
BuildEvent(target_name='SCV', second=28)
BuildEvent(target_name='SCV', second=36)
BuildEvent(target_name='Barracks', second=54)
BuildEvent(target_name='Refinery', second=59)
BuildEvent(target_name='SCV', second=64)
BuildEvent(target_name='SCV', second=74)
BuildEvent(target_name='SCV', second=92)
View tarsnap strace
execve("/usr/bin/tarsnap", ["tarsnap", "--list-archives"], 0x7ffe6c18dda8 /* 16 vars */) = 0
brk(NULL) = 0x55790f6a4000
arch_prctl(0x3001 /* ARCH_??? */, 0x7ffe4c4b2fe0) = -1 EINVAL (Invalid argument)
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=67637, ...}) = 0
mmap(NULL, 67637, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f819d656000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/libacl.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`\30\0\0\0\0\0\0"..., 832) = 832
View gist:944fdad330084d4e3619b5f11d167e33
1 602distributing.com
1 alltons.com
1 andersonandemami.com
1 ascotshop.com
1 austinhauck.com
1 bellsouth.net
1 berlinsclothing.com
1 billwalkerclothier.com
1 biltmoretuxedos.com
1 carriagesbr.com
View measure.py
#!/usr/bin/env
import numpy as np
import random
import quopri
lorem = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed porta varius vulputate. Nullam ultricies consequat iaculis. Mauris vulputate diam lacus, sit amet pharetra elit volutpat nec. Vivamus lectus arcu, facilisis ac varius in, imperdiet nec libero. Nulla pellentesque purus id iaculis placerat. Phasellus nec dapibus diam. Mauris vel accumsan ex, non imperdiet justo. Maecenas at ligula fringilla, molestie lorem eget, cursus lacus. Nulla luctus ornare ipsum. Pellentesque vitae commodo nulla. Cras finibus luctus arcu et porttitor.Donec vel neque sed elit bibendum sodales. In ultricies enim nec elit posuere tincidunt. Aliquam nec ante et lectus varius aliquam. Etiam in finibus diam. Maecenas non nulla id purus tincidunt interdum non nec neque. Integer rhoncus quam non congue tempus. Maecenas non rhoncus quam. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Aliquam id fringilla nibh. Nulla quis
View example_email.msg
Delivered-To: maxiak@hubspot.com
Return-Path: <1axbvah32ekia8ms6pob74i2bwfyq2ijwcf0qy-maxiak=hubspot.com@bf1.hubspot.com>
Received: from pgg12b.bf1.hubspot.com (pgg12b.bf1.hubspot.com. [54.174.52.33])
by mx.google.com with ESMTPS id m33si2685361qtd.41.2017.02.23.21.00.12
for <maxiak@hubspot.com>
(version=TLS1_2 cipher=AES128-GCM-SHA256 bits=128/128);
Thu, 23 Feb 2017 21:00:13 -0800 (PST)
Authentication-Results: mx.google.com;
dkim=pass header.i=@bf1.hubspot.com;
spf=pass (google.com: domain of 1axbvah32ekia8ms6pob74i2bwfyq2ijwcf0qy-maxiak=hubspot.com@bf1.hubspot.com designates 54.174.52.33 as permitted sender) smtp.mailfrom=1axbvah32ekia8ms6pob74i2bwfyq2ijwcf0qy-maxiak=hubspot.com@bf1.hubspot.com;
View gist:867e8d459bddfbecd705
"DELIVERED"
"PROCESSED"
"SENT"
"CLICK"
"CLICK"
"CLICK"
"CLICK"
"CLICK"
"CLICK"
"CLICK"
View TestSending.cs
using System.Net.Mail;
using System.Net;
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;
public class TestClass {
public static void Main() {
string subject = "";
string body = "";
string host = "smtp.hubapi.com";
View tlds.py
#!/usr/bin/env python
import re
from collections import defaultdict
from urllib2 import urlopen
def main():
domains = set()
#domains |= get_domains_from_url('https://publicsuffix.org/list/effective_tld_names.dat')
domains |= get_domains_from_url('http://data.iana.org/TLD/tlds-alpha-by-domain.txt')
View gist:e71290bbc5b725888229
^(?:a(?:c(?:ademy|countants||t(?:ive|or))|bogado|e(?:|ro)|d|g(?:|ency)|f|i(?:|rforce)|m|l(?:sace||lfinanz)|o|n|q|s(?:ia|sociates|)|r(?:pa|chi||my)|u(?:ction||tos|dio)|t(?:|torney)|w|x(?:a|)|z)|c(?:a(?:b|m(?:p|era)|l|ncerresearch|p(?:ital|etown)|s(?:a|h)|r(?:avan|e(?:|er(?:s|))|ds)|t(?:|ering)|)|c|e(?:rn|o|nter)|d|g|f|i(?:|t(?:ic|y))|h(?:annel|urch|r(?:istmas|ome)||eap)|k|m|l(?:aims|eaning|i(?:ck|nic)|othing|ub|)|o(?:des|ffee|m(?:p(?:any|uter)||munity)|l(?:lege|ogne)|o(?:p|king|l)|n(?:s(?:ulting|truction)|dos|tractors)|untry|)|n|r(?:uises|s||edit(?:card|))|u(?:isinella|)|w|v|y(?:|mru)|x|z)|b(?:a(?:yern||r(?:|gains)|nd)|b|e(?:|st|rlin|er)|d|g|f|i(?:|ke|z|d|o)|h|j|m(?:|w)|l(?:ack(?:|friday)|ue)|o(?:|utique|o)|n(?:pparibas|)|s|r(?:|ussels)|u(?:ild(?:|ers)|siness|zz|dapest)|t|w|v|y|z(?:h|))|e(?:at|c|e|du(?:cation|)|g|m(?:ail|erck)|n(?:ergy|terprises|gineer(?:ing|))|quipment|s(?:q||tate)|r|u(?:s|)|t|vents|x(?:p(?:ert|osed)|change))|d(?:a(?:y|d|ting|nce)|e(?:als|gree|mocrat|livery|nt(?:ist|al)|si|)|i(?:amonds|scount
View form-redirect-params.js
/**
* Append the form data from a HubSpot form automatically
* to the redirect URL query parameters. These values can
* then be used on the form to modify the user experience
* of the Thank You page
*
* LICENSE
* Form redirect
* Written in 2015 by Mike Axiak <maxiak@hubspot.com>
* To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.