Skip to content

Instantly share code, notes, and snippets.


Francesco Ceccon fracek

View GitHub Profile
View xorg.conf
# xorg.conf (X.Org X Window System server configuration file)
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
View gist:2890679
func toString(v interface{}) string {
if reflect.TypeOf(v) == nil {
return ""
return v.(string)
fracek / parse.js
Created Jun 13, 2012
parse command
View parse.js
#!/usr/bin/env node
* Given a string return a map in the form { cmd: 'args', cmd2: 'args' }
function parseCommand(s) {
m = {}
state = 0;
currentcmd = '';
currentargs = '';
fracek / CMakeLists.txt
Last active May 4, 2022
CMake and GTK+ 3
View CMakeLists.txt
# Thanks to @danger89 and @Ilothar for updating the gist.
# Set the name and the supported language of the project
project(hello-world C CXX)
# Set the minimum version of cmake required to build this project
cmake_minimum_required(VERSION 3.10)
# Use the package PkgConfig to detect GTK+ headers/library files
find_package(PkgConfig REQUIRED)
pkg_check_modules(GTK REQUIRED gtkmm-3.0)
View gist:3782532
.post h2.caption a {
font-size: 2em !important;
/* Smartphones (portrait and landscape) ---------- */
@media only screen and (max-width : 480px) {
/* Hide some stuff */
#leftnav {
display: none;
View robot.js
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
this.searching = true;
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
fracek / backup-issues.js
Created Dec 23, 2012
Save the current open issues for the given repository
View backup-issues.js
#!/usr/bin/env node
var github = require('octonode');
function link_to(text, url) {
return '['+text+']('+url+')';
var client = github.client();
var repo_name = process.argv[2];
#!/usr/bin/env python
# Taken from:
# All credits to the original author
# Modified to work with
import sys
import os
import markdown
# Read the given file, convert it to html then return the html
def convert(file):
fracek / monokai.xml
Created Dec 26, 2012
Monokai color theme for QT Creator. Found it somewhere on the 'net, slightly modified by me.
View monokai.xml
<?xml version="1.0" encoding="UTF-8"?>
<style-scheme version="1.0" name="Monokai">
<style name="Text" foreground="#e6e5e2" background="#272822"/>
<style name="Link" foreground="#66d9ef"/>
<style name="Selection" foreground="#e6e5e2" background="#49483e"/>
<style name="LineNumber" foreground="#a0a19c" background="#272822"/>
<style name="SearchResult" foreground="#ffffff" background="#2572b8"/>
<style name="SearchScope" foreground="#000000" background="#e2efff"/>
<style name="Parentheses" foreground="#ff0000" background="#c3e1ff"/>
<style name="CurrentLine" background="#3e3d32"/>
fracek / login
Created Jan 5, 2013
WeeChat plugin to store login credentials in a separate file. Create a `login` file in `~/.weechat/login` and put a connection command on each line.
View login -username=toethumb -autojoin=weechat,test -nicks=toethumb -nicks=ninjaduck,ninjaduck2 -autojoin=mmo-champion