Skip to content

Instantly share code, notes, and snippets.

View andrinheusser's full-sized avatar
🦕

Andrin Heusser andrinheusser

🦕
View GitHub Profile
<tr>
<td colspan="3">
<div id="templates">
<div id="templatesStart"></div>
<!-- rows go here -->
<div id='templatesEnd' style="clear:both"></div>
</div>
<a href='#' class='add_row_link' data-rowGroup='templates'>Template hinzuf&uuml;gen</a>
</td>
from MySQLdb import connect
conn = connect(user="[USER]", passwd= "[PASSWORD]")
cur = conn.cursor()
cur.execute("show databases;")
dbs_to_update = filter(
lambda db: db not in ('information_schema', 'mysql', 'performance_schema'),
[dbname[0] for dbname in cur.fetchall()])

Keybase proof

I hereby claim:

  • I am andrinheusser on github.
  • I am andrinheusser (https://keybase.io/andrinheusser) on keybase.
  • I have a public key whose fingerprint is ECD7 0910 9CF8 247B 2468 5ED1 B6B3 2957 6DD2 8E5F

To claim this, I am signing this object:

@andrinheusser
andrinheusser / operation_log.txt
Created May 11, 2016 17:04
Atom operation log
[5976:8696:0209/091014:VERBOSE1:crash_service_main.cc(68)] Session start. cmdline is [--reporter-url=http://54.249.141.255:1127/post --application-name=Atom --v=1]
[5976:8696:0209/091014:VERBOSE1:crash_service.cc(142)] window handle is 0004041A
[5976:8696:0209/091014:VERBOSE1:crash_service.cc(290)] pipe name is \\.\pipe\Atom Crash Service
dumps at C:\Users\ah\AppData\Local\Temp\Atom Crashes
[5976:8696:0209/091014:VERBOSE1:crash_service.cc(294)] checkpoint is C:\Users\ah\AppData\Local\Temp\Atom Crashes\crash_checkpoint.txt
server is http://54.249.141.255:1127/post
maximum 128 reports/day
reporter is electron-crash-service
[5976:8696:0209/091014:VERBOSE1:crash_service_main.cc(84)] Ready to process crash requests
[5976:4592:0209/091014:VERBOSE1:crash_service.cc(323)] client start. pid = 6372
@andrinheusser
andrinheusser / httpd-vhosts.conf
Created February 15, 2018 15:15
Apache VHosts Wildcard
<VirtualHost *:80>
UseCanonicalName Off
ServerAlias *.devel
VirtualDocumentRoot "C:/Projects/%-3/public"
<Directory "C:/Projects/*/">
LogLevel debug
Require all granted
AllowOverride All
Options Indexes FollowSymLinks
</Directory>
@andrinheusser
andrinheusser / stateMachineExample.ts
Created January 13, 2024 19:24
stateMachineExample
type StateMachineState = string;
type StateMachineStates = readonly StateMachineState[];
interface StateMachineTransition<
State,
Targets extends StateMachineStates,
Context,
> {
from: State | State[];
action: (ctx: Context, extra?: unknown) => Targets[number];