Skip to content

Instantly share code, notes, and snippets.

View JonathanKang's full-sized avatar
🤔
Nothing here

Jonathan Kang JonathanKang

🤔
Nothing here
View GitHub Profile
@Billiam
Billiam / telemetry.py
Created July 3, 2015 17:19
DiRT Rally Telemetry
import socket
import struct
import os
# Create UDP socket.
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
# Bind to LFS.
sock.bind(('127.0.0.1', 20777))
@pascalpoitras
pascalpoitras / 1.md
Last active June 11, 2025 11:15
My WeeChat configuration

This configuration is not maintained anymore. You should think twice before using it, Breaking change and security issue will likely eventually happens as any abandonned project.

@kk1fff
kk1fff / interface.c
Created June 12, 2013 17:30
Getting information of network interface in linux
#include <linux/types.h>
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <linux/if.h>
#include <linux/kernel.h>
#include <linux/wireless.h>
#include <linux/sockios.h>
#include <linux/ethtool.h>
#include <string.h>
@scarlson
scarlson / playlist.sh
Last active February 21, 2025 04:08
Bash script to create .m3u playlist files for all mp3s in subdirectories
#!/bin/bash
#
# bash script to create playlist files in music subdirectories
#
# Steve Carlson (stevengcarlson@gmail.com)
find . -type d |
while read subdir
do
rm -f "$subdir"/*.m3u