Skip to content

Instantly share code, notes, and snippets.

View atnbueno's full-sized avatar
👨‍💻
🏴󠁵󠁳󠁣󠁡󠁿 Girona, Spain ⌚UTC+2

Antonio Bueno atnbueno

👨‍💻
🏴󠁵󠁳󠁣󠁡󠁿 Girona, Spain ⌚UTC+2
View GitHub Profile

Keybase proof

I hereby claim:

  • I am atnbueno on github.
  • I am atnbueno (https://keybase.io/atnbueno) on keybase.
  • I have a public key ASBPNX5MRu6-UWXZo3CwzjU0m4RxbSC3712SEYZ6zLxAcgo

To claim this, I am signing this object:

@atnbueno
atnbueno / ipsw2dmg.sh
Created July 31, 2022 10:52
A zsh script to extract the largest DMG from an IPSW to the same folder with the label as name
#!/bin/zsh
# ipsw2dmg.sh by github.com/atnbueno - v2.0.0 (2022-07-31) - License: MIT
# Check if input file exists (with or without an .ipsw extension)
if [ -f "$1" ]; then
INPUT=$(realpath "$1")
else
if [ -f "$1.ipsw" ]; then
INPUT=$(realpath "$1.ipsw")
else
@atnbueno
atnbueno / winget.ahk
Last active June 1, 2023 18:48
AutoHotkey script to upgrade everything winget can upgrade, but interactively and with pinned (non-upgradeable) programs
; winget.ahk 1.0.220124 (c) 2022 by u/atnbueno. MIT License.
PinnedPrograms := "iTunes,Mp3tag" ; programs I don't want to upgrade
RunWait, % ComSpec " /c winget list>winget_list.txt", % "C:\Users\" A_UserName, Hide
Loop, Read, % "C:\Users\" A_UserName "\winget_list.txt"
{
If (A_LoopReadLine ~= "winget$")
{
Pinned := False
@atnbueno
atnbueno / wordle-import-export.user.js
Last active January 22, 2022 21:22
Greasemonkey: import/export Wordle's game state to migrate playing it from one device to another
// ==UserScript==
// @name Wordle import/export
// @version 1.3
// @author Antonio Bueno
// @namespace userscripts.atnbueno.com
// @match https://www.powerlanguage.co.uk/wordle/
// @match https://wordle.danielfrg.com/
// @require https://cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js
// @require https://cdn.jsdelivr.net/npm/toastify-js
// @resource toastifyCSS https://cdn.jsdelivr.net/npm/toastify-js/src/toastify.min.css
@atnbueno
atnbueno / circular-progress-bar.html
Last active October 23, 2021 15:06
Parametrized pure-CSS circular progress bar
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<style>
/*
* Parametrized pure CSS circular progress bar v2.0
* by Antonio Bueno github.com/atnbueno
*
@atnbueno
atnbueno / iphone-colors.css
Created November 29, 2020 16:21
Official iPhone colors according to apple.com/iphone/compare/ (also leather and silicone case colors)
/* basic colors */
.black { color: #2e3034 }
.gold { color: #e3ccb4 }
.jetblack { color: #000000 }
.rosegold { color: #ecc6c1 }
.silver { color: #e2e3e4 }
.spaceblack { color: #1c1d1e }
.spacegray { color: #b1b2b7 }
@atnbueno
atnbueno / widget-html-css-scriptable-jobs.js
Created September 23, 2020 14:49 — forked from dcatanzaro/widget-html-css-scriptable-jobs.js
Widget con HTML y CSS en Scriptable
//Twitter: https://twitter.com/DamianCatanzaro
const html = "<html> \
<head> \
<style> \
body { \
margin: 0; \
background-color: cyan; \
width: 500px; \
height: 500px; \
@atnbueno
atnbueno / click-to-delete.user.js
Last active August 22, 2023 04:29
A userscript to delete page elements when clicked twice while pressing Alt, Control, and Shift simultaneously
// ==UserScript==
// @name Click to delete
// @author Antonio Bueno
// @namespace userscripts.atnbueno.com
// @description This script deletes page elements if clicked twice while simultaneously pressing Alt, Control, and Shift
// @version 2.0
// @grant none
// ==/UserScript==
/*
Time Title
0:00:00 (King George's Intro)
0:01:05 Alexander Hamilton
0:05:07 Aaron Burr, Sir
0:07:38 My Shot
0:13:45 The Story of Tonight
0:15:13 The Schuyler Sisters
0:18:23 Farmer Refuted
0:20:13 You'll Be Back
0:23:50 Right Hand Man
@atnbueno
atnbueno / shortcut-preview.user.js
Last active June 1, 2023 18:49
Greasemonkey: Add "Preview" button to iOS shortcut's iCloud links, linking to showcuts.app, and fixes the icon CSP bug
// ==UserScript==
// @name iOS Shortcut Preview
// @namespace https://www.atnbueno.com/
// @match https://showcuts.app/share/view
// @match https://www.icloud.com/shortcuts/*
// @version 2.0
// @grant GM_addStyle
// ==/UserScript==
/*