Skip to content

Instantly share code, notes, and snippets.

@IslandJohn
IslandJohn / toggle_1x1_2pos.py
Created August 10, 2020 02:40
Joystick Gremlin plugin to remap the OFF/ON states of a physical toggle switch to 2 virtual buttons, simulating an ON/ON toggle switch.
import gremlin
from gremlin.user_plugin import *
mode = ModeVariable(
"Mode",
"The mode to use for this instance"
)
joy_1 = PhysicalInputVariable(
"Physical ON",
@IslandJohn
IslandJohn / toggle_1x2_3pos.py
Last active December 24, 2022 14:43
Joystick Gremlin plugin to remap the OFF/ON/ON states of a physical toggle switch to 3 virtual buttons, simulating an ON/ON/ON toggle switch.
import gremlin
from gremlin.user_plugin import *
mode = ModeVariable(
"Mode",
"The mode to use for this instance"
)
joy_1 = PhysicalInputVariable(
"Physical ON 1",
@IanColdwater
IanColdwater / twittermute.txt
Last active July 2, 2024 02:25
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@3f8wohoo
3f8wohoo / rename-torrent.sh
Created February 9, 2019 14:02
Extract name from torrent and rename .torrent file
#!/bin/bash
# Usage: rename-torrent.sh /path/to/torrents /path/to/output
#
# read-torrent must be installed
# npm install -g read-torrent
if [[ -z $1 ]]; then
echo "No input path specified!"
exit 1
else
@Chion82
Chion82 / iana_openssl_cipher_mapping.json
Created January 25, 2019 06:40
Mapping OpenSSL cipher suite names to IANA names. https://testssl.sh/openssl-iana.mapping.html
{
"TLS_RSA_WITH_NULL_MD5":"NULL-MD5",
"TLS_RSA_WITH_NULL_SHA":"NULL-SHA",
"TLS_RSA_EXPORT_WITH_RC4_40_MD5":"EXP-RC4-MD5",
"TLS_RSA_WITH_RC4_128_MD5":"RC4-MD5",
"TLS_RSA_WITH_RC4_128_SHA":"RC4-SHA",
"TLS_RSA_EXPORT_WITH_RC2_CBC_40_MD5":"EXP-RC2-CBC-MD5",
"TLS_RSA_WITH_IDEA_CBC_SHA":"IDEA-CBC-SHA",
"TLS_RSA_EXPORT_WITH_DES40_CBC_SHA":"EXP-DES-CBC-SHA",
"TLS_RSA_WITH_DES_CBC_SHA":"DES-CBC-SHA",
@shr00mie
shr00mie / letsencrypt_esxi.sh
Last active June 13, 2024 22:32
Let's Encrypt SSL for ESXi
#!/bin/bash
#
## -----------------------------=[ WARNING ]=-------------------------------- ##
#
# This script is now woefully out of date due to which accounts ESXi allows to
# ssh into the box as well as sticky folders/file flags.
# I've since ported the whole thing to python with a lot of bells and whistles
# and if i get around to making it public, i'll put a link here.
#
## -------------------------------=[ Info ]=--------------------------------- ##
@rueycheng
rueycheng / GNU-Make.md
Last active July 6, 2024 14:14
GNU Make cheatsheet
@hjst
hjst / Makefile
Created June 6, 2017 18:58
Makefile for use with PlantUML diagrams
PLANTUML_JAR_URL = https://sourceforge.net/projects/plantuml/files/plantuml.jar/download
DIAGRAMS_SRC := $(wildcard diagrams/*.plantuml)
DIAGRAMS_PNG := $(addsuffix .png, $(basename $(DIAGRAMS_SRC)))
DIAGRAMS_SVG := $(addsuffix .svg, $(basename $(DIAGRAMS_SRC)))
# Default target first; build PNGs, probably what we want most of the time
png: plantuml.jar $(DIAGRAMS_PNG)
# SVG are nice-to-have but don't need to build by default
svg: plantuml.jar $(DIAGRAMS_SVG)
@mosquito
mosquito / README.md
Last active July 18, 2024 19:07
Add doker-compose as a systemd unit

Docker compose as a systemd unit

Create file /etc/systemd/system/docker-compose@.service. SystemD calling binaries using an absolute path. In my case is prefixed by /usr/local/bin, you should use paths specific for your environment.

[Unit]
Description=%i service with docker compose
PartOf=docker.service
After=docker.service
@robertpainsi
robertpainsi / commit-message-guidelines.md
Last active July 17, 2024 12:55
Commit message guidelines

Commit Message Guidelines

Short (72 chars or less) summary

More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).

Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages