Skip to content

Instantly share code, notes, and snippets.

View Ed1123's full-sized avatar
🍉
learning... forever

Ed1123

🍉
learning... forever
View GitHub Profile
@Ed1123
Ed1123 / autoEmojiSignal.js
Last active August 20, 2025 19:07
A script to auto-select the star emoji for all stickers when importing them to Signal
// Delay function
const delay = ms => new Promise(res => setTimeout(res, ms));
// Delay between clicks (seconds)
delayBetweenClicks = .1;
// Loop for all the stickers
stickers = document.getElementsByClassName('lCzvEVovrfFcZaKyf3ZOA');
for (i=0; i<stickers.length; i++){
// Clicking each emoji element for each sticker
stickers[i].getElementsByClassName('_2S1Fkez4JWbv9-1wbe5aeH')[0].click();
@Ed1123
Ed1123 / Random_number_game.py
Created November 12, 2018 00:52
My first Python game... I hope I'll learn plenty more. :'D
# This game consist in guessing a random
# number in less that determinate number
# of attemps.
import random
import time
def need_a_number(user_input):
while not user_input.isnumeric():
@ascendbruce
ascendbruce / README.md
Last active October 28, 2025 01:50
Use macOS-style shortcuts in Windows

Use macOS-style shortcuts in Windows / keyboard mappings using a Mac keyboard on Windows

ℹ️ There is a newer alternative project that does similar things and more, check it out at https://github.com/stevenilsen123/mac-keyboard-behavior-in-windows

Make Windows PC's shortcut act like macOS (Mac OS X) (using AutoHotkey (ahk) script)

With this AutoHotKey script, you can use most macOS style shortcuts (eg, cmd+c, cmd+v, ...) on Windows with a standard PC keyboard.

How does it work

@bgromov
bgromov / git-reset-author.sh
Created June 23, 2016 17:50
Git: reset author for ALL commits
#!/bin/sh
# Credits: http://stackoverflow.com/a/750191
git filter-branch -f --env-filter "
GIT_AUTHOR_NAME='Newname'
GIT_AUTHOR_EMAIL='new@email'
GIT_COMMITTER_NAME='Newname'
GIT_COMMITTER_EMAIL='new@email'
" HEAD
@canton7
canton7 / 0main.md
Last active January 17, 2025 06:09
Local versions of tracked config files

How to have local versions of tracked config files in git

This is a fairly common question, and there isn't a One True Answer.

These are the most common techniques:

If you can modify your application