Skip to content

Instantly share code, notes, and snippets.

View Dr-Terrible's full-sized avatar

Mauro Toffanin Dr-Terrible

View GitHub Profile
@hvoecking
hvoecking / translate.go
Last active September 26, 2024 12:20
Golang reflection: traversing arbitrary structures
// Traverses an arbitrary struct and translates all stings it encounters
//
// I haven't seen an example for reflection traversing an arbitrary struct, so
// I want to share this with you. If you encounter any bugs or want to see
// another example please comment.
//
// The MIT License (MIT)
//
// Copyright (c) 2014 Heye Vöcking
//
@esimionato
esimionato / awesome-gnome3
Created October 28, 2011 16:30
Awesome with Gnome 3
1. System Settings -> System Info -> Graphics -> Forced Fallback Mode ON
2. .gnomerc in your $HOME
export WINDOW_MANAGER=/usr/local/bin/awesome-wm
3. /usr/local/bin/awesome-wm
#!/bin/sh
awesome &
4. /usr/share/gnome-session/sessions/awesome.session
[GNOME Session]
Name=Awesome session
RequiredComponents=gnome-settings-daemon;