Skip to content

Instantly share code, notes, and snippets.

View EggieCode's full-sized avatar

Egbert Verhage EggieCode

View GitHub Profile
@EggieCode
EggieCode / wireguard-dkms.postinst
Created September 14, 2017 18:47
fix linux mint
#!/bin/sh
set -e
#DEBHELPER#
# Message of running rmmod & modprobe need to run after the module has been build.
case "$1" in
install)
;;
<form method="post" action=''>
<input name="url" type="text" placeholder="Youtube link" />
<button action="submit">Submit</button>
</form>
<?php
if($_SERVER['REQUEST_METHOD'] == 'GET') {
exit;
}
echo '<pre>';
@EggieCode
EggieCode / watch.py
Created October 18, 2016 18:19
Moment in crime watch script to json file.
#!/usr/bin/python
import requests
import json
import re
import datetime
from html.parser import HTMLParser
DATA = {}
try:
@EggieCode
EggieCode / vfio-group.sh
Created April 17, 2016 20:47
Bind iommu to vfio-pci
#!/bin/sh
if [ ! -e /sys/kernel/iommu_groups/$1 ]; then
echo "IOMMU group $1 not found"
exit 1
fi
if [ ! -e /sys/bus/pci/drivers/vfio-pci ]; then
sudo modprobe vfio-pci
fi
@EggieCode
EggieCode / value-block-servers.py
Created March 5, 2016 13:16
Block value servers
#!/usr/bin/python3
import re
import os
import sys
import subprocess
try: input = raw_input
except NameError: pass
full_process = {
"oreAluminum",
"oreArdite",
"oreCobalt",
"oreCopper",
"oreDraconium",
"oreEndium",
"oreGold",
"oreIron",
"oreLead",
@EggieCode
EggieCode / server.py
Created February 18, 2016 09:27
Finger socket in python3 with asyncio
#!/usr/bin/python3
#SERVER
import asyncio
import ssl
class EchoServerClientProtocol(asyncio.Protocol):
def __init__(self, *args, **kwargs):
self.data = bytearray()
self.queue = asyncio.Queue()
@EggieCode
EggieCode / gist:e829ea12ad504f104e5b
Created June 30, 2015 18:18
Bat file FFMPEG (FLV to MP4)
REM Convert with ffmpeg, FLV to MP4
for %%a in ("*.flv") do ffmpeg -i "%%a" -c:v libx264 -crf 23 -c:a libfaac -q:a 100 -b:a 128k "newfiles\%%~na.mp4"
pause
### Keybase proof
I hereby claim:
* I am eggiecode on github.
* I am eggiecode (https://keybase.io/eggiecode) on keybase.
* I have a public key whose fingerprint is 049C 0B7B 2FCA A922 033F 135B 3ADB F176 B0AE 05D9
To claim this, I am signing this object: