This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
id_pre=$(youtube-dl --no-playlist --get-id -- $1) | |
if [[ $? -ne 0 ]]; then | |
exit $? | |
fi | |
id=$(echo $id_pre | tr -d '\r') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
id=$(youtube-dl --no-playlist --get-id -- $1 | tr -d '\r') | |
if [[ $? -ne 0 ]]; then | |
exit $? | |
fi | |
desc=$(youtube-dl --no-playlist --get-title -- $1 | tr -cd '[:alnum:][:space:]' | tr -d '\r') | |
echo "id is ${id}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set stream=%1 | |
set quality=%2 | |
if [%stream%]==[] goto :eof | |
if [%quality%]==[] set quality=source | |
livestreamer twitch.tv/%stream% %quality% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
stream=$1 | |
quality=$2 | |
# livestreamer twitch.tv/${stream} ${quality:-source} | |
livestreamer twitch.tv/${stream} ${quality:-source} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ "keys": ["ctrl+tab"], "command": "next_view" }, | |
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" } | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"color_scheme": "Packages/User/Monokai (SL).tmTheme", | |
"default_line_ending": "unix", | |
"font_size": 10, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"scroll_speed": 0, | |
"tab_completion": true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Fixes resizing in putty | |
termcapinfo xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l' | |
# Allows scrollback in putty without using screens copy mode (for ref: Ctrl-A, esc to enter copy mode) | |
termcapinfo xterm ti@:te@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"connections": | |
{ | |
"local irc": | |
{ | |
"server": "irc.quakenet.org", | |
"nick": "botnick", | |
"channels": ["#mychan"], | |
"qserv_username": "qservnick", | |
"qserv_password": "qservpass", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# OSX for Hackers (Mavericks/Yosemite) | |
# | |
# Source: https://gist.github.com/brandonb927/3195465 | |
#!/bin/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Ask for the administrator password upfront |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{u'contributors': None, | |
u'coordinates': None, | |
u'created_at': u'Tue Feb 10 13:58:51 +0000 2015', | |
u'entities': {u'hashtags': [], | |
u'media': [{u'display_url': u'pic.twitter.com/lc2bccnSaj', | |
u'expanded_url': u'http://twitter.com/Polydere/status/565147890293952512/photo/1', | |
u'id': 565147889316286464L, | |
u'id_str': u'565147889316286464', | |
u'indices': [0, 22], | |
u'media_url': u'http://pbs.twimg.com/tweet_video_thumb/B9fPAtRCUAAzKMa.png', |
OlderNewer