Skip to content

Instantly share code, notes, and snippets.

View fzerorubigd's full-sized avatar
🤷‍♂️
/shrug

Forud fzerorubigd

🤷‍♂️
/shrug
View GitHub Profile
#
# /etc/makepkg.conf
#
#########################################################################
# SOURCE ACQUISITION
#########################################################################
#
#-- The download utilities that makepkg should use to acquire sources
# Format: 'protocol::agent'
if [ ! -e ~/.antigen/source/antigen.zsh ];then
mkdir ~/.antigen
git clone https://github.com/zsh-users/antigen.git ~/.antigen/source
fi;
source ~/.antigen/source/antigen.zsh
# OK I need this :/
antigen use oh-my-zsh
# Theme
#antigen theme maran
antigen bundle nojhan/liquidprompt
#!/bin/env zsh
ROOT=~/.profiles
if [ -z $PROFILE_DIR ] || [ -z PROFILE_HISTORY ];then
cd $ROOT
FILES=($ROOT/*/)
FILES+=("Exit")
#!/bin/env zsh
ROOT=~/.profiles
if [ -z $PROFILE_DIR ] || [ -z PROFILE_HISTORY ];then
pushd $ROOT >/dev/null
FILES=($ROOT/*/)
FILES+=("Exit")
@fzerorubigd
fzerorubigd / .zshrc
Last active August 29, 2015 14:13
zshrc_multiuser
#!/bin/env zsh
# to setup :
# mkdir $ROOT/yourname
# $EDITOR $ROOT/yourname/zshrc
ROOT=~/.profiles
if [ -z $PROFILE_DIR ];then
pushd $ROOT >/dev/null
FILES=($ROOT/*/)
# See: /usr/share/doc/mpd/mpdconf.example
user "f0rud"
music_directory "/home/f0rud/musics"
state_file "/home/f0rud/.mpd/mpdstate"
playlist_directory "/home/f0rud/.mpd/playlists"
db_file "/home/f0rud/.mpd/mpd.db"
pid_file "/home/f0rud/.mpd/mpd.pid"
bind_to_address "0.0.0.0"
audio_output {
code.google.com
googleapis.com
googleusercontent.com
ytimg.com
youtube.com
youtube-nocookie.com
bitbucket.org
thepiratebay.se
humblebundle.com
plus.url.google.com
@fzerorubigd
fzerorubigd / blocked
Last active August 29, 2015 14:16
block list for cow, in iran. please add anything you need
code.google.com
googleapis.com
googleusercontent.com
ytimg.com
youtube.com
youtube-nocookie.com
bitbucket.org
thepiratebay.se
humblebundle.com
plus.url.google.com
#!/bin/bash
### BEGIN INIT INFO
# Provides: cow
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: COW: Climb Over the Wall http proxy
# Description: Automatically detect blocked site and use parent proxy.
### END INIT INFO
package main
import (
"fmt"
"sync"
)
type job struct {
id int
url string