Skip to content

Instantly share code, notes, and snippets.

View zunjae's full-sized avatar
🤡
clowning

ZUNJAE zunjae

🤡
clowning
  • Mayo
View GitHub Profile
@zunjae
zunjae / Dockerfile
Last active January 2, 2021 21:01
Rclone docker-compose backup locally to remote
version: "3"
services:
rclone-bun:
image: pfidr/rclone
restart: unless-stopped
volumes:
- ./rclone/config:/config
- $YOUR_LOCAL_DIRECTORY_YOU_WANT_TO_SYNC:/$ProjectNameGoesHere
@zunjae
zunjae / Remote
Last active June 28, 2023 13:43
How To Remote scrcpy
1) Install scrcpy over at https://github.com/Genymobile/scrcpy#get-the-app OR if you prefer using a graphical user interface https://github.com/Tomotoes/scrcpy-gui
2) Enable Developer mode on your Android Phone. (Instructions: https://www.howtogeek.com/129728/how-to-access-the-developer-options-menu-and-enable-usb-debugging-on-android-4.2/)
3) Connect your Android phone to your PC with a USB cable
4) Run scrcpy. The easiesy way to do this is by typing `scrcpy` in your command line or by using the GUI (the second link in step 1)
5) You'll receive a message on your phone, asking for your permission so your PC can connect to your Android device. Accept that
@zunjae
zunjae / HiThere.bun
Last active February 7, 2020 09:26
Solution "[GitHub API] Deprecation notice for authentication via URL query parameters"
Hi @zunjae,
On February 6th, 2020 at 22:00 (UTC) your personal access token (Gist) using python-requests/2.18.4 was used as part of a query parameter to access an endpoint through the GitHub API:
https://api.github.com/gists/LINK
Please use the Authorization HTTP header instead, as using the `access_token` query parameter is deprecated.
Depending on your API usage, we'll be sending you this email reminder once every 3 days for each token and User-Agent used in API calls made on your behalf.
Just one URL that was accessed with a token and User-Agent combination will be listed in the email reminder, not all.
@zunjae
zunjae / secondsToDate.kt
Created January 9, 2020 12:09
Seconds to HH:MM:SS in Kotlin
data class HoursMinutesSeconds(val hours: Int, val minutes: Int, val seconds: Int)
fun Int.toHoursMinuteSeconds(): HoursMinutesSeconds {
val hours = this / 3600f
val fullHours = hours.toInt()
val minutes = (hours - fullHours) * 60f
val fullMinutes = minutes.toInt()
val seconds = (minutes - fullMinutes) * 60f
@zunjae
zunjae / optional_wrapper_value.swift
Created December 16, 2019 13:38
@propertyWrapper with optional wrappedValue
@propertyWrapper
public struct Database<T> {
public let key: String
public var wrappedValue: T? {
get { return UserDefaults.standard.object(forKey: key) as? T }
set { UserDefaults.standard.set(newValue, forKey: key) }
}
public init(key: String) {
@zunjae
zunjae / reddit_posts
Last active August 26, 2019 09:48
reddit_posts
[{"author": "zunjae", "title": "AnYme X Download", "score": 185}, {"author": "z1xto", "title": "How do I stop mal account loging out? My mal acc randomly logs out", "score": 36}, {"author": "CapWelkin", "title": "The app is having some problems with mal", "score": 12}, {"author": "EctoBiology", "title": "Do watched episodes automatically sync?", "score": 11}, {"author": "skullcandyjesus", "title": "What am I doing wrong?", "score": 11}, {"author": "24identity", "title": "Really enjoy this app", "score": 141}, {"author": "zunjae", "title": "AnYme V8.98 BETA Update", "score": 150}, {"author": "peedit", "title": "Please remove dropped shows from the stay-up-to-date sextion", "score": 4}, {"author": "nico2x", "title": "\"Steins:Gate\" episodes not loading properly despite having a good internet connection. I tried different servers but still buffering. Tried watching other animes but it loaded without a problem.", "score": 20}, {"author": "Z3R0215", "title": "Days wasted not going up", "score": 28}, {"author": "2
@zunjae
zunjae / beingwatched
Last active April 24, 2024 00:00
beingwatched
[{"AnimeId": 41261, "Amount": 6331, "Title": "Ane wa Yanmama Junyuu-chuu", "Type": null, "ImageURL": "https://cdn.myanimelist.net/images/anime/1810/105977.jpg", "Episodes": 2, "Score": 7.72}, {"AnimeId": 5114, "Amount": 3896, "Title": "Fullmetal Alchemist: Brotherhood", "Type": null, "ImageURL": "https://cdn.myanimelist.net/images/anime/1223/96541.jpg", "Episodes": 64, "Score": 9.13}, {"AnimeId": 43523, "Amount": 3409, "Title": "Tsuki ga Michibiku Isekai Douchuu", "Type": null, "ImageURL": "https://cdn.myanimelist.net/images/anime/1950/116474.jpg", "Episodes": 12, "Score": 7.72}, {"AnimeId": 20, "Amount": 2922, "Title": "Naruto", "Type": null, "ImageURL": "https://cdn.myanimelist.net/images/anime/13/17405.jpg", "Episodes": 220, "Score": 7.97}, {"AnimeId": 8918, "Amount": 1948, "Title": "Princess Lover! OVA", "Type": null, "ImageURL": "https://cdn.myanimelist.net/images/anime/1967/103842.jpg", "Episodes": 2, "Score": 6.7}, {"AnimeId": 40748, "Amount": 1461, "Title": "Jujutsu Kaisen", "Type": null, "ImageURL":
@zunjae
zunjae / nsfw.json
Last active April 23, 2024 08:01
nsfw
{"ids": [1639, 40746, 10851, 5391, 320, 22429, 368, 4866, 10779, 36198, 6893, 29575, 37281, 7748, 35629, 7411, 39337, 741, 47591, 34823, 44044, 36840, 24641, 11827, 25345, 32587, 8918, 10380, 31886, 2432, 9322, 40254, 221, 32355, 37320, 11879, 38797, 21829, 4473, 23479, 21521, 41332, 33322, 11321, 13221, 12375, 41261, 39963, 3918, 39392, 36720, 972, 1401, 21097, 15097, 9308, 2798, 5762, 7053, 651, 35936, 30243, 15537, 41848, 20801, 42517, 12059, 14991, 724, 4358, 25667, 34795, 32667, 48468, 48755, 22069, 2372, 3479, 7110, 28779, 5959, 10668, 36225, 30614, 32872, 38866, 38212, 30891, 15843, 2873, 37405, 20849, 830, 35581, 38034, 15841, 755, 11467, 10683, 43465, 5464, 12997, 38470, 35727, 32833, 2135, 8110, 28961, 12055, 37233, 35028, 18655, 19051, 3559, 46701, 12143, 17867, 50634, 39530, 29808, 18691, 39800, 10694, 23033, 31789, 31810, 30583, 21069, 2867, 28157, 1896, 29261, 21925, 39042, 14543, 28309, 4502, 736, 5097, 10106, 35498, 36256, 36737, 3537, 42714, 34388, 29809, 16472, 31117, 6590, 18693, 9435, 2341
@zunjae
zunjae / adblocker
Last active January 9, 2021 15:16
adblocker
{"ads":["if you are looking at this then you're seeing content that is not yours. It's not recommended to use this gist in your app as I might change the structure or content intentionally ;)","pushazam.com","https://ww5.dubbedanime.net/img/logo.png","dpypzvjarj.com/","mp4.sh/ads/","/pxms.js","ajzdkkzv.com","/fhsdi.php","tpxamydl=","smothere.pro/","cpmstar.com/cached/","mp4.sh/ads/","animeheaven.eu/tweet.png","animeheaven.eu/gp.png","animeheaven.eu/fb.png","amgload.net/z","adtechus.com","_352x220.jpg","revrtb.com/","adsco.re/","/zeroclipboard.min.js","aidaigry.com/","graftaub.com","fastcounter.de/","vfgtb.com/","crrepo.com/","smothere.pro/","run-syndicate.com/","nextoptim.com/","adsnative.com/","trafficjunky.net/","trafficsan.com/","nompakru.click","psoapeez.click","misdem.pro","vulevision.info","s9kkremkr0.com/","remarketingpixel.com","clksite.com","ceehimur.uk/","piguiqproxy.com/","lovacmar.click","streamango.com/assets/js/script.packed.js","/adspace/","&ad_channel=","spotscenered.info/","oload.tv/assets/js
@zunjae
zunjae / install_node.sh
Last active March 1, 2018 12:26
Install NodeJS9
curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
sudo apt-get install nodejs