Skip to content

Instantly share code, notes, and snippets.

Egbert Verhage EggieCode

Block or report user

Report or block EggieCode

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View wireguard-dkms.postinst
#!/bin/sh
set -e
#DEBHELPER#
# Message of running rmmod & modprobe need to run after the module has been build.
case "$1" in
install)
;;
View download-normalized-youtube-ogg.php
<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 Oct 18, 2016
Moment in crime watch script to json file.
View watch.py
#!/usr/bin/python
import requests
import json
import re
import datetime
from html.parser import HTMLParser
DATA = {}
try:
@EggieCode
EggieCode / vfio-group.sh
Created Apr 17, 2016
Bind iommu to vfio-pci
View vfio-group.sh
#!/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
View value-block-servers.py
#!/usr/bin/python3
import re
import os
import sys
import subprocess
try: input = raw_input
except NameError: pass
View oredict.lua
full_process = {
"oreAluminum",
"oreArdite",
"oreCobalt",
"oreCopper",
"oreDraconium",
"oreEndium",
"oreGold",
"oreIron",
"oreLead",
@EggieCode
EggieCode / server.py
Created Feb 18, 2016
Finger socket in python3 with asyncio
View server.py
#!/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 Jun 30, 2015
Bat file FFMPEG (FLV to MP4)
View gist:e829ea12ad504f104e5b
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
View gist:74b19a6d0dee0b3a5112
### 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:
You can’t perform that action at this time.