This is a very simple HTTP server for Unix, using fork(). It's very easy to use
- include header
httpd.h - write your route method, handling requests.
- call
serve_forever("12913")to start serving on port 12913
| #!/bin/sh | |
| # This script should be saved in a git repo as a hook file, e.g. .git/hooks/pre-receive. | |
| # It looks for scripts in the .git/hooks/pre-receive.d directory and executes them in order, | |
| # passing along stdin. If any script exits with a non-zero status, this script exits. | |
| script_dir=$(dirname $0) | |
| hook_name=$(basename $0) | |
| hook_dir="$script_dir/$hook_name.d" |
| From 45b0c1da3ed92b232b35cc2922e696a5d0fc5c16 Mon Sep 17 00:00:00 2001 | |
| From: MusiKid | |
| Date: Sat, 23 Sep 2017 19:46:02 +0200 | |
| Subject: [PATCH] Add CD-ROM emulation support. | |
| # This is a recent patch to add CD-ROM emulation to your kernel | |
| --- | |
| drivers/usb/gadget/function/f_mass_storage.c | 25 +++++++++++++++++++++++++ | |
| drivers/usb/gadget/function/storage_common.c | 4 ++-- |
| # This xorg configuration file will start a dummy X11 server. | |
| # move it to /etc/X11/xorg.conf | |
| # don't forget apt install xserver-xorg-video-dummy; | |
| # based on https://xpra.org/Xdummy.html | |
| Section "ServerFlags" | |
| Option "DontVTSwitch" "true" | |
| Option "AllowMouseOpenFail" "true" | |
| Option "PciForceNone" "true" | |
| Option "AutoEnableDevices" "false" |
| @echo off | |
| title Microsoft Office 2019 versions are supported!&cls&echo | |
| ============================================================================&echo | |
| #Project: Activating Microsoft software products for FREE without software&echo | |
| ============================================================================&echo.&echo | |
| #Supported products:&echo - Microsoft Office Standard 2019&echo - Microsoft Office Professional Plus 2019&echo.&echo.&(if exist | |
| "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office16")&(if exist | |
| "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office16")&(for /f %%x in ('dir /b | |
| ..\root\Licenses16\ProPlus2019VL*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&(for /f %%x in ('dir /b | |
| ..\root\Licenses16\ProPlus2019VL*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&echo.&echo |
| # Config for Intel WiFi6 AX201 | |
| ctrl_interface=/var/run/hostapd | |
| ctrl_interface_group=0 | |
| logger_syslog=-1 | |
| logger_syslog_level=2 | |
| logger_stdout=-1 | |
| logger_stdout_level=1 | |
| ssid=AwesomeWifi |
| // Compile: javac decrypt.java | |
| // Usage: java decrypt path-to/assets/droidguard/droidguasso.enc droidguasso.jar | |
| import java.io.InputStream; | |
| import java.io.ByteArrayOutputStream; | |
| import java.io.FileInputStream; | |
| import java.io.FileOutputStream; | |
| import java.security.spec.AlgorithmParameterSpec; | |
| import java.security.Key; | |
| import javax.crypto.spec.IvParameterSpec; |
| https://code.google.com/p/android/issues/detail?id=32696#c5 | |
| If you have a certificate that is not | |
| trusted by Android, when you add it, it goes in the personal cert store. | |
| When you add a cert in this personal cert store, the system requires a | |
| higher security level to unlock the device. But if you manage to add your | |
| cert to the system store then you don't have this requirement. Obviously, | |
| root is required to add a certificate to the system store, but it is quiet | |
| easy. |
| A backup of http://sites.google.com/site/redcodenl/creating-shazam-in-java-1 just in case | |
| Why is this necessary? Read http://sites.google.com/site/redcodenl/patent-infringement | |
| Please fork, tweet about, etc. | |
| ---- | |
| Creating Shazam in Java | |
| A couple of days ago I encountered this article: How Shazam Works | |
| This got me interested in how a program like Shazam works… And more importantly, how hard is it to program something similar in Java? |
| sudo apt install git build-essential | |
| git clone https://github.com/ulli-kroll/mt7612u.git | |
| cd mt7612u | |
| make | |
| sudo make installfw | |
| sudo cp mt7612u.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless/ | |
| sudo depmod -a |