Skip to content

Instantly share code, notes, and snippets.

@offlinemark
offlinemark / gist:54d0f42f2c00f8b3e8ebb9fd7c50785f
Created April 2, 2025 20:44
apple script for focusing on an omnifocus folder, with chooser
on run
-- Preselected folder names (replace with your own folder names)
set preselectedFolders to {"Life", "Work", "Media"}
-- Display a chooser dialog to select a folder
set chosenFolder to choose from list preselectedFolders with prompt "Choose a folder to focus on:" default items {"Life"}
if chosenFolder is false then return -- user canceled
-- Get the selected folder name from the list
set chosenFolder to item 1 of chosenFolder
@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()