Skip to content

Instantly share code, notes, and snippets.

bparker06 / spectre.c
Created May 6, 2020 — forked from ErikAugust/spectre.c
Spectre example code
View spectre.c
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#ifdef _MSC_VER
#include <intrin.h> /* for rdtscp and clflush */
#pragma optimize("gt",on)
#include <x86intrin.h> /* for rdtscp and clflush */
bparker06 / microsoft.txt
Created Apr 26, 2018 — forked from CHEF-KOCH/microsoft.txt
Microsoft Products + file check
View microsoft.txt
Nr. + product name + .exe/.iso/dvd + file integrety check
1 MS-DOS 6.0 (English) EN_MSDOS60.exe 2000-10-12 877B0B8E391ED07CB83214CB09E8F3B10C4B206F
2 SQL Server 2008 Enterprise (x86, x64, ia64) - DVD (Chinese-Simplified) zh-hans_sql_server_2008_enterprise_x86_x64_ia64_dvd_x14-89199.iso 2008-8-13 D23B103331AB0B3CCC82769B99CA1C2F16BEBBF4
3 Windows XP Professional with Service Pack 2- VL (Simplified Chinese) sc_win_xp_pro_with_sp2_vl.iso 2005-5-18 C0ADDD927B5D1F93DCE9C455FD6B26EAC7391BE9
4 MS-DOS 6.22 (English) EN_MSDOS622.exe 2000-10-12 D01AA47A5D85908185F8987E972AFC66DC92A735
bparker06 /
Created Apr 17, 2020 — forked from level323/
Run a command inside a customised networking environment (using cgroups)
# === INFO ===
# Description: Run the specified application in a custom networking environment.
# Uses cgroups to run process(es) in a network environment of your own choosing (within limits!)
# Author: John Clark
# Requirements: Debian 8 Jessie (plus iptables 1.6 from unstable)
bparker06 /
Created Feb 10, 2020 — forked from joepie91/
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

A Russian translation of this article can be found here, contributed by Timur Demin. There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.

Why not?

bparker06 /
Created Jan 30, 2020 — forked from ramast/
Record a program's output with PulseAudio
#!/usr/bin/env python3
import re
import subprocess
import sys
import os
import signal
from time import sleep
INDEX_RE = re.compile(r'[0-9]+$')
APP_NAME_RE = re.compile(r'"([^"]+)"')
View msys2-environment.txt
ProgramW6432=C:\Program Files
bparker06 / NEATEvolve.lua
Created Jul 29, 2019 — forked from cracyc/NEATEvolve.lua
View NEATEvolve.lua
-- MarI/O by SethBling
-- Feel free to use this code, but please do not redistribute it.
-- usage: mame nes smb1 -window -autoboot_script NEATEvolve.lua
-- create savestate 1 at the start of the level you want it to learn
local Filename
local ButtonNames
local Game
local pool
bparker06 /
Created Jun 10, 2019 — forked from caniszczyk/
Clone all repos from a GitHub organization
curl -s | ruby -rubygems -e 'require "json"; JSON.load( { |repo| %x[git clone #{repo["ssh_url"]} ]}'
bparker06 / 00-irc-log.textile
Created Jun 13, 2019 — forked from amcgregor/00-irc-log.textile
Where asking a simple question, and not accepting useless and insulting answers, gets you banned from an IRC channel.
View 00-irc-log.textile

Cleaned IRC log of #python starting Monday, 25 July, 2011 at 17:13:55 EDT.

Gems are highlighted in bold.

GothAlice How do I determine if a given object is a @classmethod, and, additionally, how do I determine if it is a @staticmethod? 1
KirkMcDonald GothAlice: Why would you care?
GothAlice KirkMcDonald: Enforcing interfaces, not that it matters.
dash GothAlice: you’re right, it doesn’t matter
_habnabit GothAlice, if you wanted an answer to the question as asked, why don’t you try ##python-friendly? #python is about writing better code.
nedbat GothAlice: what KirkMcDonald should have said was, “The Python culture is to not check ahead of time, do you have an unusual requirement that means you really have to know?”
bparker06 /
Created Sep 4, 2018 — forked from leiradel/
Retromods spec brain dump. *Highly volatile!*


What is a mod?

A mod is a set of code and assets that changes or augments the way a game is run. Examples of mods are:

  • Music and sound packs that replace the original game music and sound.
  • Graphics packs that replace the original game graphics.
  • Level packs that change or replace the original game levels.
  • Achievements that are awarded to the players when they complete tasks in the game.
You can’t perform that action at this time.