Skip to content

Instantly share code, notes, and snippets.

@standyro
standyro / gist:52804f59591d3de83e98bc99f79fa888
Last active June 9, 2019 23:27
How to Setup TeslaCam for Tesla Model 3/X
@standyro
standyro / gist:f2b36961b85b14d328a945fab4e59ef9
Last active April 22, 2016 21:42
Docker change IP address for VPN conflicts

for anyone having issues with docker routing conflicts in the 172 range — i ended up changing the /var/lib/boot2docker/profile by running

docker-machine ssh default

and then modifying it to include EXTRA_ARGS with --bip=10.11.12.1/24 (you can use any private address in here)

/var/lib/boot2docker/profile
@standyro
standyro / google_crypto.py
Created August 26, 2015 17:12
google crypto
#!/usr/bin/python
import hashlib
import hmac
import base64
import struct
# c2f563084a8427f4eafd4d1456a9303a99fbbd8ef2099469b004efcce754ea5b
MESSAGE = 'SjpvRwAB4kB7jEpgW5IA8p73ew9ic6VZpFsPnA=='
E_KEY = 'sIxwz7yw62yrfoLGt12lIHKuYrK/S5kLuApI2BQe7Ac='
@standyro
standyro / gist:b467f1955f11482e4ab3
Created August 26, 2015 17:08
running druid queries
import json
import csv
from pprint import pprint
import argparse
parser = argparse.ArgumentParser()
#-db DATABSE -u USERNAME -p PASSWORD -size 20
parser.add_argument("-o", "--output", help="CSV Output")
parser.add_argument("-i", "--input", help="JSON Input")
@standyro
standyro / post-merge
Last active August 29, 2015 14:19 — forked from wjmazza/post-merge
#/usr/bin/env bash
# Originally based on https://gist.github.com/sindresorhus/7996717
# by Sindre Sorhus (sindresorhus.com)
# git hook to run a command after `git pull` if a specified file was changed
# Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`.
if git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD | grep --quiet -E "package.json";
then
echo ">>> package.json file has changed <<<"
echo "Deleting current node_modules folder (rm -rf ./node_modules)"
@standyro
standyro / gist:c49be8f53c08df100ef7
Created March 17, 2015 01:33
Change Blue Tint of Icons in Mac Yosemite
#!/bin/bash
# List of system icons which need to be changed
sys_icons="ApplicationsFolderIcon.icns BurnableFolderIcon.icns \
DesktopFolderIcon.icns DeveloperFolderIcon.icns DocumentsFolderIcon.icns \
DownloadsFolder.icns GenericFolderIcon.icns GenericSharepoint.icns \
GroupFolder.icns LibraryFolderIcon.icns MovieFolderIcon.icns \
MusicFolderIcon.icns OpenFolderIcon.icns PicturesFolderIcon.icns \
PublicFolderIcon.icns ServerApplicationsFolderIcon.icns \
SitesFolderIcon.icns SystemFolderIcon.icns UsersFolderIcon.icns \
@standyro
standyro / iab-categories.json
Created March 7, 2015 01:13
IAB Categories JSON
{
"Arts & Entertainment":[
"Books & Literature",
"Celebrity Fan/Gossip",
"Fine Art",
"Humor",
"Movies",
"Music",
"Television"
],
@standyro
standyro / gist:4013460
Created November 4, 2012 20:09
Django Documentation - Tutorial 01 Comments

Django Documentation Comments

Tutorial 01

  • clarification with pip install

Tutorial 02

Tutorial 03