Skip to content

Instantly share code, notes, and snippets.

View sahib's full-sized avatar

Chris Pahl sahib

View GitHub Profile
TMS320C2000 Linker PC v22.6.0
>> Linked Wed Jan 17 16:30:17 2024
OUTPUT FILE NAME: <../Core_2.out>
ENTRY POINT SYMBOL: "_c_int00" address: 00080e43
sahib / Makefile
Last active July 5, 2019 07:05
cairo-pango-gles2 bug report (start reading surface.c -> main; the headers are from wayland weston and probably not relevant)
gcc surface.c -o surface ${CFLAGS} ${LDFLAGS} $(shell pkg-config --libs --cflags cairo wayland-client wayland-server wayland-egl pango pangocairo) -lEGL -Wall -Wextra
package main
import (
package main
import (
A ""
B "gx/ipfs/QmYf7ng2hG5XBtJA3tN34DQ2GUN5HNksEw1rLDkmr6vGku/go-multihash"
func main() {
a := A.Multihash(nil)
b := B.Multihash(nil)
#!/usr/bin/env python
# encoding: utf-8
from gi.repository import Moose
from gi.repository import GLib
import sys
def zeroconf_state_changed(browser):
sahib / get-n-fds.c
Created February 24, 2015 19:30
Find number of file descriptor per process (initially 3 usually)
int rm_fd_cache_get_fds_per_process(RmFdCache *self) {
int n = -1;
struct rlimit rl;
if(getrlimit(RLIMIT_NOFILE, &rl) == -1) {
return -1;
sahib / app.css
Created February 9, 2015 11:21
Small & colorful indicator label for Gtk
/* Support for colored labels.
* These are sometimes handy in order to highlight errors
* or mark some entries with "xx new items".
#AppIndicatorLabelTheme {
/* Animate changes so the label color gets faded in */
#include <gio/gunixmounts.h>
#include <glib.h>
/* Compile with:
gcc list-disks.c $(pkg-config --libs --cflags gio-unix-2.0) -std=c11 -ggdb3 -W -Wall
int main(void) {
#!/usr/bin/env python
# encoding: utf-8
from gi.repository import Gtk, GLib, Gio
import sys
class MainWindow(Gtk.ApplicationWindow):
def __init__(self, app):
Gtk.Window.__init__(self, title="Welcome to Gylfeed", application=app)