Skip to content

Instantly share code, notes, and snippets.

View shmup's full-sized avatar
🐌

Jared Miller shmup

🐌
View GitHub Profile
@romainl
romainl / paste.vim
Last active February 28, 2025 02:58
Sharing is caring
" Mac OS X (requires curl)
" ------------------------
command! -range=% SP <line1>,<line2>w !curl -F 'sprunge=<-' http://sprunge.us | tr -d '\n' | pbcopy
command! -range=% CL <line1>,<line2>w !curl -F 'clbin=<-' https://clbin.com | tr -d '\n' | pbcopy
command! -range=% VP <line1>,<line2>w !curl -F 'text=<-' http://vpaste.net | tr -d '\n' | pbcopy
command! -range=% PB <line1>,<line2>w !curl -F 'c=@-' https://ptpb.pw/?u=1 | tr -d '\n' | pbcopy
command! -range=% IX <line1>,<line2>w !curl -F 'f:1=<-' http://ix.io | tr -d '\n' | pbcopy
command! -range=% EN <line1>,<line2>w !curl -F 'file=@-;' https://envs.sh | tr -d '\n' | pbcopy
command! -range=% XO <line1>,<line2>w !curl -F 'file=@-' https://0x0.st | tr -d '\n' | pbcopy
command! -range=% TB <line1>,<line2>w !nc termbin.com 9999 | tr -d '\n' | pbcopy

op-1 keys

tape mode

cmd desc
shift + help set date - time
shift + tempo detune notes - cents
shift + tape erase tape
shift + synth undo edits and revert to the preset
@romainl
romainl / Vim_pushing_built-in_features_beyond_their_limits.markdown
Last active April 20, 2025 06:58
Vim: pushing built-in features beyond their limits

Vim: pushing built-in features beyond their limits

The situation

Searching can be an efficient way to navigate the current buffer.

The first search commands we learn are usually / and ?. These are seriously cool, especially with the incsearch option enabled which lets us keep typing to refine our search pattern. / and ? really shine when all we want is to jump to something we already have our eyeballs on but they are not fit for every situation:

  • when we want to search something that's not directly there, those two commands can make us lose context very quickly,
  • when we need to compare the matches.
@shmup
shmup / markdown-cheatsheet.md
Created October 22, 2016 04:02 — forked from james2doyle/markdown-cheatsheet.md
Another markdown cheatsheet. More straightforward examples.

Any block of text surrounded by line breaks is considered a paragraph.

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Alternatively, for H1 and H2, an underline-ish style:

@shmup
shmup / windows_web_dev_notes.md
Last active October 21, 2016 20:27
some things you may like
  1. Hosting/DNS - NearlyFreeSpeech - cheap, pay what you use hosting (literally could be < $1 a year)
  2. Web Server - Mongoose - a no installation, no configurations, one click to run web server (nice for local development)
  3. FTP - Cyberduck - will use to upload all your files to NFS
  4. Editor - Visual Studio Code - will use to edit all your html, css, javascript, etc..
  5. Colors - Color Cop - a nice color picker for web designers
  6. Browser - Chrome - has really nice tools for web developers
  7. Backup - Dropbox - a nice cloud storage app so you never lose your stuff
  8. Version Control (optional for now) - Git and SourceTree - a proper version control setup [[details below](https://gist.github.
@shmup
shmup / reverse_liveblog_order.md
Last active March 8, 2022 19:06
Reverses the order of the posts in an Ars Technica Liveblog. Useful when reading _after the fact_
var posts = document.getElementById("ars-liveblog-posts");

var i = posts.childNodes.length;

while (i--)
  posts.appendChild(posts.childNodes[i])

Minified

@ke4roh
ke4roh / git-show-big
Last active April 22, 2017 12:11
Show large objects in the git repo for cleaning cruft
$ cat git-show-big
#!/bin/bash
# Ref http://naleid.com/blog/2012/01/17/finding-and-purging-big-files-from-git-history
SHAS=$(git rev-list --objects --all | sort -k 2)
BIGOBJS=$(git gc && git verify-pack -v .git/objects/pack/pack-*.idx | egrep "^\w+ blob\W+[0-9]+ [0-9]+ [0-9]+$" | sort -k 3 -n -r)
join <(echo "$BIGOBJS" | sort ) <(echo "$SHAS" | sort ) | sort -k 3 -n -r | cut -f 1,3,6- -d\
@shmup
shmup / neptunes_pride_primer.md
Last active September 19, 2016 14:39
Introduction to Neptune's Pride
  • Win by controlling more than half of the star systems in the galaxy.
  • The game operates in ticks, every hour your ships move, things are generated, every 24 hours money is generated.
  • https://triton.ironhelmet.com/help/faq
  • Here is a short overview of how the game functions
  • Read the basic guide below possibly

Short Ass Description

You start off owning X stars and build carriers to explore new unowned stars, or fight the people on ones you want to control. Earn $ every 24 hours and use it to spend points in: Economy, Industry, or Science.

@shmup
shmup / man.sh
Last active October 3, 2024 06:01 — forked from lkptrzk/man.sh
`man` replacement for git bash on windows
#!/bin/sh
# man - `man` replacement for git bash on windows
# Requires:
# Git Bash - https://git-scm.com/downloads/
# wget - https://eternallybored.org/misc/wget/
# Notes:
# `sed -r` = allows gnu regex extensions (like +)