Skip to content

Instantly share code, notes, and snippets.

View mattl's full-sized avatar

Dr. Matt Lee mattl

View GitHub Profile
#!/usr/bin/perl -T
# grab-url-from-mail.plx -*- Perl -*-
# To use this script you must add something like this to your
# /etc/aliases file:
#
# wget: "|/location/of/grab-url-from-mail.plx"
# owner-wget: bug-handler@foo.org
#
# You will also have to create the configuration file
@mattl
mattl / vcard-split.py
Last active February 2, 2021 19:35 — forked from szczys/vcard-split.py
Python script for splitting a VCARD file to a user-set number of VCARDs per output file
#split vcf files
working_dir = '/home/gooserid/'
input_file = 'vCard_2.vcf'
output_seed = 'contacts-part-'
vcards_per_file = 1
with open(working_dir + input_file,'r') as f:
count = 0
output_count = 1
ubuntu@ip-172-31-52-111:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 7.4G 0 7.4G 0% /dev
tmpfs 1.5G 41M 1.5G 3% /run
/dev/xvda1 28G 28G 0 100% /
tmpfs 7.4G 196K 7.4G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 7.4G 0 7.4G 0% /sys/fs/cgroup
/dev/xvdb 64G 52M 61G 1% /mnt
tmpfs 1.5G 24K 1.5G 1% /run/user/1000
# Copyright (c) 2017 Web Platform Tests Project <http://wpt.fyi>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
@mattl
mattl / SMBDIS.ASM
Created October 16, 2017 17:32 — forked from 1wErt3r/SMBDIS.ASM
A Comprehensive Super Mario Bros. Disassembly
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger (doppelheathen@gmail.com)
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no
Verifying that +mattl_ is my blockchain ID. https://onename.com/mattl_
function GUID()
{
if (function_exists('com_create_guid') === true)
{
return trim(com_create_guid(), '{}');
}
return sprintf('%04X%04X-%04X-%04X-%04X-%04X%04X%04X', mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(16384, 20479), mt_rand(32768, 49151), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535));
}

Keybase proof

I hereby claim:

  • I am mattl on github.
  • I am mattl (https://keybase.io/mattl) on keybase.
  • I have a public key whose fingerprint is 1413 4BDF 2F42 E095 7B38 77C5 3303 134D A87D 9887

To claim this, I am signing this object:

#!/bin/bash
#
# Copyright (C) 2010 Brady Miller <brady@sparmy.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
#