Skip to content

Instantly share code, notes, and snippets.

View stanleylhs's full-sized avatar

Stanley Hansen stanleylhs

View GitHub Profile
@nmalayev
nmalayev / saveToPlaylist.js
Created February 28, 2022 18:16
YouTube Music Likes to Playlist
// Define the sleep method and relevant paths.
function sleep(ms) {
return new Promise((resolve) => setTimeout(resolve, ms));
}
const sleepTime = 600;
const count = 0;
// Update playlistName to desired playlist
const playlistName = "#####";

Fix magisk stock backup does not exist

# put stock boot.img into /sdcard/boot.img

# get sha1
adb shell
su
SHA1=$(cat $(magisk --path)/.magisk/config | grep SHA1 | cut -d '=' -f 2)
@programminghoch10
programminghoch10 / snapchat_anonymous_screenshots
Last active November 26, 2023 02:17
Anonymous Snapchat screenshots on LineageOS
appops set com.snapchat.android READ_EXTERNAL_STORAGE deny
appops set com.snapchat.android WRITE_EXTERNAL_STORAGE deny
appops set com.snapchat.android READ_MEDIA_AUDIO ignore
appops set com.snapchat.android WRITE_MEDIA_AUDIO ignore
appops set com.snapchat.android READ_MEDIA_VIDEO ignore
appops set com.snapchat.android WRITE_MEDIA_VIDEO ignore
appops set com.snapchat.android READ_MEDIA_IMAGES ignore
appops set com.snapchat.android WRITE_MEDIA_IMAGES ignore
appops set com.snapchat.android LEGACY_STORAGE ignore
@szydan
szydan / gist:cbdf1e69667d64ba9fad62eae61b3469
Created September 7, 2017 08:58
ffmpeg convert aiff to mp3
ffmpeg -i input.aiff -f mp3 -acodec libmp3lame -ab 192000 -ar 44100 output.mp3
#!/bin/sh
set -e
FB="fastboot -S 512M"
#adb reboot bootloader
# Boot TWRP recovery
#${FB} oem unlock
@alyssachanspace
alyssachanspace / cwtexhei.css
Created February 2, 2017 17:59
cwTeXHei font (Chinese: 黑體) is derived from the cwTeX Traditional Chinese Type 1 fonts made by Tsong-Min Wu, Tsong-Huey Wu and Edward G.J. Lee.
/*
* cwTeXHei (Chinese-traditional) http://www.google.com/fonts/earlyaccess
*/
@font-face {
font-family: 'cwTeXHei';
font-style: normal;
font-weight: 500;
src: url(//fonts.gstatic.com/ea/cwtexhei/v3/cwTeXHei-zhonly.eot);
src: url(//fonts.gstatic.com/ea/cwtexhei/v3/cwTeXHei-zhonly.eot?#iefix) format('embedded-opentype'),
url(//fonts.gstatic.com/ea/cwtexhei/v3/cwTeXHei-zhonly.woff2) format('woff2'),
@alyssachanspace
alyssachanspace / cwtexming.css
Created February 2, 2017 17:58
cwTeXMing font (Chinese: 明體) is derived from the cwTeX Traditional Chinese Type 1 fonts made by Tsong-Min Wu, Tsong-Huey Wu and Edward G.J. Lee.
/*
* cwTeXMing (Chinese Traditional) http://www.google.com/fonts/earlyaccess
*/
@font-face {
font-family: 'cwTeXMing';
font-style: normal;
font-weight: 500;
src: url(//fonts.gstatic.com/ea/cwtexming/v3/cwTeXMing-zhonly.eot);
src: url(//fonts.gstatic.com/ea/cwtexming/v3/cwTeXMing-zhonly.eot?#iefix) format('embedded-opentype'),
url(//fonts.gstatic.com/ea/cwtexming/v3/cwTeXMing-zhonly.woff2) format('woff2'),
@alyssachanspace
alyssachanspace / cwtexfangsong.css
Created February 2, 2017 17:56
cwTeXFangSong font (Chinese: 仿宋體) is derived from the cwTeX Traditional Chinese Type 1 fonts made by Tsong-Min Wu, Tsong-Huey Wu and Edward G.J. Lee.
/*
* cwTeXFangSong (Chinese Traditional) http://www.google.com/fonts/earlyaccess
*/
@font-face {
font-family: 'cwTeXFangSong';
font-style: normal;
font-weight: 500;
src: url(//fonts.gstatic.com/ea/cwtexfangsong/v3/cwTeXFangSong-zhonly.eot);
src: url(//fonts.gstatic.com/ea/cwtexfangsong/v3/cwTeXFangSong-zhonly.eot?#iefix) format('embedded-opentype'),
url(//fonts.gstatic.com/ea/cwtexfangsong/v3/cwTeXFangSong-zhonly.woff2) format('woff2'),
@alyssachanspace
alyssachanspace / cwtexyen.css
Created February 2, 2017 17:53
cwTeXYen font (Chinese: 圓體) is derived from the cwTeX Traditional Chinese Type 1 fonts made by Tsong-Min Wu, Tsong-Huey Wu and Edward G.J. Lee.
/*
* cwTeXYen (Chinese Traditional) http://www.google.com/fonts/earlyaccess
*/
@font-face {
font-family: 'cwTeXYen';
font-style: normal;
font-weight: 500;
src: url(//fonts.gstatic.com/ea/cwtexyen/v3/cwTeXYen-zhonly.eot);
src: url(//fonts.gstatic.com/ea/cwtexyen/v3/cwTeXYen-zhonly.eot?#iefix) format('embedded-opentype'),
url(//fonts.gstatic.com/ea/cwtexyen/v3/cwTeXYen-zhonly.woff2) format('woff2'),
@alyssachanspace
alyssachanspace / cwtexkai.css
Created February 2, 2017 17:48
cwTeXKai font (Chinese: 楷體) is derived from the cwTeX Traditional Chinese Type 1 fonts made by Tsong-Min Wu, Tsong-Huey Wu and Edward G.J. Lee.
/*
* cwTeXKai (Chinese Traditional) http://www.google.com/fonts/earlyaccess
*/
@font-face {
font-family: 'cwTeXKai';
font-style: normal;
font-weight: 500;
src: url(//fonts.gstatic.com/ea/cwtexkai/v3/cwTeXKai-zhonly.eot);
src: url(//fonts.gstatic.com/ea/cwtexkai/v3/cwTeXKai-zhonly.eot?#iefix) format('embedded-opentype'),
url(//fonts.gstatic.com/ea/cwtexkai/v3/cwTeXKai-zhonly.woff2) format('woff2'),