This file contains hidden or 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 | |
ydlBaseString='youtube-dl --no-call-home --min-sleep-interval 0.5 --max-sleep-interval 2 --prefer-ffmpeg --extract-audio --ignore-errors --audio-format mp3 -o "%(title)s.%(ext)s"' | |
ydlURL="$ydlBaseString $1" | |
ydlList="$ydlBaseString --batch-file=$1" | |
if [[ $1 =~ ^http.* ]] ;then | |
eval $ydlURL | |
elif [[ $1 ]] ;then | |
eval $ydlList |
This file contains hidden or 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
# Based on: | |
# https://github.com/codebrainz/geany-themes/blob/master/colorschemes/zenburn.conf | |
[theme_info] | |
name=hub | |
description=A zenburn like dark theme for geany | |
version=1 | |
author=hub | |
url=https://gist.github.com/hub23/0144a13e68dbe26cda6f8d127da1edd5 | |
# list of each compatible Geany release version |
This file contains hidden or 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 | |
export SWT_GTK3=0 \ | |
&& cd /foo/bar/eclipse/java-oxygen/eclipse/ \ | |
&& /foo/bar/eclipse/java-oxygen/eclipse/eclipse |
This file contains hidden or 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
[global_config] | |
window_state = maximise | |
enabled_plugins = CustomCommandsMenu, InactivityWatch, ActivityWatch, APTURLHandler | |
title_inactive_fg_color = "#afafaf" | |
suppress_multiple_term_dialog = True | |
title_transmit_bg_color = "#4c4c4c" | |
title_inactive_bg_color = "#2d2d2d" | |
[keybindings] | |
broadcast_all = <Super>F9 | |
broadcast_off = <Super>F10 |
This file contains hidden or 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 | |
date | |
df -h | |
# GUI-related packages | |
pkgs=" | |
xserver-xorg-video-fbdev | |
xserver-xorg xinit | |
gstreamer1.0-x gstreamer1.0-omx gstreamer1.0-plugins-base |
This file contains hidden or 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 | |
dropbox stop | |
DBUS_SESSION_BUS_ADDRESS="" | |
dropbox start |
This file contains hidden or 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
# user colors | |
if [ $UID -eq 0 ]; then USERCOLOR="red"; else USERCOLOR="green"; fi | |
# box name | |
function box_name { | |
[ -f ~/.box-name ] && cat ~/.box-name || echo $HOST | |
} | |
# workdir | |
local current_dir='${PWD/#$HOME/~}' |
This file contains hidden or 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
# ssh settings for x session | |
alias ssh-xcomp="ssh -XC -c blowfish-cbc,arcfour" | |
# ssh socks proxy | |
alias ssh-socks="ssh -D 1080" | |
# apt-get update, upgrade, dist-upgrade, clean, autoremove | |
alias update-full="sudo apt-get -qyf install \ | |
&& sudo dpkg --configure -a \ | |
&& sudo apt-get -qy update \ |