Skip to content

Instantly share code, notes, and snippets.

View ASteinheiser's full-sized avatar

Andrew Steinheiser ASteinheiser

View GitHub Profile
@ASteinheiser
ASteinheiser / gpg-key-encryption.md
Last active June 17, 2023 23:38
Commands for basic GPG key message encryption

GPG message encryption basics

Abbreviated flags:

  • -a is --armor for ascii armored output (allows output to be sent via the web, etc.)
  • -r is --recipient for specifying the recipient of the message (needs to use the name of an imported key)

Import a new public GPG key

This can be used for encrypting messages so only the person with the private key can read them

gpg --import ./path/to/public.key
@ASteinheiser
ASteinheiser / Proxmark3-setup-and-commands.md
Last active August 29, 2022 04:41
Commands for using Proxmark3 (Easy and RDV4) with Iceman fork on OSX

Custom compile and flash (OSX)

git clone https://github.com/RfidResearchGroup/proxmark3.git

cd proxmark3

edit the Makefile.platform (configure for your needs)

these settings worked for the proxmark3 easy 256k:

PLATFORM=PM3GENERIC
PLATFORM_SIZE=256
SKIP_ISO14443a=1
@ASteinheiser
ASteinheiser / contact-me-lambda.js
Last active November 27, 2018 17:13
AWS Lambda for my "contact me" form on my personal site, iamandrew.io
const aws = require('aws-sdk');
const ses = new aws.SES({ region: 'us-west-2' });
const MY_EMAIL = 'me@iamandrew.io';
exports.handler = async (event, context, callback) => {
console.log('event: ', event);
const response = {
statusCode: 200,
@ASteinheiser
ASteinheiser / android-responsive-splash-screen.xml
Last active October 9, 2018 19:13
this is the `launch_screen.xml` file for `react-native-splash-screen`
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@color/white">
<ImageView
android:src="@drawable/launch_screen"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
@ASteinheiser
ASteinheiser / fast-led-photon.ino
Created September 29, 2018 00:33
FastLED running on a Particle Photon powering a strip of NeoPixels.
// This #include statement was automatically added by the Particle IDE.
#include <FastLED.h>
FASTLED_USING_NAMESPACE;
#define LED_PIN D2
#define CHIPSET NEOPIXEL
#define NUM_LEDS 144
#define BRIGHTNESS 255
SELECT `first_name`, `last_name`, `averageRating`, `birthdate`, `created_at`, `gender`, `phone_number`, `profilePicture`, `profilePictureTag`, `status`, `user_type`, `userId`, `username`, `email`, `address` FROM `Agents` AS `Agents` WHERE `Agents`.`user_type` = 'admin' ORDER BY `Agents`.`first_name` ASC LIMIT 0, 10;
@ASteinheiser
ASteinheiser / jimp-example.js
Created July 6, 2018 18:46
An example of how to use Jimp to read a base64 image string, resize, removeExif data, then return as an image buffer.
let imageBuffer = Buffer.from(body.profilePicture.split(',')[1], 'base64');
console.log(imageBuffer);
Jimp.read(imageBuffer, function(err, image) {
if (err) {
context.done(err,
prepareErrorResponse(response, 'Unable to remove EXIF data from profile picture'));
}
console.log('before transform: ', image);
image = image.resize(400, 400).exifRotate((err, exifRotatedData) => {
  • return 100 sheets instead of 50
  • fix issue with crisis sheet lists (admin & client)
Rayquaza-Mega @ Assault Vest
Ability: Air Lock
Shiny: Yes
EVs: 252 Atk / 4 SpD / 252 Spe
Jolly Nature
- Air Slash
- Aqua Tail
- Dragon Ascent
- Dragon Tail