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 November 15, 2024 12:00
beingwatched
[{"AnimeId": 41261, "Amount": 7350, "Title": "Ane wa Yanmama Junyuu-chuu", "Type": null, "ImageURL": "https://cdn.myanimelist.net/images/anime/1810/105977.jpg", "Episodes": 2, "Score": 7.72}, {"AnimeId": 43325, "Amount": 1400, "Title": "Yuukoku no Moriarty Part 2", "Type": null, "ImageURL": "https://cdn.myanimelist.net/images/anime/1200/111522.jpg", "Episodes": 13, "Score": 8.25}, {"AnimeId": 249, "Amount": 1050, "Title": "InuYasha", "Type": null, "ImageURL": "https://cdn.myanimelist.net/images/anime/1589/95329.jpg", "Episodes": 167, "Score": 7.85}, {"AnimeId": 5114, "Amount": 700, "Title": "Fullmetal Alchemist: Brotherhood", "Type": null, "ImageURL": "https://cdn.myanimelist.net/images/anime/1223/96541.jpg", "Episodes": 64, "Score": 9.13}, {"AnimeId": 1462, "Amount": 700, "Title": "Memories", "Type": "Movie", "ImageURL": "https://cdn.myanimelist.net/images/anime/9/74781.jpg", "Episodes": 3, "Score": 7.74}, {"AnimeId": 40750, "Amount": 350, "Title": "Kaifuku Jutsushi no Yarinaoshi", "Type": null, "ImageURL":
@zunjae
zunjae / nsfw.json
Last active November 15, 2024 08:01
nsfw
{"ids": [1639, 40746, 10851, 320, 5391, 22429, 368, 4866, 10779, 36198, 6893, 37281, 29575, 7748, 35629, 7411, 39337, 741, 47591, 34823, 44044, 36840, 24641, 11827, 32587, 25345, 8918, 31886, 10380, 221, 2432, 9322, 32355, 37320, 38797, 40254, 11879, 21829, 4473, 23479, 33322, 21521, 11321, 41261, 41332, 13221, 12375, 39392, 36720, 39963, 3918, 972, 1401, 21097, 15097, 9308, 2798, 5762, 7053, 35936, 41848, 651, 30243, 48755, 15537, 20801, 42517, 48468, 12059, 14991, 4358, 25667, 34795, 724, 32667, 22069, 2372, 3479, 28779, 7110, 5959, 38866, 32872, 36225, 10668, 30614, 38212, 30891, 15843, 37405, 2873, 20849, 35581, 830, 38034, 43465, 38470, 15841, 11467, 755, 10683, 35727, 12997, 5464, 32833, 50634, 37233, 2135, 28961, 8110, 39530, 35028, 12055, 12143, 46701, 18655, 39800, 3559, 19051, 17867, 29808, 18691, 21069, 23033, 10694, 39042, 31789, 30583, 31810, 29261, 28157, 2867, 21925, 1896, 14543, 28309, 4502, 35498, 36256, 10106, 736, 42714, 5097, 36737, 3537, 34388, 2341, 29809, 16472, 31117, 6590, 18693, 2175
@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