Skip to content

Instantly share code, notes, and snippets.

@davenice
davenice / zowe.config.json
Last active May 16, 2025 15:23
Sample Zowe V3 config file that includes nested profiles for two separate hosts
{
"$schema": "./zowe.schema.json",
"profiles": {
"host1": {
"properties": {
"host": "host1.com",
"rejectUnauthorized": false
},
"secure": ["user", "password"],
"profiles": {
@april
april / find-all-electron-versions.sh
Last active February 7, 2025 17:01
find all apps using Electron and their versions, on macOS systems
# latest supported electron version as of october 2024
LATEST_SUPPORTED_VERSION=30
RED='\033[0;31m'
GREEN='\033[0;32m'
NC='\033[0m' # no color
mdfind "kind:app" 2>/dev/null | sort -u | while read app;
do
filename="$app/Contents/Frameworks/Electron Framework.framework/Electron Framework"
if [[ -f $filename ]]; then
@DrWhax
DrWhax / README.md
Last active May 29, 2025 00:25
How to (securely) contact me

I'm writing this on Github as it will give the reader wanting to get in contact some level of plausible deniability as opposed to visiting my website.

While both websites are encrypted, visiting a more generic website gives you more plausible deniability. Any institution that can wiretap or has metadata retention will only see you connecting to https://gist.github.com/ and not which page youre visiting.

Who am I

I'm a technologist at Amnesty's Security Lab.

@mbwhite
mbwhite / commands
Last active May 5, 2023 04:58
WSL2 - docker buildx
# start docker - this is a helper script created to start docker as wsl2 doesn't use systemd
docker-start
ping github.com
# why a ping here? emperiically I've determined this has to occur
# otherwise for me the docker daemon messes up dns.
# don't know why, ymmv
wget https://gist.githubusercontent.com/ArturKlauser/0f0293c62f5626df0261ac994d8a46af/raw/d5863dfc22e6d65fd912c9ec760dcdc86ea320cc/check-qemu-binfmt.sh
chmod +x check-qemu-binfmt.sh
@magnetikonline
magnetikonline / README.md
Last active May 3, 2024 12:20
Install jq on macOS from source.

Install jq on macOS from source

Note: as of jq v1.7 the project offers pre-built native macOS releases for ARM64 based architechtures.

A quick n' dirty Bash script to install the following:

  • autoconf.
  • automake.
  • libtool
  • jq - from source.
// myGetRoll(), myGetPitch(), myGetBearing(), mySetHorizonTexture()
// by Timeless Prototype
// Helps with attitude indicator (artificial horizon) display on a prim, plus a few other functions you will probably want for any flying vehicle instruments.
// Created 2009-12-01
// Please give credit to Timeless Prototype in documentation when using anything from this script.
key craftKey = NULL_KEY;
// Returns the roll relative to the horizon (0.0), ranging from 90.0 (right wing down) to -90.0 (left wing down). Assumes frame of reference is East-facing at zero rotation.
float myGetRoll(rotation rot)
@mbwhite
mbwhite / versions.js
Created January 19, 2021 11:30
Very simple query of IBP using the node sdk
// Apache-2
// Import and IBP Node SDK, and also two cli helpers
const ibp = require('ibp-node-sdk');
const { table } = require('table');
const chalk = require('chalk');
// package JSON contains
// "chalk": "^4.1.0",
// "ibp-node-sdk": "^0.1.11",
@relyt0925
relyt0925 / provision_ubuntu2004_qemu_macosx.sh
Created May 14, 2020 04:50
Provisions a Ubuntu 20.04 VM in QEMU on Mac OSX using Cloud-Init
#!/usr/bin/env bash
#Install brew and qemu + cloud init metadata dependencies
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew install qemu
brew install cdrtools
rm -rf /tmp/ubuntuqemuboot
#download Ubuntu 20.04 Cloud Image and resize to 30 Gigs
mkdir -p /tmp/ubuntuqemuboot/images
@mbwhite
mbwhite / gist:668494565bf0b155c6fb60627f9deb09
Created October 15, 2019 09:46
2.0 LIfecycle cheat sheet
## Cheat Sheet for sequence of commands for v2.0 lifecycle and byfn
docker kill $(docker ps -q) && docker rm $(docker ps -aq)
docker rmi $(docker images dev-* -q) --force
docker volume prune -f && docker network prune -f
./byfn.sh generate
./byfn.sh restart
# org1 ->
docker exec -it cli bash
#!/usr/bin/env bash
CLEARING_VERSION=0.2.6
TMP_DIR=$(mktemp -d)
echo "Temp directory: ${TMP_DIR}"
# stop rest servers
for i in $(ps x| grep composer-rest-server | awk '{print $1}'); do
kill $i