Skip to content

Instantly share code, notes, and snippets.

View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
View vpnsetup.sh
#!/bin/sh
#
# Amazon EC2 user-data file for automatic configuration of IPsec/L2TP VPN
# on a Ubuntu server instance. Tested with 14.04 (Trusty) AND 12.04 (Precise).
# With minor modifications, this script *can also be used* on dedicated servers
# or any KVM- or XEN-based Virtual Private Server (VPS) from other providers.
#
# DO NOT RUN THIS SCRIPT ON YOUR PC OR MAC! THIS IS MEANT TO BE RUN WHEN
# YOUR AMAZON EC2 INSTANCE STARTS!
#
View keybase.md

Keybase proof

I hereby claim:

  • I am xxdesmus on github.
  • I am xxdesmus (https://keybase.io/xxdesmus) on keybase.
  • I have a public key whose fingerprint is BBAA 6BCE 3305 7FD6 6452 7115 57B6 0114 DE0B 314D

To claim this, I am signing this object:

View dyre-dga.py
#! /usr/bin/env python
# Dyre/Dyreza DGA
# Implementation by Talos
# From http://blogs.cisco.com/security/talos/threat-spotlight-dyre
# Another Python implementation was also posted back in December 2014 by moritz.kroll:
# https://www.virustotal.com/en/file/3716902c64afe40369e6ed67f9b9f7eea30f809348b3558adcff622965e80435/analysis/
from datetime import date
from hashlib import sha256
from socket import gethostbyname, gaierror
View VBA Excel 2003 code
' =============================================================
' Insert Earned hours formula and
' calculate all earned hours on CPInutVolume
' =============================================================
xRef1 = Sheets("CPInputVolume").Cells(1, 6) - 19 'formula located in 1F that counts how many rows of data we have, used to loop through code below until end of our data
restartLoop: 'used down below after check for problem data (didn't complete all 3 questions)
Counter1 = 1 'used to match against xRef1 so we know when we reach the bottom of the data
@xxdesmus
xxdesmus / wget.txt
Created Sep 28, 2015 — forked from suzannealdrich/wget.txt
wget spider cache warmer
View wget.txt
wget --spider -o wget.log -e robots=off -r -l 5 -p -S --header="X-Bypass-Cache: 1" live-mysite.gotpantheon.com
# Options explained
# --spider: Crawl the site
# -o wget.log: Keep the log
# -e robots=off: Ignore robots.txt
# -r: specify recursive download
# -l 5: Depth to search. I.e 1 means 'crawl the homepages'.  2 means 'crawl the homepage and all pages it links to'...
# -p: get all images, etc. needed to display HTML page
# -S: print server response
@xxdesmus
xxdesmus / gist:72e9254963ebea33a0d2
Created Nov 28, 2015 — forked from sethkinast/gist:5914577
Tiny script to grab Tor exitnodes and ban them via CloudFlare's API
View gist:72e9254963ebea33a0d2
#!/bin/bash
SERVERS=(108.162.196.125 108.162.197.125)
for server in ${SERVERS[*]}
do
echo "Now processing $server"
wget --timeout=10 -t1 -O tor.txt https://check.torproject.org/cgi-bin/TorBulkExitList.py?ip=$server
for ip in `tail -n +4 tor.txt`
@xxdesmus
xxdesmus / new_gist_file
Created May 28, 2013
DigitalOcean + sixxs.net = IPv6, but it's a little bit slow.
View new_gist_file
root@ipv6test:~# traceroute6 canhazip.com
traceroute to canhazip.com (2400:cb00:2048:1::8d65:74a9) from 2607:f878:fe00:96::2, 30 hops max, 24 byte packets
1 gw-151.lax-02.us.sixxs.net (2607:f878:fe00:96::1) 12.376 ms 12.151 ms 12.168 ms
2 uslax02.sixxs.net (2607:f878:3:400::2) 12.239 ms 12.267 ms 12.205 ms
3 2607:f878:3:a::1 (2607:f878:3:a::1) 13.195 ms 13.237 ms 13.167 ms
4 2607:f878::1d0 (2607:f878::1d0) 13.192 ms 12.911 ms 12.862 ms
5 2400:8800:7f02::1 (2400:8800:7f02::1) 151.405 ms 234.243 ms 263.046 ms
6 2001:504:13::150 (2001:504:13::150) 76.241 ms 72.099 ms 71.913 ms
7 ae3-50g.cr1.lax1.us.nlayer.net (2001:590::451f:7c71) 81.133 ms 88.084 ms 79.429 ms
8 ae1-50g.ar1.lax1.us.nlayer.net (2001:590::451f:7f8a) 77.019 ms 74.702 ms 75.187 ms
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
View to_do.md

Home

  • Milk
  • Toilet paper

CloudFlare

  • hand off GWT ticket to Josh D.