Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am ryneq on github.
  • I am ryneq (https://keybase.io/ryneq) on keybase.
  • I have a public key ASAf43_KZ0K4-TGXuWrnv9SL0n4i-ljDi1KvQ9iOay5IVQo

To claim this, I am signing this object:

@RYNEQ
RYNEQ / tun-ping-linux.py
Created April 9, 2022 09:36 — forked from glacjay/tun-ping-linux.py
Reading/writing Linux's TUN/TAP device using Python.
import fcntl
import os
import struct
import subprocess
# Some constants used to ioctl the device file. I got them by a simple C
# program.
TUNSETIFF = 0x400454ca
TUNSETOWNER = TUNSETIFF + 2
@RYNEQ
RYNEQ / sdrsharp.png
Created April 3, 2022 02:11 — forked from grahamwhaley/sdrsharp.png
Running SDR# under Linux/wine
sdrsharp.png
@RYNEQ
RYNEQ / tap-linux.py
Created March 29, 2022 11:31 — forked from makcuk/tap-linux.py
A simple python tun/tap udp tunnel example
# Simple linux tun/tap device example tunnel over udp
# create tap device with ip tuntap add device0 tap
# set ip address on it and run tap-linux on that device and set desitation ip
# run same on another node, changing dst ip to first node
import fcntl
import struct
import os
import socket
import threading
@RYNEQ
RYNEQ / review_video_ask_move.sh
Last active September 4, 2021 09:15
Script to review videos and move them to another directory with confirmation
#!/bin/bash
me=`basename "$0"`
if [ "$#" -ne 1 ]; then
echo "Usage: $me src_dir dst_dir"
exit 1
fi
src="$1"
@RYNEQ
RYNEQ / sparse_lucks_image.sh
Last active September 4, 2021 08:59
Creating sparse LUKS image in ubuntu
#!/bin/bash
me=`basename "$0"`
if [ "$#" -ne 2 ]; then
echo -e "${me} count_of_GBs filename\n\te.g. ${me} 1000 container.img"
exit 1
fi
size=$1
imagename=$2
@RYNEQ
RYNEQ / fib.py
Created August 22, 2016 05:04
Fib using reduce
fib = lambda n:reduce(lambda x,n:[x[1],x[0]+x[1]], range(n),[0,1])[0]