Skip to content

Instantly share code, notes, and snippets.

[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
@inkss
inkss / #readme.md
Last active May 12, 2024 15:35
IPV6 直播源

个人向直播源

精简了上游直播源内容,仅保留个人所需的。

一、订阅地址

TVM3U

https://gist.githubusercontent.com/inkss/0cf33e9f52fbb1f91bc5eb0144e504cf/raw/ipv6.m3u
@przbadu
przbadu / react-on-docker.md
Last active May 12, 2024 15:34
Setup Docker for React development

STEP 2: setup docker to run react app (dev and production) configuration: https://gist.github.com/przbadu/929fc2b0d5d4cd78a5efe76d37f891b6

Setup Docker for React development

Because we are using Docker, we are not going to install node, npm, create-react-app in our development machine, not even for generating create-react-app scaffold.

For this purpose I am using 2-step docker configuration:

  • In first step, we will create a simple docker container, that does only one thing, install create-react-app
BLACK => "\033[30m",
RED => "\033[31m",
GREEN => "\033[32m",
YELLOW => "\033[33m",
BLUE => "\033[34m",
PURPLE => "\033[35m",
CYAN => "\033[36m",
WHITE => "\033[37m",
# background color