Skip to content

Instantly share code, notes, and snippets.

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 Aug 3, 2020
A helper script to set a default media player in Linux
View default-media-player.sh
#!/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 Dec 27, 2015
Share your vim buffer with others easily with your own personal pastebin-like system.
View HtmlPaste.vim
" 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"
You can’t perform that action at this time.