Skip to content

Instantly share code, notes, and snippets.

Kendell Fabricius kendellfab

Block or report user

Report or block kendellfab

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
kendellfab / synergy_build
Created Dec 1, 2014
Building Synergy on OSX Yosemite
View synergy_build
I was able to get this working on Yosemite with the following command:
./ conf -g2 --mac-sdk 10.10 --mac-identity Yosemite
Of course, this will only work given you have the dependencies. You can install them with the Homebrew package manager.
brew install cmake qt
Additionally, you'll want to build it with:
./ build
And finally, to install it, you'll get the compiled results from the bin folder, i.e.
kendellfab / fedora_mp3
Created Dec 14, 2013
Fedora MP3 support
View fedora_mp3
rpm -Uvh
rpm -Uvh
yum install gstreamer-plugins-ugly gstreamer-plugins-bad gstreamer-ffmpeg
## java ##
alternatives --install /usr/bin/java java /usr/java/latest/jre/bin/java 200000
## javaws ##
alternatives --install /usr/bin/javaws javaws /usr/java/latest/jre/bin/javaws 200000
View mysql_user
GRANT ALL PRIVILEGES ON dbTest.* To 'user'@'hostname' IDENTIFIED BY 'password';
kendellfab / golang_time
Created Nov 20, 2013
Golang time function.
View golang_time
func timeTrack(start time.Time, name string) {
elapsed := time.Since(start)
log.Printf("%s took %s", name, elapsed)
func factorial(n *big.Int) (result *big.Int) {
defer timeTrack(time.Now(), "factorial")
// ... do some things, maybe even return under some condition
return n
kendellfab / git_retieve
Created Nov 13, 2013
Retrieve lost file from git.
View git_retieve
git checkout <rev> filename
kendellfab / read_line.go
Created Nov 11, 2013
Golang --> Read file line by line.
View read_line.go
func readLine(path string) {
inFile, _ := os.Open(path)
defer inFile.Close()
scanner := bufio.NewScanner(inFile)
for scanner.Scan() {
kendellfab / golang_concurrency
Created Nov 4, 2013
Simple Golang concurrency concept.
View golang_concurrency
func Google(query string) (results []Result) {
c := make(chan Result)
go func() { c <- Web(query) } ()
go func() { c <- Image(query) } ()
go func() { c <- Video(query) } ()
for i := 0; i < 3; i++ {
result := <-c
results = append(results, result)
View pyobject_demo
from gi.repository import Gtk
builder = Gtk.Builder()
window = builder.get_object("window1")
View supervisord_config
; supervisor config file
file=/var/run//supervisor.sock ; (the path to the socket file)
chmod=0700 ; sockef file mode (default 0700)
logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
pidfile=/var/run/ ; (supervisord pidfile;default
childlogdir=/var/log/supervisor ; ('AUTO' child log dir, default $TEMP)
kendellfab / pacman_aur
Created Sep 23, 2013
Show list of AUR packages installed in pacman.
You can’t perform that action at this time.