Skip to content

Instantly share code, notes, and snippets.

View james-see's full-sized avatar
🍀
make your own luck

JC james-see

🍀
make your own luck
View GitHub Profile
<!DOCTYPE html>
<head>
<style>
body {
background: rgb(0, 0, 0);
overflow: hidden;
font-family: "Times", serif;
margin: 5px;
}
@james-see
james-see / gpggithub.sh
Created December 15, 2022 15:57
doing gpg right with github
$ brew install gnupg
$ gpg --full-generate-key --expert
# Select ECC (sign only)
# Select Curve 25519
# Use 0 for key does not expire
# Use your real name
# Importantly, for GitHub.com verified GPG commit signitures you MUST use
# an email address associated with your GitHub.com account. Unless you enjoy
# spam you should likely use GitHub's "no-reply" email feature documented at
#!/bin/bash
# vars
VPNIP=127.0.0.1
# base
sudo ufw default deny outgoing
sudo ufw default deny incoming
sudo ufw allow ssh
sudo ufw reload
# github
sudo ufw allow to 185.199.108.0/22
@james-see
james-see / adbme.txt
Created October 5, 2022 15:29
adb forgetmenot on how to load apk and connect qandroid devices
#### This is as of 2022 October the way to run adb commands. ####
#### I don't want to have to duckduckgo these commands again. ####
# pre req
brew install android-platform-tools
adb devices
# * daemon not running; starting now at tcp:5037
# * daemon started successfully
# List of devices attached
####
adb connect 192.200.1.39
@james-see
james-see / netcat.txt
Last active October 3, 2022 20:12
using netcat effectively
Netcat is a great tool to use to listen and forward ports as a simple proxy or routing of data.
Example:
Usb device connected and running on /dev/bus/usb/002/009 (revealed from lsusb -v command).
To get data from the device:
cat /dev/bus/usb/002/009/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@james-see
james-see / img2img-mac-m1.md
Created September 6, 2022 14:42
img2img Mac M1

This guide assumes you already have checked out the apple-silicon-mps-support branch from https://github.com/bfirsh/stable-diffusion

Steps

  • Add the sys path line to img2img.py above the ldm imports like so
sys.path.append(os.path.join(os.path.dirname(__file__), ".."))
from ldm.util import instantiate_from_config
from ldm.models.diffusion.ddim import DDIMSampler
@james-see
james-see / password-manager-rfc.md
Last active July 10, 2022 05:37
Overview RFC for Headless Password Manager

Headless Password Manager Masada

Why Masada? One of the best fortifications in history. Withstood bombardment from the Romans for an entire year. https://www.wearethemighty.com/mighty-history/5-worlds-strongest-fortifications-ever/

Design Overview

Command line. Install via either python pypi (similar to shodan) or via go get or via homebrew or other package manager.

Initial offering: self-hosted server and clients, or hosted version that is paid

@james-see
james-see / bearblog.css
Created July 6, 2022 05:10
css bearblog full caa.ac
@import 'https://fonts.googleapis.com/css?family=Rubik+Mono+One';
@import 'https://fonts.googleapis.com/css?family=Muli&display=swap';
body {
font-family: Verdana, sans-serif;
margin: auto;
padding: 20px;
max-width: 720px;
text-align: left;
background-color: #fff;
@import 'https://fonts.googleapis.com/css?family=Rubik+Mono+One';
html, body {
height: 100%;
width: 100%;
margin: 0;
background: #F5FFFA;
display: flex;
justify-content: center;
align-items: center;