Skip to content

Instantly share code, notes, and snippets.

View jrell26's full-sized avatar

Brian Guerrero jrell26

  • 78225
View GitHub Profile
@jrell26
jrell26 / snipplr_embed_largest.html
Created December 2, 2018 10:49
Code snippet - find the largest top 10 files and directories on a Linux / UNIX / BSD filesystem
<div id="snipplr_embed_37975" class="snipplr_embed"><a href="https://snipplr.com/view/37975/find-the-largest-top-10-files-and-directories-on-a-linux--unix--bsd-filesystem/">Code snippet - find the largest top 10 files and directories on a Linux / UNIX / BSD filesystem</a> on Snipplr</div><script type="text/javascript" src="https://snipplr.com/js/embed.js"></script><script type="text/javascript" src="https://snipplr.com/json/37975"></script>
@jrell26
jrell26 / gist:cea1f27f2c413aa95df45e1d5fd4691f
Last active May 4, 2018 22:59 — forked from al3xandru/gist:1128606
[nvALT Bookmarklet] #macOS
javascript:(function({
var INSTAPAPER=true,w=window,d=document,pageSelectedTxt=w.getSelection?w.getSelection():(d.getSelection)?d.getSelection():(d.selection?d.selection.createRange().text:0),pageTitle=d.title,pageUri=w.location.href,tmplt="";
tmplt="From ["+pageTitle+"]("+pageUri+"):\n\n";
if(pageSelectedTxt!="") {
pageSelectedTxt=">%20"+pageSelectedTxt;
pageSelectedTxt=pageSelectedTxt.replace(/(\r\n|\n+|\r)/gm,"\n");
pageSelectedTxt=pageSelectedTxt.replace(/\n/g,"\n>%20\n>%20");
w.location.href="nvalt://make/?txt="+encodeURIComponent(tmplt+pageSelectedTxt)+"&title="+encodeURIComponent(pageTitle)
}
else {
@jrell26
jrell26 / youtube.sh
Created December 6, 2017 19:51 — forked from dantheman213/youtube-dl_cheatsheet.md
youtube-dl cheatsheet -- Download entire youtube playlist and more!
# https://github.com/rg3/youtube-dl/
# On ubuntu: apt-get install libav-tools
# Download Playlist to batch of MP3s
youtube-dl -f bestvideo+bestaudio --extract-audio --audio-format mp3 --prefer-avconv --playlist-random https://www.youtube.com/playlist?list=XXXXX
# Download individual song
youtube-dl -f bestvideo+bestaudio --extract-audio --audio-format mp3 --prefer-avconv https://www.youtube.com/watch?v=ZZZZZZZ
<script type="text/javascript">
var player = jwplayer('player');
player.setup({
playlist: 'https://cdn.jwplayer.com/v2/media/8L4m9FJB'
});
player.addButton(
//This portion is what designates the graphic used for the button
@jrell26
jrell26 / buttondown.css
Created October 27, 2017 09:50 — forked from ryangray/buttondown.css
A clean, minimal CSS stylesheet for Markdown, Pandoc and MultiMarkdown HTML output.
/*
Buttondown
A Markdown/MultiMarkdown/Pandoc HTML output CSS stylesheet
Author: Ryan Gray
Date: 15 Feb 2011
Revised: 21 Feb 2012
General style is clean, with minimal re-definition of the defaults or
overrides of user font settings. The body text and header styles are
left alone except title, author and date classes are centered. A Pandoc TOC
@jrell26
jrell26 / 0_reuse_code.js
Created August 18, 2017 06:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console