Skip to content

Instantly share code, notes, and snippets.

bparker06

Block or report user

Report or block bparker06

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 msys2-environment.txt
HOMEPATH=\Users\abdo
USERDOMAIN_ROAMINGPROFILE=WINDOWS10
LDFLAGS=-pipe
MANPATH=/mingw64/share/man:/usr/local/man:/usr/share/man:/usr/man:/share/man
APPDATA=C:\Users\abdo\AppData\Roaming
LESS_TERMCAP_mb=
ORIGINAL_TEMP=/c/Users/abdo/AppData/Local/Temp
ProgramW6432=C:\Program Files
MSYS_ROOT=D:\msys64
HOSTNAME=windows10
@bparker06
bparker06 / NEATEvolve.lua
Created Jul 29, 2019 — forked from cracyc/NEATEvolve.lua
NEATEvolve MAME
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
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
bparker06 / clone-all-twitter-github-repos.sh
Created Jun 10, 2019 — forked from caniszczyk/clone-all-twitter-github-repos.sh
Clone all repos from a GitHub organization
View clone-all-twitter-github-repos.sh
curl -s https://api.github.com/orgs/twitter/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}'
View GetAllWifiPasswords.ps1
# Run this script as an Admin user and get a list of all WiFi passwords.
$listProfiles = netsh wlan show profiles | Select-String -Pattern "All User Profile" | %{ ($_ -split ":")[-1].Trim() };
$listProfiles | foreach {
$profileInfo = netsh wlan show profiles name=$_ key="clear";
$SSID = $profileInfo | Select-String -Pattern "SSID Name" | %{ ($_ -split ":")[-1].Trim() };
$Key = $profileInfo | Select-String -Pattern "Key Content" | %{ ($_ -split ":")[-1].Trim() };
[PSCustomObject]@{
WifiProfileName = $SSID;
Password = $Key
}
@bparker06
bparker06 / 10-ssl.conf
Created Jan 8, 2019 — forked from bluet/10-ssl.conf
lighttpd + letsencrypt + my config = A+ score on ssllabs
View 10-ssl.conf
# Replace [YOUR_DOMAIN_NAME] by your real domain
server.modules += ( "mod_setenv" ) # For HSTS
$SERVER["socket"] == "0.0.0.0:443" {
ssl.engine = "enable"
ssl.pemfile = "/etc/letsencrypt/live/[YOUR_DOMAIN_NAME]/combined.pem"
ssl.ca-file = "/etc/letsencrypt/live/[YOUR_DOMAIN_NAME]/fullchain.pem"
ssl.dh-file = "/etc/ssl/certs/dhparam.pem"
@bparker06
bparker06 / fastboot.txt
Created Dec 4, 2018 — forked from nvsofts/fastboot.txt
PlayStation Classic boot log
View fastboot.txt
Watchdog Status: 0 , boot from normal
mt_pll_init +
CLK_GATING_CTRL1:d891923e
after set, CLK_GATING_CTRL1:d891923e
CLK_GATING_CTRL2:7afdbf10
[PWRAP] pmic ID: 2092.
[EMI] MDL number = 0
[EMI] PCDDR3
Vcore HV NV LV, Vdram HV NV LV
0x5f 0x48 0x3f, 0xc 0x0 0x3
@bparker06
bparker06 / matterbridge.toml
Created Sep 6, 2018 — forked from vgmoose/matterbridge.toml
mattermost irc to discord bridge for switchbru, replace [INSERTBOTTOKEN] with discord access token, see: https://github.com/42wim/matterbridge/wiki/Discord-bot-setup for discord bot config
View matterbridge.toml
[irc]
[irc.freenode]
Server="irc.freenode.net:6667"
Nick="botircnickname"
RemoteNickFormat="<{NICK}> "
[discord]
[discord.test]
Token="[INSERTBOTTOKEN]"
Server="WiiUBru & SwitchBru"
@bparker06
bparker06 / retromods.md
Created Sep 4, 2018 — forked from leiradel/retromods.md
Retromods spec brain dump. *Highly volatile!*
View retromods.md

Retromods

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.
@bparker06
bparker06 / msys2_downgrade.py
Created Aug 24, 2018 — forked from awhatson/msys2_downgrade.py
Helper script for downgrading MSYS2
View msys2_downgrade.py
#!/usr/bin/env python3
from argparse import ArgumentParser
from datetime import datetime, timedelta
from pathlib import Path
import json
import re
import subprocess
import sys
import tempfile
You can’t perform that action at this time.