Skip to content

Instantly share code, notes, and snippets.

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

Forud fzerorubigd

🤷‍♂️
/shrug
View GitHub Profile
# 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 {
#!/usr/bin/env python3
import sys
def test():
print("""What would you do, if you encountered a lion:
1-) kill him cause I'm a hero
2-) run away
3-) attack him
4-) Throw him some foods
""")
@fzerorubigd
fzerorubigd / keybase.md
Created January 4, 2016 21:35
keybase.md

Keybase proof

I hereby claim:

  • I am fzerorubigd on github.
  • I am fzerorubigd (https://keybase.io/fzerorubigd) on keybase.
  • I have a public key whose fingerprint is 88FC 7160 FC00 E025 6D90 3077 D6EE 858A F9D2 999A

To claim this, I am signing this object:

#!/bin/bash
HOW_MANY=${1:-999}
PHONE=${2:-INVALID}
SMS=${3:-"The messsage"}
for i in `seq 1 ${HOW_MANY}`;
do
adb shell am start -a android.intent.action.SENDTO -d sms:${PHONE} --es sms_body ${SMS} --ez exit_on_sent true
adb shell input keyevent 22
adb shell input keyevent 66
sleep 2
@fzerorubigd
fzerorubigd / monitor.go
Created April 7, 2016 09:16
a simple queue status query
package main
import (
"encoding/json"
"fmt"
"log"
"os"
"github.com/ogier/pflag"
"github.com/streadway/amqp"
package main
import (
"encoding/xml"
"math/big"
)
var _ = big.MaxBase // Avoid potential unused-import error
type ChargingInformation struct {
# 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 {
@fzerorubigd
fzerorubigd / nod32-upd.sh
Created July 5, 2016 10:02
A simple script to create nod32 update mirror
#!/bin/bash
####################################################################################
## Nod32 Update Backup ##
####################################################################################
## ##
## Author: FzerorubigD <[email protected]> ##
## Copyright (c) Cyberrabbits.net 2010 ##
## ##
## License: GPL v3 ##
## Version: 0.1 ##
@fzerorubigd
fzerorubigd / -
Created September 26, 2016 13:19
unbind C-b
set -g prefix C-b
#urxvt tab like window switching (-n: no prior escape seq)
bind -n M-down new-window
bind -n M-left prev
bind -n M-right next
#bind -n C-left swap-window -t -1
#bind -n C-right swap-window -t +1
code.google.com
googleapis.com
googleusercontent.com
ytimg.com
youtube.com
youtube-nocookie.com
bitbucket.org
thepiratebay.se
humblebundle.com
plus.url.google.com