Skip to content

Instantly share code, notes, and snippets.

View mrusme's full-sized avatar
🌊
Surfing the great wave off Kanagawa

◤◢◤◢◤◢◤◢ mrusme

🌊
Surfing the great wave off Kanagawa
View GitHub Profile
@mrusme
mrusme / nostr
Created August 9, 2023 22:41
nostr
Verifying that I control the following Nostr public key: npub1ntvtt70k4r3y8tc0qmszwae68xn8l9df3j3phcdccrchdslwn7psqpx9ss
@mrusme
mrusme / storage.ts
Created June 11, 2020 14:36
ionic-storage working with Vanilla JS & React
/**
*
* ionic-storage for React/VanillaJS
*
* This file was simply copied from
* https://github.com/ionic-team/ionic-storage/blob/master/src/storage.ts
* and adjusted to work on vanilla JavaScript as well as on React.
* No Angular dependencies required.
*
* Dependencies:
@mrusme
mrusme / tmux-cheatsheet.txt
Last active February 13, 2024 20:09
Tmux Cheatsheet (80 char ASCII version of https://www.tmuxcheatsheet.com)
╔════════════════════════════════════════════════════════════════════════════╗
║ Sessions ║
╚════════════════════════════════════════════════════════════════════════════╝
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ $ tmux ┃ ┃ $ tmux ls ┃
┃ $ tmux new ┃ ┃ $ tmux list-sessions ┃
┃ $ tmux new-session ┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
┃ : new ┃ [Ctrl] + [b] [s]
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ Show all sessions
Start a new session
@mrusme
mrusme / migrate.sh
Created September 6, 2016 20:40
Stupidly simple db migration script for CQL
#!/bin/bash
usage() { echo "Usage: $0 [-d <up|down>] [-f <directory>] [-v <cql version>] [-h <host>] [-p <port>] (-s <startpoint>)" 1>&2; exit 1; }
while getopts ":d:f:v:h:p:s:" opt; do
case $opt in
d)
MIGRATE_DIRECTION=$OPTARG
;;
f)