Skip to content

Instantly share code, notes, and snippets.

View EndBug's full-sized avatar
🌪️

Federico Grandi EndBug

🌪️
View GitHub Profile
@EndBug
EndBug / gh-cli-owner-repo-alias
Last active February 12, 2024 23:36
GH CLI alias to clone repos in an Owner/Repo directory structure
gh alias set --shell c 'gh repo view "$1" --json "owner,name" --jq "[.owner.login, .name] | join(\"/\")" | { read dir; gh repo clone "$1" "$dir"; }'
@EndBug
EndBug / Chrome Web Store Privacy Policy.md
Created February 23, 2023 14:58
The Privacy Policy associated with my Google Chrome Web Store developer account

The World's Greatest Privacy Policy

I don't store your data. Period.

@EndBug
EndBug / CodingKeyboard.ahk
Created December 22, 2022 18:27
AutoHotKey script to remap some US character to an Italian keyboard layout
; AltGr + ' -> `
<^>!':: SendText "``"
; AltGr + ì -> ~
<^>!ì::SendText "~"
; AltGr + < -> «
<^>!<::SendText "«"
; AltGr + > -> »
@EndBug
EndBug / rename-items.js
Last active November 14, 2022 12:33
Simple node script to bulk rename files and folders from "123 DD-MM-YYY Long title" to "YYYY-MM-DD Long title"
// 123 DD-MM-YYY Long title -> YYYY-MM-DD Long title
const path = require('path')
const fs = require('fs')
const parentDir = path.resolve('RESOLVABLE_PATH')
const type = 'FILE' // FOLDER or FILE
const entities = fs.readdirSync(parentDir, { withFileTypes: true })
.filter(dirent => type == 'FOLDER' ? dirent.isDirectory() : dirent.isFile())