Skip to content

Instantly share code, notes, and snippets.

It's 5.50 a.m.... Do you know where your stack pointer is?

Rodrigo Delduca skhaz

It's 5.50 a.m.... Do you know where your stack pointer is?
View GitHub Profile
#!/usr/bin/env python3
import re
import functools
import itertools
from pathlib import Path
import click
from jinja2 import Environment, BaseLoader, Template
skhaz /
Last active Oct 7, 2019
My iocage setup for FreeNAS
zfs create tank/apps/gphotos
iocage create --release 11.2-RELEASE --name "gphotos" \
boot="on" \
vnet="on" \
defaultrouter="" \
iocage exec gphotos "mkdir -p /usr/local/etc/pkg/repos"
iocage exec gphotos "echo -e 'FreeBSD: { url: \"pkg+\${ABI}/latest\" }' > /usr/local/etc/pkg/repos/FreeBSD.conf"
skhaz /
Last active Jul 18, 2019
Keybase proof

Keybase proof

I hereby claim:

  • I am skhaz on github.
  • I am skhaz ( on keybase.
  • I have a public key ASAAWBkk_UWEElVoWlaxbojdzy40GIG_nq9hDi2J3yO_hwo

To claim this, I am signing this object:

wget -O - -o /dev/null | bash
CONFIG -= console
CONFIG -= app_bundle
CONFIG -= qt
CONFIG -= windows
SDL2_PATH = D:\Workspace\SDL2
LIBS += -L $${SDL2_PATH}\lib -lSDL2 -lSDL2main -lSDL2_image
INCLUDEPATH += $${SDL2_PATH}\include
skhaz / main.cpp
Last active Apr 9, 2021
View main.cpp
#include <QtDebug>
#include <QImage>
#include <QString>
#include <QBitArray>
#include <QByteArray>
#include <QFile>
#include <QCommandLineParser>
namespace {
enum { headerSize = 32 };
View .conkyrc
background yes
use_xft yes
xftfont Sans:size=8
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type desktop
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
View gist:b0def30819f7f9b1be06
# minute hour day of month month day of week command
# 0-59 0-23 1-31 1-12 0-7 (0/7 is Sun)
30 18 * * * root /opt/vc/bin/tvservice -p ; /opt/vc/bin/tvservice -o
30 8 * * 1-5 root /opt/vc/bin/tvservice -p ; sudo chvt 6; sudo chvt 7
View gist:6905342
cat *.cpp *.h | cpp -fpreprocessed | sed 's/[_a-zA-Z0-9][_a-zA-Z0-9]*/x/g' | wc -c
View gist:5398392
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <iterator>
#include <functional>
int main(int argc, char **argv)
using namespace std;