Skip to content

Instantly share code, notes, and snippets.

View ewpratten's full-sized avatar

Evan Pratten ewpratten

View GitHub Profile
@JasonCC
JasonCC / syntax.s
Created October 21, 2017 03:31 — forked from mishurov/syntax.s
AT&T assembly syntax and IA-32 instructions
# --------
# Hardware
# --------
# Opcode - operational code
# Assebly mnemonic - abbreviation for an operation
# Instruction Code Format (IA-32)
# - Optional instruction prefix
# - Operational code
@mcoffin
mcoffin / reglist-lvbitx.py
Created August 4, 2015 04:32
reglist-lvbitx.py
#!/usr/bin/env python
import argparse
from xml.etree import ElementTree
from operator import attrgetter
import json
import re
class Register:
def __init__(self, name, offset, length, registers=None):
self.name = name
@eagleon
eagleon / hircd.py
Created November 24, 2012 10:55
HIrcd – minimal IRC server in Python
#!/usr/bin/python
#
# Very simple hacky ugly IRC server.
#
# Todo:
# - Encode format for each message and reply with ERR_NEEDMOREPARAMS
# - starting server when already started doesn't work properly. PID file is not changed, no error messsage is displayed.
# - Delete channel if last user leaves.
# - [ERROR] <socket.error instance at 0x7f9f203dfb90> (better error msg required)
@mrlnc
mrlnc / free5gc_wireguard.md
Created February 8, 2021 12:45
Wireguard on Linux 5.0.0-23-generic (for Free5GC)

So you're using free5gc (hence stuck on linux 5.0.0-23-generic) and want to use wireguard VPN.

tl;dr you need wireguard-linux-compat tag v1.0.20200520

git clone https://git.zx2c4.com/wireguard-linux-compat
cd wireguard-linux-compat
git checkout v1.0.20200520
cd ..
make -C wireguard-linux-compat/src -j$(nproc)
make -C wireguard-linux-compat/src -j$(nproc) install
@andreibosco
andreibosco / yubikey-server.md
Last active October 25, 2022 10:09
Configure linux ssh to use yubikey authentication
@ewnd9
ewnd9 / install.sh
Last active January 24, 2024 19:38
google's deepdream ubuntu installation
# sources
# http://www.scipy.org/install.html
# http://sohliloquies.blogspot.ru/2015/07/setting-up-deep-dream-google-researchs.html
# https://github.com/BVLC/caffe/wiki/Ubuntu-14.04-VirtualBox-VM
# ~2gb dependencies
mkdir deep-dream && cd deep-dream
sudo apt-get install subversion cmake
@Birdie0
Birdie0 / ifttt-webhooks-extended-guide.md
Last active March 6, 2024 13:38
How to use Discord Webhooks

⚠️ This gist is no longer updated! For maintained, improved and even more extended guide click here.


How to use Discord Webhook

It's a JSON

First, learn JSON. It's not programming language, not even close. Just follow syntax rules and you will be fine.

@thedward
thedward / debian-kobo-dev.md
Last active March 11, 2024 01:09
Setting up Kobo Development Tools on Debian Jessie
@John-Paul-R
John-Paul-R / FabricModList.md
Last active May 2, 2024 16:37
A list of (almost all) mods for Fabric

Fabric Mod List

This page contains a list of the current Minecraft Fabric mods. (As of 2021-08-19 08:05:23 Timezone: UTC+0000 (GMT))

To search for mods by name, category, or download count, visit the website, fibermc.com!

Note: You can view a mod's source files by following the "Source" link on its CurseForge page, assuming that the mod's creator has made such files public.

There are currently 2954 mods in this list.

@insdavm
insdavm / WireGuard-site-to-site.md
Last active May 3, 2024 21:19
Accessing a subnet that is behind a WireGuard client using a site-to-site setup

WireGuard Site-to-Site

Accessing a subnet that is behind a WireGuard client using a site-to-site setup

Problem Summary

We want to access a local subnet remotely, but it is behind a NAT firewall and we can't setup port forwarding. Outgoing connections work, but all incoming connections get DROPPED by the ISP's routing policy.

Solution Summary