Skip to content

Instantly share code, notes, and snippets.

# .tmux.conf
#
# hit C-a as the special tmux prefix then [ for visual mode.
# hit v and use the hjkl keys to select text you want to copy and then hit y to copy the selected text.
# The copied text will be available to the system clipboard.
#
# NOTE for copying to system clipboard xclip must be installed.
#
set -g status off
@jstaursky
jstaursky / c_pipes_ipc.cpp
Created October 11, 2023 01:40
linux pipes example
#include <iostream>
#include <sstream>
#include <cstdio>
#include <string>
#include <unistd.h>
#include <fcntl.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <sys/stat.h>
@jstaursky
jstaursky / keystone_assembler.py
Last active July 21, 2024 15:15
cmdline keystone assembler
#!/usr/bin/env python3
from keystone import *
import sys
import argparse
import binascii
def main(filename=None, raw=False):
if filename is None: