Skip to content

Instantly share code, notes, and snippets.

View bskim45's full-sized avatar

Bumsoo Kim bskim45

View GitHub Profile
@wickedev
wickedev / fzftail.sh
Last active October 24, 2021 15:02
fzf + tail + nl
#!/bin/bash
tail -n +0 $1 \
| nl -ba \
| fzf --multi \
--ansi \
--no-sort \
--reverse \
--tac \
--preview 'sed -n "$(({n}-4)),$(({n}+6))p" '$1' | nl -v $(({n}-4)) -ba' \
@nathanhleung
nathanhleung / FIX-MACOS-HANG.md
Last active December 17, 2024 09:03
Fix macOS Hanging Issue

Fix macOS Hanging Issue

Problem

Hey Apple users:

If you're now experiencing hangs launching apps on the Mac, I figured out the problem using Little Snitch.

It's trustd connecting to http://ocsp.apple.com >

@slash-cyberpunk
slash-cyberpunk / statsd_mapping.conf
Last active September 24, 2024 09:43
Config for stasd_exporter v0.22.7 and airflow 2.10.1
mappings:
- match: 'airflow\.(.+)_(start|end|heartbeat_failure)$'
match_type: regex
help: "Number of status jobs"
name: "airflow_jobs"
labels:
status: "$2"
job_name: "$1"
- match: "airflow.local_task_job.task_exit.*.*.*.*"
help: "Number of LocalTaskJob terminations with a return_code while running a task of a DAG."
@marccarre
marccarre / list_kindle_releases.py
Created October 24, 2020 08:46
List all available versions of Kindle for Mac and Kindle for PC.
#!/usr/bin/env python
'''
List all available versions of Kindle for Mac and Kindle for PC.
Dependencies:
- asyncio==3.4.3
- aiohttp==3.6.3
'''
import os
import sys
@calexandre
calexandre / merge-zsh-history.sh
Last active June 25, 2025 00:36
Merge two zsh history files
#!/bin/bash
# Inspired on https://david-kerwick.github.io/2017-01-04-combining-zsh-history-files/
set -e
history1=$1
history2=$2
merged=$3
echo "Merging history files: $history1 + $history2"
test ! -f $history1 && echo "File $history1 not found" && exit 1
@qzm
qzm / aria2.conf
Last active July 8, 2025 15:40
Best aria2 Config
### Basic ###
# The directory to store the downloaded file.
dir=${HOME}/Downloads
# Downloads the URIs listed in FILE.
input-file=${HOME}/.aria2/aria2.session
# Save error/unfinished downloads to FILE on exit.
save-session=${HOME}/.aria2/aria2.session
# Save error/unfinished downloads to a file specified by --save-session option every SEC seconds. If 0 is given, file will be saved only when aria2 exits. Default: 0
save-session-interval=60
# Set the maximum number of parallel downloads for every queue item. See also the --split option. Default: 5
@koshatul
koshatul / README.md
Last active July 1, 2025 07:23
use Apple Keychain to store GPG Passphrases

gpg-agent setup

Need to setup gpg-agent first, on OSX I use keychain (it also does ssh-agent)

$ brew info keychain
keychain: stable 2.8.5
User-friendly front-end to ssh-agent(1)
https://www.funtoo.org/Keychain
/usr/local/Cellar/keychain/2.8.5 (7 files, 108.5KB) *
@laggardkernel
laggardkernel / startup-time-of-zsh.md
Last active June 10, 2025 07:56
Comparison of ZSH frameworks and plugin managers

Comparison of ZSH frameworks and plugin managers

Changelog

  • update 1: add a FAQ section
  • update 2: benchmark chart and feature comparison table
  • update 3:
    • improve the table with missing features for antigen
    • new zplg times result

TLDR

@rpkim
rpkim / gcp-regions.md
Last active May 25, 2025 20:15
GCP Region Names

Alterantive naming schemes for GCP regions

Purpose

The intent is to define terse. standard-supported names for GCP regions.

Schemes

Region Location GCP code A1 A2 B Launched
@gmaslowski
gmaslowski / cassandra-node2pod.yml
Last active July 18, 2024 14:23
k8s-cassandra-nodeLabel2pod
---
apiVersion: v1
kind: ConfigMap
metadata:
name: cassandra-rackdc
data:
cassandra-rackdc.properties: |
dc= datacenter
rack= RACK
---