Skip to content

Instantly share code, notes, and snippets.

@arkon
arkon / transfer_gpm_to_spotify.js
Created November 13, 2020 13:47
Transfer Google Play Music to Spotify
// Cleaned up version of script from https://www.tunemymusic.com/
// to transfer from Google Play Music to Spotify
// with the ability to break at some point since
// I was going through the entire songs list
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms))
}
function demo() {
@arkon
arkon / gist:a8045f334bec7ad8c8a0cf43dbb63e0b
Created October 21, 2017 04:02
Gets all custom Slack emojis
Array.from(document.querySelectorAll('.emoji_row')).reduce((a, b) => a.concat({img: b.querySelector('.emoji-wrapper').dataset.original, name: b.querySelector('[headers="custom_emoji_name"]').innerText.replace(/:/g, '')}), [])
@arkon
arkon / patch_boot.sh
Last active March 13, 2019 08:45
Bash scripts for patching boot.img/build.prop for Fate/Grand Order on LineageOS (https://goo.gl/YkHgjZ)
#!/usr/bin/env bash
#
# This script replaces "ro.debuggable=1" with "ro.debuggable=0" in the
# default.prop file in a ROM's boot.img and gives you the patched boot.img.
#
# Prerequisites:
# - A UNIX system (with `unzip`)
# - These tools added to your PATH:
# - Android dev tools (adb/fastboot)
# - Various tools in "bootimg_tools_7.8.13.zip" from https://goo.gl/48Sszu
ldpi = 75%
mdpi = 100%
hdpi = 150%
xhdpi = 200%
xxhdpi = 300%
xxxhdpi = 400%
1. ID, e.g. #headerClass
2. Class e.g. .promoType
3. Type e.g. div
4. Adjacent sibling, e.g. h2 + p
5. Child, e.g. li > ul
6. Descendant, e.g. ul a
7. Universal, i.e. *
8. Attribute, e.g. [type="text"]
9. Pseudo-classes/-elements, e.g. a:hover