Skip to content

Instantly share code, notes, and snippets.

@gmolveau
gmolveau / golang_offline.md
Last active May 29, 2024 19:23
golang mod offline dependencies download

golang offline module dependencies download

Using go mod vendor

0 - With an existing module

  • copy go.mod and go.sum files from the offline PC to the internet PC

0bis - New module

@tetsu-koba
tetsu-koba / 00_ioctl_golang
Created January 15, 2018 08:58
Golang ioctl sample
Golang ioctl sample
@tetsu-koba
tetsu-koba / 00_uio_golang
Last active July 12, 2022 22:57
Using UIO from golang
Using UIO from golang
@mattypiper
mattypiper / armemu.py
Created June 2, 2016 03:37
ARM Assembly, Emulation, Disassembly using Keystone, Unicorn, and Capstone
#!/usr/bin/python
import sys
from keystone import *
from unicorn import *
from unicorn.arm_const import *
from capstone import *
from capstone.arm import *
from capstone.x86 import *
@jandahl
jandahl / GNUscreen-OSX-slowpaste.md
Last active August 20, 2024 18:48
Using GNU screen as a slow pasting virtual serial console terminal

Using GNU screen as a slow pasting virtual serial console terminal

A quick primer

You will need

  1. A Macintosh computer
  2. A USB-to-serial adapter
  3. A file with a config you want to paste sloooowly
  4. A few minutes

1. Make a sensible ~/.screenrc file

@ccbrown
ccbrown / DumpHex.c
Last active October 16, 2024 07:37
Compact C Hex Dump Function w/ASCII
#include <stdio.h>
void DumpHex(const void* data, size_t size) {
char ascii[17];
size_t i, j;
ascii[16] = '\0';
for (i = 0; i < size; ++i) {
printf("%02X ", ((unsigned char*)data)[i]);
if (((unsigned char*)data)[i] >= ' ' && ((unsigned char*)data)[i] <= '~') {
ascii[i % 16] = ((unsigned char*)data)[i];