Skip to content

Instantly share code, notes, and snippets.

View hlgsdx's full-sized avatar

hlgsdx

View GitHub Profile
@hlgsdx
hlgsdx / Makefile
Last active September 6, 2024 06:46 — forked from adde88/Makefile
mdk4 - LEDE
#
# Copyright (C) 2009-2024 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=mdk4
@hlgsdx
hlgsdx / cue_to_flac.py
Created November 2, 2021 07:56 — forked from mervick/cue_to_flac.py
CUE splitter using ffmpeg (to flac)
#!/usr/bin/python3
import argparse
import os
import subprocess
def main():
parser = argparse.ArgumentParser(description='Split flac file using cue')
parser.add_argument('cue', type=str, help='path to cue file')
@hlgsdx
hlgsdx / SimpleHTTPServerWithUpload.py
Last active March 26, 2021 11:36 — forked from wuvei/SimpleHTTPServerWithUpload.py
Simple Python Http Server with Upload
#!/usr/env python3
########################################################################
#
# Simple HTTP server that supports file upload for moving data around
# between boxen on HTB. Based on a gist by bones7456, but mangled by me
# as I've tried (badly) to port it to Python 3, code golf it, and make
# It a little more robust. I was also able to strip out a lot of the
# code trivially because Python3 SimpleHTTPServer is a thing, and the
# cgi module handles multipart data nicely.
#
@hlgsdx
hlgsdx / sound_playback.c
Last active February 23, 2019 13:33 — forked from ghedo/sound_playback.c
Simple sound playback using ALSA API and libasound
/*
* Simple sound playback using ALSA API and libasound.
*
* Compile:
* $ cc -o play sound_playback.c -lasound
*
* Usage:
* $ ./play <sample_rate> <channels> <seconds> < <file>
*
* Examples: