Skip to content

Instantly share code, notes, and snippets.

View akaralar's full-sized avatar

Ahmet Karalar akaralar

View GitHub Profile
@akaralar
akaralar / multi-slack.js
Created August 22, 2022 22:37
Custom js for multi slack apps
// reconnect when slack websocket disconnects, taken from multi readme
setInterval(() => {
if (document.body.innerText.includes('Load new messages.'))
window.location.reload();
}, 90000);
// find in page, taken from multi readme
(() => {
const highlightResults = (text, color) => {
document.designMode = "on"; // https://stackoverflow.com/a/5887719
@akaralar
akaralar / sort-gitconfig.sh
Created March 8, 2024 11:30
Sort gitconfig file
# taken from https://blog.wotw.pro/sort-git-config/
# the options for each property need to be indented using a single tab beforehand...
cat ~/.config/git/config | sed 's/ +/\t/g' | awk -F '\t' '$1 { current = $1; print current } $2 { print current "\t" $2}' | sort | awk -F '\t' '!$2 {print $1} $1 && $2 { print "\t" $2 }' | pbcopy
@akaralar
akaralar / README.md
Created March 27, 2024 00:10 — forked from IsaacXen/README.md
(Almost) Every WWDC videos download links for aria2c.