Skip to content

Instantly share code, notes, and snippets.

View acrisci's full-sized avatar
:shipit:
https://discord.gg/UdbXHVX

Tony Crisci acrisci

:shipit:
https://discord.gg/UdbXHVX
View GitHub Profile
@acrisci
acrisci / default-media-player.sh
Last active January 1, 2024 15:23
A helper script to set a default media player in Linux
#!/usr/bin/env bash
help_string=$(cat <<EOF
Usage: $0 [-h|-l] APPLICATION
Set a video player as the default.
Example:
# List candidate desktop files for media players.
@acrisci
acrisci / HtmlPaste.vim
Last active December 27, 2015 20:09
Share your vim buffer with others easily with your own personal pastebin-like system.
" Personal Pastebin
" Based on <http://connermcd.com/blog/2012/09/17/personal-pastebin-system/>
com! -range=% HtmlPaste <line1>,<line2>call HtmlPaste()
noremap <silent> gH :HtmlPaste<cr>
fun! HtmlPaste() range
" *********
" Settings
let localPaste = "~/projects/octopress/source/paste"
let remotePublic = "tony@example.com:/srv/www/example.com"