Skip to content

Instantly share code, notes, and snippets.

@antitree
antitree / Halloween_Brain0.1.pde
Last active September 7, 2018 10:59
Example Arduino code to run a neopixel for my Halloween brain
#include <Adafruit_NeoPixel.h>
//Hacked from the original Adafruit library demo
#define PIN 6 //my control pin
// Parameter 1 = number of pixels in strip
// Parameter 2 = pin number (most are valid)
// Parameter 3 = pixel type flags, add together as needed:
// NEO_KHZ800 800 KHz bitstream (most NeoPixel products w/WS2812 LEDs)
// NEO_KHZ400 400 KHz (classic 'v1' (not v2) FLORA pixels, WS2811 drivers)
@antitree
antitree / authy.js
Last active February 4, 2019 17:35
Authy iterations
function(t, e, n) {
var r, o;
r = [n(34), n(35)], o = function(t, e) {
var n;
return n = function() {
function n() {}
return n.prototype.changePhone = function(n, r, o, i) {
var s, a;
a = e.get().userId, s = "/json/users/" + a + "/change_phone/request", t.postAuth(s, {
{
"basics": {
"name": "Mark Manning",
"label": "Security Consultant",
"picture": "https://pbs.twimg.com/profile_images/658038562261069825/jB7pbsiE_400x400.png",
"email": "mark@antitree.com",
"phone": "",
"website": "https://www.antitree.com",
"summary": "Career security consultant with a focus on containerization technologies.",
"location": {
#!/usr/bin/env bash
# Ephemeral container deployer
# Author: @antitree
# This patches over a pod to add an ephemeral container, mounts share volumes,
# enters the namespace and some other shit.
function description() {
echo -e "\nDescription: This plugin speeds up the process of patching a Pod with an
ephemeral container. It will automatically mount the PID namespace, secrets, and other volumes
to help with debugging or reviewing the main container. \n\n
@antitree
antitree / poc-list-bypass.yaml
Created November 1, 2020 22:11
POC for setting up an environment with a secret and cluster role.
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: poc-list-bypass
rules:
- apiGroups:
- ""
resources:
- secrets
verbs:
@antitree
antitree / Tweetcollect.py
Created June 22, 2013 02:06
Example of using the 1.1 twitter API to collect tweets for a user since they shut down the 1.0 API.
#!/usr/bin/python
#
# Author: Antitree
# Description: Example of using the new Twitter 1.1 API to
# collect all the tweets from a user.
#
# Derived from tsileo
# https://gist.github.com/tsileo/4637864/raw/9ea056ffbe5bb88705e95b786332ae4c0fd7554c/mytweets.py
#