Skip to content

Instantly share code, notes, and snippets.

View ForestJay's full-sized avatar
👩‍💻

Moriko Handford (森子) ForestJay

👩‍💻
View GitHub Profile
@ForestJay
ForestJay / CameraInput.cs
Created November 13, 2015 20:21
Example of using a frame detector from Affectiva's Affdex Unity asset
// Unity derives Camera Input Component UI from this file
using UnityEngine;
using System.Collections;
namespace Affdex
{
/// <summary>
/// Provides WebCam access to the detector. Sample rate set per second. Use
/// </summary>
[RequireComponent(typeof(Detector))]
@ForestJay
ForestJay / find_iam_user.py
Last active September 9, 2015 19:59 — forked from OnlyInAmerica/find_iam_user.py
Find an AWS IAM user corresponding to an AWS Access Key
#!/usr/bin/python
# Find the IAM username belonging to the args.key
# Useful for finding IAM user corresponding to a compromised AWS credential
# Requirements:
#
# Environmental variables:
# AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY
# python:
# boto, argparse
@ForestJay
ForestJay / After.bat
Created November 19, 2014 16:18
WinShock Patch
# After.bat
# Contains a list of computers updated
@echo off
for /F "tokens=*" %%A in (AfterReboot.txt) do (
echo Processing %%A....
psexec \\%%A cmd /c "start /wait c:\temp\after.bat"
)
echo Completed
pause
@ForestJay
ForestJay / git_cleanup
Last active February 28, 2024 03:21 — forked from kevinwright/git_cleanup
#!/bin/bash
# WARNING
# This expects your repository to be in ~/git . If your repository is elsewhere you will need to alter the script.
# SYNOPSIS
# git_cleanup [repo name] [-xl]
# DESCRIPTION
# This script allows people to delete (-x) the history of a directory OR destroy (-l) the history of a directory and just