Skip to content

Instantly share code, notes, and snippets.

View shmup's full-sized avatar
🐌

Jared Miller shmup

🐌
View GitHub Profile
@shmup
shmup / paste.vim
Created February 18, 2024 21:18 — forked from romainl/paste.vim
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
@shmup
shmup / Search my gists.md
Created December 19, 2023 04:41 — forked from santisbon/Search my gists.md
How to #search gists

Enter this in the search box along with your search terms:

Get all gists from the user santisbon.
user:santisbon

Find all gists with a .yml extension.
extension:yml

Find all gists with HTML files.
language:html

@shmup
shmup / irc.md
Created August 23, 2022 03:14 — forked from xero/irc.md
irc cheat sheet

IRC Reference

Not intended as a guide for newbies, more like a "cheat sheet" for the somewhat experienced IRC user, especially one who wields some power over a channel.

The Basics

  • /join #channel
    • Joins the specified channel.
  • /part #channel
  • Leaves the specified channel.
@shmup
shmup / twitch_irssi.md
Last active March 19, 2024 11:50 — forked from hunterbridges/twitch_irc.md
How to connect to Twitch with IRSSI (SSL)

IRSSI / TWITCH

Here's a method to chat in a twitch #channel with IRSSI

Get your oauth token here: https://twitchapps.com/tmi/

Server block

server = {
 address = "irc.chat.twitch.tv";
path = require 'path'
local function get_asset_comment(zip_path)
comment = GetAssetComment(zip_path)
if comment then
return comment
end
return ''
end
@shmup
shmup / SICP.md
Last active August 14, 2022 21:52 — forked from cellularmitosis/README.md
MIT 6.001 (1986) SICP Lecture Segments

MIT 6.001 (1986) SICP Lecture Segments

sicp

Here are YouTube links to each "segment" of the 1986 MIT 6.001 Structure and Interpretation of Computer Programs lectures from Harold Abelson and Gerald Jay Sussman.

See also:

@shmup
shmup / semantic-layout.html
Created October 29, 2020 00:09 — forked from thomd/semantic-layout.html
Standard HTML5 Semantic Layout
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Title</title>
<link href="stylesheets/main.css" rel="stylesheet" />
</head>
<body>
<header>
<hgroup>
@shmup
shmup / gist:6ed5af7c3f09f2e547974a5486b3fd24
Created January 16, 2018 23:56
Install Vim 8 with Python, Python 3, Ruby and Lua support on Ubuntu 16.04
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-gui-common
sudo apt-get install liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev libncurses5-dev libatk1.0-dev libx11-dev libxpm-dev libxt-dev
#Optional: so vim can be uninstalled again via `dpkg -r vim`
sudo apt-get install checkinstall
sudo rm -rf /usr/local/share/vim /usr/bin/vim
cd ~
@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 / man.sh
Last active March 18, 2016 12:47 — 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 +)