Skip to content

Instantly share code, notes, and snippets.

@shaykalyan
shaykalyan / safeway-coupon-clip.js
Created December 8, 2024 00:25
safeway-coupon-clip bookmarklet
// stole this from somewhere a while ago
javascript:(function(){function sleep(ms){return new Promise(resolve=>setTimeout(resolve,ms));}async function click(){for(var loadMoreButton=document.getElementsByClassName("btn load-more")[0];loadMoreButton!==undefined;){loadMoreButton.click();loadMoreButton=document.getElementsByClassName("btn load-more")[0];await sleep(500);}var actionButtons=document.querySelectorAll('loyalty-card-action-buttons');for(var i=0;i<actionButtons.length;i++){var button=actionButtons[i].querySelector('button');if(button)button.click();}}click();}());
@shaykalyan
shaykalyan / lily58_keymap.json
Last active August 24, 2023 02:40
QMK keymap for the Lily58 split keyboard. To use with https://config.qmk.fm/
{
"version": 1,
"notes": "",
"documentation": "\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n",
"keyboard": "lily58/rev1",
"keymap": "shaykalyan",
"layout": "LAYOUT",
"layers": [
[
"QK_GESC",
@shaykalyan
shaykalyan / adb-commands-to-add-data-toggle.txt
Last active August 22, 2020 20:42
T-Mobile version of the Galaxy S20 OS doesn't have MobileData toggles but it can be added via ADB. Via https://www.xda-developers.com/how-to-restore-mobile-data-quick-settings-tile-toggle-on-samsung-galaxy-devices/
adb devices
adb shell
settings get secure sysui_qs_tiles
settings put secure sysui_qs_tiles "YOUR_LIST_HERE,MobileData,Hotspot"
@shaykalyan
shaykalyan / ohmyzsh-theme-guide.md
Last active December 2, 2024 06:15
Oh My Zsh theme with Powerline font guide