Instantly share code, notes, and snippets.

View calc.asm
public calc, a, b, x, error
.data
a dd ?
b dd ?
x dd ?
error db 0
.code
View JDS-Workers-aty.sql
SELECT name
FROM employees
WHERE (id NOT IN (SELECT managerId FROM employees WHERE (managerId IS NOT NULL)));
View openpanzer-save.json
{"scenario":{"name":"Lodz - Warta River","maxTurns":25,"date":"1939-09-20T22:00:00.000Z","atmosferic":1,"latitude":3,"ground":0,"turnsPerDay":0,"dayTurn":0,"reinforcements":{"7":[],"9":[],"11":[{"row":1,"col":42,"unit":{"eqid":270,"id":-1,"owner":1,"hasMoved":false,"hasFired":false,"hasResupplied":false,"isMounted":false,"isSurprised":false,"isDeployed":false,"isCore":false,"tempSpotted":false,"strength":12,"facing":1,"flag":16,"destroyed":false,"player":null,"transport":{"eqid":267,"ammo":6,"fuel":0,"icon":"resources/units/images/le250.png"},"carrier":0,"moveLeft":3,"ammo":6,"fuel":0,"hasAnimation":false,"hits":0,"experience":121,"entrenchment":0,"entrenchTicks":0,"leader":-1},"turn":"11","id":1}],"12":[{"row":37,"col":41,"unit":{"eqid":159,"id":-1,"owner":0,"hasMoved":false,"hasFired":false,"hasResupplied":false,"isMounted":false,"isSurprised":false,"isDeployed":false,"isCore":false,"tempSpotted":false,"strength":10,"facing":10,"flag":8,"destroyed":false,"player":null,"transport":null,"carrier":0,"moveLeft"
View 1.RegistrySnapshot.xml
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-1953236517-242735908-2433092285-500</user>
<keys>
<key installerType="Unknown" displayName="WoW Crypt 0.0.4 (only current user)" displayVersion="0.0.4">
<RegistryView>Registry64</RegistryView>
<KeyPath>HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\0d844fbb-40d6-5303-a6fa-f3728c42d18d</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[]]></InstallLocation>
<UninstallString><![CDATA["C:\Users\Administrator\AppData\Local\Programs\WoW Crypt\0.0.4\Uninstall WoW Crypt.exe" /currentuser]]></UninstallString>
View gist:aa8bf80d7c4eaedb6248945f5d6cc72b
0 /nix/store/s5bp30368lp8d0wdv4mfy2w22a8wj5yk-box2d-2.3.1/include/Box2D/Collision/Shapes
0 /nix/store/s5bp30368lp8d0wdv4mfy2w22a8wj5yk-box2d-2.3.1/include/Box2D/Collision
0 /nix/store/s5bp30368lp8d0wdv4mfy2w22a8wj5yk-box2d-2.3.1/include/Box2D/Common
0 /nix/store/s5bp30368lp8d0wdv4mfy2w22a8wj5yk-box2d-2.3.1/include/Box2D/Dynamics/Contacts
0 /nix/store/s5bp30368lp8d0wdv4mfy2w22a8wj5yk-box2d-2.3.1/include/Box2D/Dynamics/Joints
0 /nix/store/s5bp30368lp8d0wdv4mfy2w22a8wj5yk-box2d-2.3.1/include/Box2D/Dynamics
0 /nix/store/s5bp30368lp8d0wdv4mfy2w22a8wj5yk-box2d-2.3.1/include/Box2D/Rope
0 /nix/store/s5bp30368lp8d0wdv4mfy2w22a8wj5yk-box2d-2.3.1/include/Box2D
0 /nix/store/s5bp30368lp8d0wdv4mfy2w22a8wj5yk-box2d-2.3.1/include
0 /nix/store/s5bp30368lp8d0wdv4mfy2w22a8wj5yk-box2d-2.3.1/lib/Box2D
View main.cpp
#include <iostream>
extern "C" int a, b, x;
extern "C" bool error;
extern "C" void calc();
int main() {
std::cout << "a = ";
std::cin >> a;
View gist:710bf1ca2689690b2f33e4a1ef4a5977
/nix/store/s5bp30368lp8d0wdv4mfy2w22a8wj5yk-box2d-2.3.1
├── include
│   └── Box2D
│   ├── Box2D.h
│   ├── Collision
│   │   ├── b2BroadPhase.h
│   │   ├── b2Collision.h
│   │   ├── b2Distance.h
│   │   ├── b2DynamicTree.h
│   │   ├── b2TimeOfImpact.h
View app.py
# Flask server that redirects
from flask import Flask, request, make_response
application = Flask(__name__)
@application.route('/from/flask')
def fromFlask():
response = make_response('This response body is ignored! Only the headers are used by downstream Nginx location(s).')
response.headers.set('X-Accel-Redirect', '/intermediate')
View 1.RegistrySnapshot.xml
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-1953236517-242735908-2433092285-500</user>
<keys>
<key installerType="InnoSetup" displayName="Markdown Monster 1.14.10.0" displayVersion="1.14.10.0">
<RegistryView>Registry64</RegistryView>
<KeyPath>HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{E3476879-4D00-405A-B058-90D4AEAD7C4A}_is1</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[C:\Users\Administrator\AppData\Local\Markdown Monster\]]></InstallLocation>
<UninstallString><![CDATA["C:\Users\Administrator\AppData\Local\Markdown Monster\unins000.exe" /SILENT]]></UninstallString>
View debug.out
[src/xcb.c:323] trying to open font: -*-terminus-bold-*-*-*-32-*-*-*-*-*-*-*
[src/xcb.c:303] registering for configure notify event
[src/xcb.c:220] try to grab key (keysym: 65293)
[src/xcb.c:233] translated keysym '65293' to keycode '36'
[src/xcb.c:46] grab key (keycode: 36)
[src/ipc.c:84] find visible container in con '34615456'
[src/ipc.c:54] found window (id: 140728932936640, window: 44040205, x: 0, y: 0)
[src/ipc.c:54] found window (id: 34616272, window: 33554639, x: 960, y: 0)
[src/ipc.c:54] found window (id: 140728933048960, window: 31457487, x: 481, y: 142)
[src/xcb.c:220] try to grab key (keysym: 97)