Skip to content

Instantly share code, notes, and snippets.

View stulevine's full-sized avatar

Stu Levine stulevine

  • @wildcatproductions.com
  • Auburn Hills, MI
  • 00:52 (UTC -04:00)
View GitHub Profile

Keybase proof

I hereby claim:

  • I am stulevine on github.
  • I am stulevine (https://keybase.io/stulevine) on keybase.
  • I have a public key whose fingerprint is 5EA6 2ED1 A8B4 9430 E3F2 690C 54A8 6D17 262F 1F86

To claim this, I am signing this object:

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCtX6cMHZCIcqW5Pt+3HGn7iR/KHMPrPxdzV96nrRwCUnFfQ3m8Axxnd4hTTgyKdBN74zYEaZCpoVUwthyRwzqzXLb87iLkUtzGBUOqMg6q2TpciHcUMhpmgqTR/Xwtpu9bvshJ1+FYUHW9oMfeN1UMhraeXSMG6aoaQPgPWTfigN/CG0f77szKqOXTimBpwbCU7/4jixkZdIosvy8r2oKVQxR2kPy2/qUetQB19eS28eu02WBWeGQuLc1l04gmezGcYGcc1Tac6IiyWqDrJwZGh0Yrbv2U3Zvuv2idcyIFPpTK/l9n90UyA+iPs/ct9mJr6/g1xYGVZLxOyLje1FO4un0w1JhcXcquS2nNU/9zIF7efCdNe2XJQgex/xfcv5CkAnZComRCIQpokQd1byVCOUfLn5OpfYtgfClJQOZI5zlH0prx9DV85FDIAYIaJ2tFnw4u8PZoyF0zGElM4fxd3S8sSh2qUw4goAHGBKtDOI5Fi18qkt/4xmtHGsJo+rdR+OjWlZMLrPp/A9vWQvKkldFSFWxANNFx3No7HIWlauZrgZqKmt2/deHHCxFZxCJLPbiV5LKueNXQFxRVwQ44BK8/r9HJ24QfYwG5t82ydJB4+m1YhfM0nWgrI4063jzRZ0rqTJJTMWdH0wgViTniA/rCKQd5raY0YDC32dZ1qQ== slevine@Stuart-MBA.local
@stulevine
stulevine / ximgfix
Last active January 3, 2016 00:39
A script to allow Fuji X camera users who utilize SDXC cards 64GB and greater to adjust the file system create date of the image files (JPEG/RAF) under Mac OS X. This is a know bug without resolution at this time. I wrote this script to allow me, as an X-E1 and X-E2 user, to have the correct create date of my images show properly in the Mac OS X…
#!/usr/bin/perl
###############
# Author: Stu Levine
# Date: 2014-01-12
# Purpose:
# A script to allow Fuji X camera users who utilize SDXC cards 64GB and >
# to adjust the file system create date of the file under Mac OS X. This
# is a know bug without resolution at this time. I wrote this script to
# allow me, as an X-E1 and X-E2 user, to have the correct create date of
@stulevine
stulevine / gist:6778835
Created October 1, 2013 13:57
hapi.version output for the lb.create method
"parameters" : {
"General" : [
{
"name" : "format",
"description" : "Output format, one of: json, xml",
"deprecated" : false,
"required" : false,
"internal" : false,
"unimplemented" : false,
"undocumented" : false,
@stulevine
stulevine / gist:6297158
Created August 21, 2013 17:06
original iptables
root@uberdev.ldj1 /home/slevine # iptables -S
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
-A INPUT -s 74.63.39.138/32 -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -s 192.170.149.250/32 -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -s 173.231.130.227/32 -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -s 208.122.10.36/32 -p tcp -m tcp --dport 22 -j ACCEPT
@stulevine
stulevine / gist:6282415
Created August 20, 2013 14:51
ptables additions to lbaas1.lga11 for hAPI prod api communications
Now fixed via NJ Router ACL additions this morning and my iptables lbaas1 additions below (lbaas2 & 3 need these as well):
root@lbaas1.lga11 /home/slevine # iptables -S
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
-A INPUT -s 74.63.39.138/32 -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -s 192.170.149.250/32 -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -s 173.231.130.227/32 -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -s 74.201.59.61/32 -d 192.170.150.66/32 -p tcp -m tcp --dport 80 -j ACCEPT
$duse = $cdn->reseller_api->GetDiskUsageForDomain(
array(
'domainID'=>23467,
'rangeStart'=>'2013-05-29T00:00:00Z',
'rangeEnd'=>'2013-05-31T00:00:00Z')
);
apish> pexport($duse);
array (
{
"sites": [
{
"stageVersion": 0,
"isDefault": true,
"id": 20448,
"operationalStatus": "ENABLED",
"name": "HTTPS Path Match Site",
"serviceType": {
"allowPublish": true,
(api2):slevine> hapi files.objects.create customer_id=7614 container=stusworldofstuff object=stuobject
{
"response" : {
"status" : "ok",
"http_request" : {
"headers" : [
{
"X-Auth-Token" : "e01b4d573a52424c84c599c2408a0a54"
}
],
10:03 [voxel] -!- #voxdev dcoe H 0 ~DCoe@dhcp-63-251-67-187.acs.internap.com [David Coe]
10:03 [voxel] -!- #voxdev jamesc G 0 ~Adium@dhcp-63-251-67-109.acs.internap.com [Adium User]
10:03 [voxel] -!- #voxdev jkr H 0 ~jkr@c-98-252-242-51.hsd1.ga.comcast.net [Jay K. Robertson]
10:03 [voxel] -!- #voxdev Corey H 0 ~Adium@nat-loopback.lga4.us.corp.voxel.net [Adium User]
10:03 [voxel] -!- #voxdev zac H@ 0 ~zac@api2.dev.voxel.net [zac]
10:03 [voxel] -!- #voxdev josh_spice H 0 ~Adium@nat-loopback.lga4.us.corp.voxel.net [Adium User]
10:03 [voxel] -!- #voxdev daisy H 0 ~daisy@shuffman-linux.acs.internap.com [Daisy Beckenbach]
10:03 [voxel] -!- #voxdev vetere H@ 0 ecv@postmeta.net [blue bell knoll]
10:03 [voxel] -!- #voxdev gdeforest H 0 ~Adium@nat-loopback.lga4.us.corp.voxel.net [Adium User]
10:03 [voxel] -!- #voxdev pdowell_home H@ 0 ~pdowell@pool-71-167-144-49.nycmny.fios.verizon.net [Patrick Dowell]