Skip to content

Instantly share code, notes, and snippets.

🎧
say hi ! https://gitter.im/rsvp/pub

Adriano rsvp

🎧
say hi ! https://gitter.im/rsvp/pub
Block or report user

Report or block rsvp

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@rsvp
rsvp / git-logur
Created Jan 12, 2018
git-logur : get log of GitHub repository without cloning. Shell script in bash for git log using GitHub API.
View git-logur
#!/usr/bin/env bash
# bash 4.3.11(1) Linux 3.13.0 git 1.9.1 Date : 2018-01-12
#
# _______________| git-logur : get log of GitHub repo without cloning.
#
# Usage: $ git-logur [username] [repository] [-m|-c|-v]
# # Format defaults to messages -m, else
# # -c for concise text, or -v for verbose json.
# # Concise includes author and committer, with timestamps.
#
@rsvp
rsvp / git-lu
Last active Aug 14, 2017
git-lu :: Git script gets LAST COMMIT DATE / TIMES (since modification time is unreliable), given path/filename(s) -- supports wildcards, SHA hash ref.
View git-lu
#!/usr/bin/env bash
# bash 4.3.11(1) Linux 3.13.0 git 1.9.1 Date : 2017-08-14
#
# _______________| git-lu : get last commit date for file(s)
# since git can change OS file modification times!
#
# Usage: git lu [filename(s), wildcards optional]
#
# Example: $ git lu *.ipynb # SAMPLE OUTPUT FORMATTING
# 0000-00-00 _Not_committed _No_SHA 00-tpl-v4.ipynb
@rsvp
rsvp / ipython_config.py
Last active Feb 2, 2017
IPython v5 config file with custom PROMPTS [deprecating PromptManager], simulating readline vi-mode
View ipython_config.py
#!/usr/bin/env python
# vim: set fileencoding=utf-8 ff=unix tw=78 ai syn=python : per PEP 0263
# python 2.7.13 under Linux Ubuntu 14.04 Date : 2017-02-02
# IPython 5.1.0 from Anaconda distribution
#
# _______________| ipython_config.py : custom config file
#
'''
CHANGE LOG Latest config version, see https://git.io/ipython_config.py
@rsvp
rsvp / bug_free_buddha_comment.py
Created Jun 20, 2016
Special comment to minimize bugs in any Python or shell code -- Buddhist ASCII Art
View bug_free_buddha_comment.py
# To minimize bugs, include this comment:
#
#
# _oo0oo_
# o8888888o
# 88" . "88
# (| -_- |)
# 0\ = /0
# ___/`---'\___
# .' \| |// '.
@rsvp
rsvp / dirt.sh
Last active Jan 1, 2016
dirt.sh :: directory tree -- display tree size structure of directory hierarchy.
View dirt.sh
#!/usr/bin/env bash
# bash 4.2.24(1) Linux Ubuntu 12.04 Date : 2013-12-23
#
# _______________| dirt : display tree size structure of directory hierarchy.
#
# Usage: dirt [directory=.] [indent_character=" "]
#
# Dependencies: None
# [ Note: full-featured "tree" is an available Ubuntu package:
# http://manpages.ubuntu.com/manpages/trusty/man1/tree.1.html
@rsvp
rsvp / randout.sh
Last active Dec 25, 2015
randout.sh :: readable random output from system kernel using /dev/urandom.
View randout.sh
#!/usr/bin/env bash
# bash 4.2.24(1) Linux Ubuntu 12.04 Date : 2013-10-19
#
# _______________| randout : readable random output from system kernel.
#
# Usage: randout [bytes=512] [--TYPE] [characters/line]
# Types: space, graph, mime, url, alpha, alnum, alnoo,
# lonum, hex, digit (see case below for details).
#
# Examples: # Default type is --digit (but --hex is also available):
@rsvp
rsvp / sc-dl-min.js
Created Jan 24, 2013 — forked from duncanbeevers/sc-dl-min.js
Bookmarklet which creates download links on *any* Soundcloud page. Full credit goes to duncanbeevers, see https://gist.github.com/2157987 -- Last tested on newer Soundcloud site: 24 Jan 2013 Successful :-)
View sc-dl-min.js
(function(a){var b,c,d,e=$(".sound"),f=require("config").get("client_id"),g=require("lib/connect").getAuthToken(),h=require("lib/helpers/conversion-helper"),i,j,k,l,m;for(b=e.length-1;b>=0;b--){c=$(e[b]);if(0==c.find(".sc-button-download").length){var n="https://soundcloud.com"+(c.find(".soundTitle__title").attr("href")||a.location.pathname);k={url:n,client_id:f},m=function(a){return function(b){var c={client_id:f};l=require("lib/url").stringify({query:c},b.stream_url+".mp3"),d=a.find(".sound__soundActions .sc-button-group"),j=d.find(".sc-button:first")[0].className.match(/sc-button-((?:small)|(?:medium))/)[1],i=$('<a class="sc-button sc-button-download sc-button-icon sc-button-responsive">Download</a>').attr({title:"Download this sound ("+h.bytesToMB(b.original_content_size)+")",href:l}).addClass("sc-button-"+j),d.append(i)}}(c),$.getJSON("http://api.soundcloud.com/resolve.json",k).success(m)}}})(window)
@rsvp
rsvp / trance-stream.sh
Created Sep 27, 2012
trance-stream.sh : shell script for radio and remixes.
View trance-stream.sh
#!/usr/bin/env bash
vlc "$( shuf -n1 - <<HearMusic
http://205.188.215.225:8018/listen.pls
http://listen.di.fm/public3/trance.pls
http://listen.di.fm/public3/vocaltrance.pls
http://listen.di.fm/public3/chilloutdreams.pls
http://listen.di.fm/public3/eurodance.pls
http://listen.di.fm/public3/club.pls
http://listen.di.fm/public3/electro.pls
@rsvp
rsvp / jpilotsudo.sh
Created Sep 22, 2012
jpilotsudo.sh : help sync Palm device with jpilot. \ Linux bash script.
View jpilotsudo.sh
#!/usr/bin/env bash
# bash 4.2.24(1) Linux Ubuntu 12.04 Date : 2012-09-21
#
# _______________| jpilotsudo : help sync Palm device with jpilot.
#
# Usage: jpilotsudo # requires sudo access.
#
# Dependencies: jpilot
#
# Error Message to be resolved:
@rsvp
rsvp / aw.sh
Created Sep 12, 2012
aw.sh : use awk as quick custom calculator on command line -- with easy syntax. / Linux bash script.
View aw.sh
#!/usr/bin/env bash
# bash 4.2.24(1) Linux Ubuntu 12.04 Date : 2012-09-13
#
# _______________| aw : use awk as quick custom calculator on command line.
#
# Usage: aw 'expression' [decimal/sig:8] [format:g]
# aw bak # show log file of previous result.
#
#
# User-defined: r = random number strictly between 0 and 1,
You can’t perform that action at this time.