Skip to content

Instantly share code, notes, and snippets.

hub23

Block or report user

Report or block hub23

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
@hub23
hub23 / youtube-dl-mp3
Last active Sep 29, 2018
youtube-dl wrapper for mp3 downloads
View youtube-dl-mp3
#!/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
@hub23
hub23 / hub.conf
Last active Mar 11, 2018
Geany Dark Theme
View hub.conf
# 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
@hub23
hub23 / eclipse
Created Nov 22, 2017
Run Eclipse Oxygen in Dark Themes with correct Icons
View eclipse
#!/bin/bash
export SWT_GTK3=0 \
&& cd /foo/bar/eclipse/java-oxygen/eclipse/ \
&& /foo/bar/eclipse/java-oxygen/eclipse/eclipse
@hub23
hub23 / config
Created Nov 22, 2017
Terminator Config
View config
[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
@hub23
hub23 / slimfit.sh
Last active Nov 22, 2017 — forked from samatjain/Slim-Raspbian.sh
Shrink Raspbian Installation
View slimfit.sh
#!/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
@hub23
hub23 / dropbox workaround
Created Aug 23, 2016
Dropbox xfce4-panel Icon Bug Workaround
View dropbox workaround
#!/bin/bash
dropbox stop
DBUS_SESSION_BUS_ADDRESS=""
dropbox start
@hub23
hub23 / zsh theme
Last active Dec 1, 2019
Custom ZSH Theme
View zsh theme
# 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/~}'
@hub23
hub23 / aliases
Last active May 25, 2017
Shell Config Snippets
View aliases
# 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 \
You can’t perform that action at this time.