Skip to content

Instantly share code, notes, and snippets.

@0xack13
0xack13 / main.js
Created May 7, 2025 21:50
FSM-escalation
const THRESHOLDS = {
ESCALATE_TO_BUG: 5,
ESCALATE_TO_P2: 10,
};
const PRIORITY = {
P1: 'P1',
P2: 'P2',
P3: 'P3',
};
@0xack13
0xack13 / Readme.txt
Created May 3, 2025 16:58 — forked from jcward/Readme.txt
Generating iOS P12 / certs without Mac OSX Keychain (on linux, windows, etc)
1) Generate a private key and certificate signing request:
openssl genrsa -out ios_distribution.key 2048
openssl req -new -key ios_distribution.key -out ios_distribution.csr -subj '/[email protected], CN=Example, C=US'
2) Upload CSR to apple at: https://developer.apple.com/account/ios/certificate/create
- choose Production -> App Store and Ad Hoc
3) Download the resulting ios_distribution.cer, and convert it to .pem format:
@0xack13
0xack13 / Readme.txt
Created May 3, 2025 16:58 — forked from jcward/Readme.txt
Generating iOS P12 / certs without Mac OSX Keychain (on linux, windows, etc)
1) Generate a private key and certificate signing request:
openssl genrsa -out ios_distribution.key 2048
openssl req -new -key ios_distribution.key -out ios_distribution.csr -subj '/[email protected], CN=Example, C=US'
2) Upload CSR to apple at: https://developer.apple.com/account/ios/certificate/create
- choose Production -> App Store and Ad Hoc
3) Download the resulting ios_distribution.cer, and convert it to .pem format:
@0xack13
0xack13 / extract_devices.rb
Last active April 30, 2025 13:54
extract_devices
require 'xcresult'
xcresult_path = 'path/to/your/Test.xcresult'
parser = XCResult::Parser.new(xcresult_path)
# This gives you the top-level parsed object
result = parser.parse
# You can now access test summaries in a nice structure
result.action_test_plan_run_summaries.each do |plan_summary|
@0xack13
0xack13 / wezterm.md
Last active March 31, 2025 15:32
wezterm
❯ cat ~/.wezterm.lua
-- Pull in the wezterm API
local wezterm = require("wezterm")

-- This will hold the configuration.
local config = wezterm.config_builder()

-- This is where you actually apply your config choices
@0xack13
0xack13 / og.md
Last active February 28, 2025 18:41
og

function og() { open $(git config --get remote.origin.url | sed 's/git@\(.*\):\(.*\)\.git/https:\/\/\1\/\2/g') }

#!/bin/bash

# Open the repo in the browser
function og() { 
  open "$(git config --get remote.origin.url | sed 's/git@\(.*\):\(.*\)\.git/https:\/\/\1\/\2/g')" 
}
@0xack13
0xack13 / gha_failure.sh
Last active March 4, 2025 18:48
gha_wfdiff.go
#!/bin/bash
# Disable pager
export GH_PAGER=cat
# Usage: ./failed_steps.sh <workflow_name_or_id> <repo_owner/repo_name>
WORKFLOW_NAME="$1"
REPO="$2"
@0xack13
0xack13 / 1-setup.md
Created February 22, 2025 16:16 — forked from troyfontaine/1-setup.md
Signing your Git Commits on MacOS

Methods of Signing Git Commits on MacOS

Last updated March 13, 2024

This Gist explains how to sign commits using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.

Additionally, 1Password now supports signing Git commits with SSH keys and makes it pretty easy-plus you can easily configure Git Tower to use it for both signing and ssh.

For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.

@0xack13
0xack13 / gha_action_duration.sh
Last active February 20, 2025 23:06
gha_action_duration
#!/bin/bash
# Set your GitHub personal access token (Use a fine-grained PAT with "actions: read" permission)
GITHUB_TOKEN="your_personal_access_token"
OWNER="your_github_username_or_org"
REPO="your_repository_name"
# Get the latest workflow run ID
RUN_ID=$(curl -s -H "Authorization: Bearer $GITHUB_TOKEN" \
-H "Accept: application/vnd.github.v3+json" \
@0xack13
0xack13 / ngrams.py
Created February 17, 2025 16:52 — forked from benhoyt/ngrams.py
Print most frequent N-grams in given file
"""Print most frequent N-grams in given file.
Usage: python ngrams.py filename
Problem description: Build a tool which receives a corpus of text,
analyses it and reports the top 10 most frequent bigrams, trigrams,
four-grams (i.e. most frequently occurring two, three and four word
consecutive combinations).
NOTES