Skip to content

Instantly share code, notes, and snippets.

View redterror's full-sized avatar

Dave Steinberg redterror

  • Chapel Hill, NC
View GitHub Profile
@redterror
redterror / gist:f4156ff4f617a7dd27bdf226fc5451d5
Created May 13, 2022 20:41
Ruby dropped-key generator, for when your broken keyboard loses 1+ keys while typing a password
#!/usr/bin/env ruby
#
BASEWORD = ARGV[0] || raise("No baseword specified")
base_chars = BASEWORD.split('')
rv = []
(1..(base_chars.length - 1)).each do |permutation_len|
possible = base_chars.permutation(permutation_len).to_a
filtered = possible.find_all do |chars|
================================== CRASHLOG =====================================
Falcon BMS.exe caused an EXCEPTION_ACCESS_VIOLATION in:
00000000044FC17B Falcon BMS.exe, TextureBankClass::Select()+11 byte(s), e:\wip\bms\svn\source\rel-4.33\graphics\bsplib\texbank.cpp, line 259+11 byte(s)
Exception handler called in UnhandledExceptionHandler.
Read from location 000000000209d790 caused an access violation.
Bytes at CS:RIP: 4C 0F BF 04 48 45 85 C0 78 2B 44 3B 05 18 BF A9
Registers:
RAX=0x00000000020a0080 RBX=0x00000000a0051330 RCX=0xffffffffffffeb88 RDX=0x000000003e4feb88
RSI=0x0000000023a2f540 RDI=0x0000000000000000 RBP=0x0000000023a2ce20 RSP=0x0000000023a2caf8
@redterror
redterror / keybase.io verification
Last active August 29, 2015 13:58
keybase.io verification
-----BEGIN PGP MESSAGE-----
Version: GnuPG v1.4.11 (GNU/Linux)
owGbwMvMwMT4hn3X+WA5F3vG0wfeJDEEuxaEVisl5adUKllVK2Wngqm0zLz01KKC
osy8EiUrJRNjI3ODtGQzY5PUZBPj5CSzVGNDIyCVaJCampqUapZqYJpkmGSarKSj
lJFfDNIBNCYpsThVLzMfKAbkxGemAEUdDVxdXZ1czVwNTJ0MnUydgXKlYIkUIyMz
S8PkNEsLQ6NE88RkE8tES0szs2SjRMukFDMDA5DC4tSivMTcVKDqotSUktSiovwi
pVodJaBwWWZyKsjRUOn0zJKM0iQ8WkoqC0Bi5alJ8VDd8UmZeSlALwM1laUWFWfm
5ylZGQJVJpdkgrQbGluaG5gCHWSpo5RaUZBZlBqfCVJham5mYQAEOkoFRallQCPN
k01M0gwTjVJN05JMjNNSEy3TTNNMLVItE5NTDEzNk4DeNDQwsDBMTUkzN0lNSzNI
@redterror
redterror / shmsetup.sh
Created September 27, 2013 17:52 — forked from jodell/shmsetup.sh
#!/bin/bash
# http://archives.postgresql.org/pgsql-admin/2010-05/msg00285.php
# Output lines suitable for sysctl configuration based
# on total amount of RAM on the system. The output
# will allow up to 50% of physical memory to be allocated
# into shared memory.
# On Linux, you can use it as follows (as root):
#
# ./shmsetup >> /etc/sysctl.conf
@redterror
redterror / gist:5199680
Last active December 15, 2015 04:09 — forked from lemonhall/gist:3120320
/*
* FormData for XMLHttpRequest 2 - Polyfill for Web Worker (c) 2012 Rob W
* License: Creative Commons BY - http://creativecommons.org/licenses/by/3.0/
* - append(name, value[, filename])
* - toString: Returns an ArrayBuffer object
*
* Specification: http://www.w3.org/TR/XMLHttpRequest/#formdata
* http://www.w3.org/TR/XMLHttpRequest/#the-send-method
* The .append() implementation also accepts Uint8Array and ArrayBuffer objects
* Web Workers do not natively support FormData:
function error_displayable($error = NULL) {
- $error_level = variable_get('error_level', ERROR_REPORTING_DISPLAY_ALL);
+ //$error_level = variable_get('error_level', ERROR_REPORTING_DISPLAY_ALL);
+ // Set the default to HIDE, which is what we want. Why this doesn't work from the admin interface isn't clear.
+ $error_level = variable_get('error_level', ERROR_REPORTING_HIDE);