Skip to content

Instantly share code, notes, and snippets.

@offlinemark
offlinemark / gitk-copy-ref.patch
Created January 5, 2022 11:29
gitk patch to not show date in 'copy reference'
commit 61e26f68cb15f6753936f66766149dd738f8b1ac
Author: Mark Mossberg
Date: Wed Jan 5 12:22:19 2022 +0100
gitk: Don't copy date with commit reference
diff --git a/gitk-git/gitk b/gitk-git/gitk
index 23d9dd1..e70c42a 100755
--- a/gitk-git/gitk
+++ b/gitk-git/gitk
#include <iostream>
#include <thread>
#include <vector>
#include <chrono>
using namespace std::chrono_literals;
void burst(unsigned long n) {
std::cout << "burst\n";
while (n--);
-mllvm --x86-asm-syntax=intel
The FruityLoops FLP file format explained
(v 1.7.x)
(BETA)
Introduction:
Here I will try to explain the FLP file format, which is the FruityLoops loop /

the cool parts of dawtool

Thanks for checking out dawtool.

If you are just casually browsing, here are some points of interest to check out:

@offlinemark
offlinemark / gist:048d4fb04c75bdd9f1d66c27e549ded7
Created August 1, 2019 22:24
after user and tmp have logged in
PS C:\Users\mark\Desktop\cert profile\dbg> .\osqueryd.exe -S "select common_name, path, store_location, store, store_id, username, sid from certificates;"
+------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------+----------------+--------------------------------------------+--------------------------------------------------------+-----------------+------------------------------------------------+
| common_name | path | store_location | store | store_id | username | sid |
+------------------------------------------------------------------+-------------------------------------------------------------------------------
PS C:\Users\mark\Desktop\cert profile\dbg> .\osqueryd.exe -S "select common_name, path, store_location, store, store_id, username, sid from certificates;"
+------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------+----------------+--------------------------------------------+--------------------------------------------------------+-----------------+------------------------------------------------+
| common_name | path | store_location | store | store_id | username | sid |
+------------------------------------------------------------------+-------------------------------------------------------------------------------
PS C:\Users\mark\Desktop\cert profile\dbg> .\osqueryd.exe -S "select common_name, path, store_location, store, store_id, username, sid from certificates;"
+------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------+----------------+--------------------------------------------+--------------------------------------------------------+-----------------+------------------------------------------------+
| common_name | path | store_location | store | store_id | username | sid |
+------------------------------------------------------------------+-------------------------------------------------------------------------------
@offlinemark
offlinemark / gist:37334234b5c43fe58dbbdbe87a7a7f44
Created July 25, 2019 20:50
find osquery tables which advertise an index but do not implement
#!/usr/bin/python3
import subprocess as sp
from collections import defaultdict
from enum import Enum, auto
class CheckStatus(Enum):
FAIL = auto()
PASS = auto()
import socket
import os
def child(sock):
print 'child running! echo server starting'
while True:
ret = sock.recv(64)
if ret == '':
print 'child server exiting!'