Skip to content

Instantly share code, notes, and snippets.

View ryanwoodsmall's full-sized avatar
🍞
🍞 bread 🍞 sandwich 🍞

ryan ryanwoodsmall

🍞
🍞 bread 🍞 sandwich 🍞
View GitHub Profile
@ryanwoodsmall
ryanwoodsmall / pass.md
Created February 7, 2023 15:35 — forked from abtrout/pass.md
Using password-store with git repository synching

Password-store keeps your passwords (or any other sensitive information) saved in GnuPG encrypted files organized in ~/.password-store. For more information about GPG, consult the GNU Privacy Handbook.

Getting started

To get started, install pass and generate a keypair.

$ brew install pass
$ gpg --gen-key
$ gpg --list-keys
@ryanwoodsmall
ryanwoodsmall / 1_Hello_libtls
Created June 15, 2022 17:01 — forked from kinichiro/1_Hello_libtls
Hello libtls - libressl libtls API sample program
Hello libtls - libressl libtls API sample program
/*
* https://dropbear.sh/code/modelf.c
* https://dropbear.sh/blog/elf-patching.html
*/
/*
BSD 3-Clause License
Copyright (c) 2022 dropbear
@ryanwoodsmall
ryanwoodsmall / sierpinksi.py
Created August 27, 2021 07:05
sierpinksi.py
# via: https://blog.pimaker.at/texts/rvc1/
def s(n):
d=["*"]
for i in range(n):
sp=" "*(2**i)
d=[sp+x+sp for x in d] + [x+" "+x for x in d]
return d
print("\n".join(s(4)))
@ryanwoodsmall
ryanwoodsmall / passgitgpg.md
Created August 25, 2021 20:50 — forked from flbuddymooreiv/passgitgpg.md
Setting up pass on git with a gpg key

The following shell transcript shows how to:

  • Create a GPG key
  • Create a pass database
  • Add git support to the pass database
  • Create a remote git repository
  • Push the pass database to the remote git repository
  • Fetch and display your passwords from another host

It is assumed that the pass package has been installed on both the first and second computers.

@ryanwoodsmall
ryanwoodsmall / crosware_lighttpd.conf
Last active June 7, 2021 03:35
crosware_lighttpd.conf
server.document-root = "/usr/local/crosware"
server.port = 80
dir-listing.activate = "enable"
server.modules += ("mod_mbedtls")
$SERVER["socket"] == ":443" {
ssl.engine = "enable"
ssl.pemfile = "/usr/local/crosware/tmp/cert.pem"
ssl.privkey = "/usr/local/crosware/tmp/key.pem"
@ryanwoodsmall
ryanwoodsmall / twilight.c
Created October 12, 2020 01:31 — forked from halfmanhalftaco/twilight.c
twilight.c
/*
*
* cc twilight.c -lgl_s -lm -o twilight
*
* Copyright (c) 1991, 1992 Silicon Graphics, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software and
* its documentation for any purpose is hereby granted without fee, provided
* that the name of Silicon Graphics may not be used in any advertising or
* publicity relating to the software without the specific, prior written
@ryanwoodsmall
ryanwoodsmall / config.yml
Created September 25, 2020 06:41
config.yml for docker registry cleanup : registry garbage-collect /tmp/config.yml -m
version: 0.1
log:
fields:
service: registry
storage:
cache:
blobdescriptor: inmemory
filesystem:
rootdirectory: /var/lib/registry
delete:
@ryanwoodsmall
ryanwoodsmall / jenkins-token.md
Created July 30, 2020 20:59
jenkins-token.md
@ryanwoodsmall
ryanwoodsmall / kill-sticky.js
Created May 27, 2020 22:28 — forked from alisdair/kill-sticky.js
Kill sticky headers.
(function () {
var i, elements = document.querySelectorAll('body *');
for (i = 0; i < elements.length; i++) {
if (getComputedStyle(elements[i]).position === 'fixed') {
elements[i].parentNode.removeChild(elements[i]);
}
}
})();