Skip to content

Instantly share code, notes, and snippets.

@oelbaga
oelbaga / 01 - Setup Nextjs site on Ubuntu Server - Terminal commands
Last active May 12, 2024 15:40
Setup NextJS app on Digital Ocean Ubuntu server Full Terminal Commands Step by Step
#Setup NextJS on Ubuntu server (Digital Ocean, EC2,...) Terminal Commands
#based on my YouTube video
#Recommended: An ubuntu server with at least 2 GB memory to handle npm run build
#login to server
ssh root@ip_address
#Upgrade Server - may take a few minutes
sudo apt update
sudo apt upgrade
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active May 12, 2024 15:40
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@TameemS
TameemS / debloatLDPlayer.md
Last active May 12, 2024 15:39
Debloating LDPlayer

Inspired by this

More of my guides: Debloating MEMu - Debloating Nox (Updated)

This mainly applies to LDPlayer9. They will probably work on the low end options (like LDPlayer5) but not guaranteed.

Debloating LDPlayer

This emulator seems to have less stability issues than MEMu. I think we get the shtick that these emulators do spooky stuff.

  1. Download LDPlayer, preferably an offline version from the version history
[Desktop Entry]
Version=1.0
Type=Application
Name=inxi -F information
Comment=
Exec=sh -c "inxi -Fc | zenity --text-info --title=%c --window-icon=/etc/favicon.png --width=630 --height=565"
Icon=computer
Path=
Terminal=false
StartupNotify=false
@HexedHero
HexedHero / mc_client_performance_guide.md
Last active May 12, 2024 15:37
Performance guide for Minecraft 1.20.4+ Clients

Performance guide for Minecraft 1.20.4+ Clients

📜 Fabric

Fabric is the "modern" Minecraft modding software that is very modular.
We use Fabric in this guide so install it by going to https://fabricmc.net/use/ Download the .jar or .exe and run it.

Below is a list of performance and utility mods to make your Minecraft experience better and most importantly smooth.
The list is in order of most importance and they all work together including what they do with why to use them.

[Desktop Entry]
Version=1.0
Type=Application
Name=log messages
Comment=
Exec=sh -c "journalctl -f --no-tail --no-hostname | zenity --text-info --title=%c --width=822 --height=565 --auto-scroll"
Icon=
Path=
Terminal=false
StartupNotify=false
eval $(lsblk -Pdo MODEL,SERIAL /dev/sda)
echo -e "[ATA]\nAPMLevel=254" | tee /etc/udisks2/$MODEL-$SERIAL.conf
# compact view
xfconf-query -c thunar -p /last-view -s ThunarCompactView
# show hidden files
xfconf-query -c thunar -p /last-show-hidden -nt bool -s true
# disable thumbnails
xfconf-query -c thunar -p /misc-thumbnail-mode -nt string -s THUNAR_THUMBNAIL_MODE_NEVER
# system inactivity
su -lc '
mkdir -p /etc/security/access.d
echo "-:ALL:ALL EXCEPT LOCAL" > /etc/security/access.d/local.conf
authselect enable-feature with-pamaccess
systemctl --now disable abrtd auditd avahi-daemon chronyd cups dnf-makecache.timer pcscd rsyslog
rm -rf /var/log/journal
ln -s /dev/null /etc/sysctl.d/50-coredump.conf
'
@kauffmanes
kauffmanes / install_anaconda.md
Last active May 12, 2024 15:36
Install Anaconda on Windows Subsystem for Linux (WSL)

Thanks everyone for commenting/contributing! I made this in college for a class and I no longer really use the technology. I encourage you all to help each other, but I probably won't be answering questions anymore.

This article is also on my blog: https://emilykauffman.com/blog/install-anaconda-on-wsl

Note: $ denotes the start of a command. Don't actually type this.

Steps to Install Anaconda on Windows Ubuntu Terminal

  1. Install WSL (Ubuntu for Windows - can be found in Windows Store). I recommend the latest version (I'm using 18.04) because there are some bugs they worked out during 14/16 (microsoft/WSL#785)
  2. Go to https://repo.continuum.io/archive to find the list of Anaconda releases
  3. Select the release you want. I have a 64-bit computer, so I chose the latest release ending in x86_64.sh. If I had a 32-bit computer, I'd select the x86.sh version. If you accidentally try to install the wrong one, you'll get a warning in the terminal. I chose `Anaconda3-5.2.0-Li