Skip to content

Instantly share code, notes, and snippets.

View skhaz's full-sized avatar
:octocat:
It's 5.50 a.m.... Do you know where your stack pointer is?

Rodrigo Delduca skhaz

:octocat:
It's 5.50 a.m.... Do you know where your stack pointer is?
View GitHub Profile
@skhaz
skhaz / gist:03f9ae6a8e887f9bc3e18af22af35753
Created October 22, 2026 19:05
kicksideai Contributor License Agreement
**Individual Contributor License Agreement**
In order to clarify the intellectual property license granted with Contributions from any person or entity,
kicksideai ("Company") must have a Contributor License Agreement ("CLA") on file that has been signed by each
Contributor, indicating agreement to the license terms below. This license is for your protection as a Contributor as
well as the protection of Company; it does not change your rights to use your own Contributions for any other purpose.
You accept and agree to the following terms and conditions for Your present and future Contributions submitted to
Company. Except for the license granted herein to Company and recipients of software distributed by Company, You reserve
all right, title, and interest in and to Your Contributions.
@skhaz
skhaz / autoinstall.yaml
Last active January 20, 2025 11:40
Ubuntu Autoinstall
#cloud-config
autoinstall:
version: 1
source:
id: ubuntu-desktop-minimal
identity:
hostname: orbital
username: kashmir
password: "$6$psBe8CEg/e8JW5a3$zTghAora5FbxV6wReueN14WiLO5TLK09co87QUp6LvWaT.hNgDVmwIGc6YClE8.YpDYaiYCNntrO4JfNLGx/B1"
@skhaz
skhaz / chrome.sh
Last active January 20, 2025 13:17
Chrome Kiosk Mode
google-chrome --kiosk https://www.google.com \
--no-first-run \
--disable-infobars \
--disable-translate \
--disable-pinch \
--overscroll-history-navigation=0 \
--disable-gesture-requirement-for-media-playback \
--disable-sync \
--disable-features=TranslateUI \
--no-default-browser-check \
@skhaz
skhaz / docker-compose.yaml
Created May 20, 2024 13:00
Firefox in Docker with X Server
services:
firefox:
image: jlesage/firefox
environment:
- DISPLAY=host.docker.internal:0.0
- XAUTHORITY=/root/.Xauthority
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix
- $HOME/.Xauthority:/root/.Xauthority
restart: unless-stopped
@skhaz
skhaz / default
Created November 10, 2023 14:51
Conan sanitizers
# ~/.conan2/profiles/default
[settings]
arch=armv8
build_type=Debug
compiler=clang
compiler.cppstd=gnu17
compiler.libcxx=libc++
compiler.version=17
os=Macos
#!/usr/bin/env python3
import re
import functools
import itertools
from pathlib import Path
import click
from jinja2 import Environment, BaseLoader, Template
try:
@skhaz
skhaz / script.sh
Last active October 7, 2019 14:24
My iocage setup for FreeNAS
zfs create tank/apps/gphotos
iocage create --release 11.2-RELEASE --name "gphotos" \
boot="on" \
vnet="on" \
defaultrouter="192.168.1.1" \
ip4_addr="vnet0|192.168.1.40/24"
iocage exec gphotos "mkdir -p /usr/local/etc/pkg/repos"
iocage exec gphotos "echo -e 'FreeBSD: { url: \"pkg+http://pkg.FreeBSD.org/\${ABI}/latest\" }' > /usr/local/etc/pkg/repos/FreeBSD.conf"
wget freevps.us/downloads/bench.sh -O - -o /dev/null | bash
@skhaz
skhaz / SDL2_Windows.pro
Created June 18, 2016 19:17
SDL2 QMake
TEMPLATE = app
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
skhaz / main.cpp
Last active February 13, 2026 15:37
Steganography
#include <QtDebug>
#include <QImage>
#include <QString>
#include <QBitArray>
#include <QByteArray>
#include <QFile>
#include <QCommandLineParser>
namespace {
enum { headerSize = 32 };