Skip to content

Instantly share code, notes, and snippets.

View Zeyu-Li's full-sized avatar
🐧
Pengwing

Andrew Li Zeyu-Li

🐧
Pengwing
View GitHub Profile
1K45maA9jDR1kBRpojtPmO Attack of the Killer Queen Toby Fox,Lena Raine,Marcy Nabors https://open.spotify.com/track/1K45maA9jDR1kBRpojtPmO spotify:track:1K45maA9jDR1kBRpojtPmO
4HOuBqHttQGeP9UUBIBPow When The Fires Come Kero Kero Bonito https://open.spotify.com/track/4HOuBqHttQGeP9UUBIBPow spotify:track:4HOuBqHttQGeP9UUBIBPow
5TaFRkuzI6Gbm9BKsArO3t IT'S OK Nightbirde https://open.spotify.com/track/5TaFRkuzI6Gbm9BKsArO3t spotify:track:5TaFRkuzI6Gbm9BKsArO3t
3BIIJgBJJ7NhhCv4MI6n7w Alien Boy Oliver Tree https://open.spotify.com/track/3BIIJgBJJ7NhhCv4MI6n7w spotify:track:3BIIJgBJJ7NhhCv4MI6n7w
1gM1yyL572Mvg6i5FVvakv Can You Feel -炎色鳥 Torchkas https://open.spotify.com/track/1gM1yyL572Mvg6i5FVvakv spotify:track:1gM1yyL572Mvg6i5FVvakv
1cvoAW3VGndIIm5B2SqV7M Dear Future Self Kero Kero Bonito https://open.spotify.com/track/1cvoAW3VGndIIm5B2SqV7M spotify:track:1cvoAW3VGndIIm5B2SqV7M
6MXXY2eiWkpDCezVCc0cMH Good Morning Kanye West https://open.spotify.com/track/6MXXY2eiWkpDCezVCc0cMH spotify:track:6M
@Zeyu-Li
Zeyu-Li / javacopypasta.md
Created March 5, 2023 21:27
Java is the best

Java was a mistake, it would be fine if Java stood by itself, but the Java poison of OOP garbage has spread to other languages that overuse OOP patterns (like hello I would like an abstractBloatIteratorInterfaceFactoryImplFactory.java - words dreamed up by the mentally insane). The verbosity and bloat causes increase time to deploy as there is simply just more code to review and for every time of code there could be a bug so things will not get produced as fast. Another things that contributes to the verbosity is the lack of operator overloading (tell me a+b is harder to read that a.plus(b) 🤡). Now if you told me Java runs fast at least (which frankly doesn't matter bc cost of development is many times more expensive than runtime costs), I would understand but rust can run circles around Java and is much more readable. I will also add that since there is so much code (and therefore bugs), writing large java projects can be very slow itself since there is so much to index and build. When you need a bloated

@Zeyu-Li
Zeyu-Li / empty.ipynb
Created January 29, 2023 00:10
An empty Jupyter notebook file - the file is not recognized if empty
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Zeyu-Li
Zeyu-Li / Microsoft.PowerShell_profile.ps1
Created November 19, 2022 06:12
Store in C:\Users\{$USERNAME}\Documents\WindowsPowerShell
Function zshRun() {
Invoke-Expression 'wsl.exe /bin/zsh'
}
Set-Alias -Name zsh -Value zshRun # can't do this in 1 line smh my head
@Zeyu-Li
Zeyu-Li / cybera-docker.sh
Created October 31, 2022 23:24
Installing docker on Cybera
curl -sSL https://get.docker.com/ > docker.sh && sh docker.sh && rm docker.sh
sudo usermod -a -G docker $(whoami)
sudo service docker start
sudo systemctl enable docker
@Zeyu-Li
Zeyu-Li / github.service
Created October 23, 2022 23:37
Running github actions locally
[Unit]
Description="run.service added by add_service: Namespace(name=None, script='/home/ubuntu/actions-runner/run.sh', start=False, user='ubuntu')"
After=network.service
[Service]
Type=simple
User=ubuntu
Group=ubuntu
WorkingDirectory=/home/ubuntu/actions-runner
ExecStart=/home/ubuntu/actions-runner/run.sh
PrivateTmp=true
@Zeyu-Li
Zeyu-Li / run3.md
Last active September 25, 2022 04:38
Run 3 Cheat

Run 3 Cheat

Run 3 is an addictive 3D runner with gameplay that is smooth and refined. Currently it is in a state of not finished but development is not continuing, most likely just maintaining.

In my recent stint of being hooked, I finished all the levels and only had infinite mode, however, it seemed like the points for unlocking everything seemed impossibly hard! For example this angel character costed 12000 points and each shape you collect in endless mode gave 2-3 points. This mean I had to collect 4000 dots just to unlock this character assuming I was lucky every time! Since the grinding part of this takes hold and the endless runs become repetitive despite being "procedurally generated" according to the author (although I suspect it's pre-generated and handpicked); I decided to cheat.

Cheating

On first thought I thought it wasn't possible since it would communicate profile to the server, but then I realized I didn't have to sign in so it probably wasn't the

@Zeyu-Li
Zeyu-Li / .gitignore
Created December 28, 2021 02:05
a gitignore for WordPress within the wp-content directory/folder
# Wordpress - ignore core, configuration, examples, uploads and logs.
# modified from https://github.com/github/gitignore/blob/main/WordPress.gitignore
# Example themes
/themes/twenty*/
index.php
/languages
# Example plugin
@Zeyu-Li
Zeyu-Li / install.txt
Created December 25, 2021 18:52
Install new Scala
## Java
sudo apt-get update
sudo apt-get install default-jdk
## Scala
sudo apt-get remove scala-library scala
sudo wget https://downloads.lightbend.com/scala/2.13.6/scala-2.13.6.deb
sudo dpkg -i scala-2.13.6.deb
sudo apt-get update
sudo apt-get install scala
@Zeyu-Li
Zeyu-Li / shut.bat
Created November 4, 2021 21:16
close WSL2
wsl --shutdown