Skip to content

Instantly share code, notes, and snippets.

View alsyundawy's full-sized avatar
🏠
WFH | Kaum Rebahan Garis Keras Dan Militas

༺ Initial H ༻ alsyundawy

🏠
WFH | Kaum Rebahan Garis Keras Dan Militas
View GitHub Profile
@alsyundawy
alsyundawy / sh.md
Created August 30, 2024 20:09 — forked from amanjuman/sh.md
Debian 12 Netplan.io

Install Packages

sudo apt install netplan.io openvswitch-switch

Configure Netplan

nano /etc/netplan/network.yaml
network:
@alsyundawy
alsyundawy / dist-upgrade-buster-to-bookworm.sh
Created August 26, 2024 08:04 — forked from rrottmann/dist-upgrade-buster-to-bookworm.sh
Dist-Upgrade Debian 10 Buster to Debian 12 Bookworm
# Debian 10
apt-get -y update
apt-get -y upgrade --without-new-pkgs
apt-get -y full-upgrade
cat > /etc/apt/sources.list <<"EOF"
deb http://deb.debian.org/debian/ bullseye main
deb-src http://deb.debian.org/debian/ bullseye main
deb http://security.debian.org/bullseye-security bullseye-security/updates main
deb-src http://security.debian.org/bullseye-security bullseye-security/updates main

Ubuntu GPU Server Setup

Quick and smooth setup of Ubuntu GPU server, including proper installation of Nvidia driver.

Estimated time: < 1 hour

  1. Download the “alternative” server image from Ubuntu: Alternative downloads | Ubuntu
  2. Create a bootable USB stick on macOS | Ubuntu
  3. Go to BIOS, disable secure boot. Then boot UEFI. Install Ubuntu, overwrite full partition, add SSH Server. Finish installation and login.
  4. You can now ssh in with password. Login and install nvidia driver. Since secure boot is disable, nvidia installation should go smoothly.
@alsyundawy
alsyundawy / move-var-part-ubuntu.md
Last active May 21, 2024 19:41 — forked from iambryancs/move-var-part-ubuntu.md
Move /var to another partition in Ubuntu

Move /var to another partition in Ubuntu

Create partition with fdisk or gdisk

fdisk -l
create a new GPT partition table by typing
gdisk /dev/sda
GPT fdisk (gdisk) version 1.0.5

Partition table scan:

Cut, copy, paste, and other common shortcuts

Shortcut Description
Command-X Cut the selected item and copy it to the Clipboard.
Command-C Copy the selected item to the Clipboard. This also works for files in the Finder.
Command-V Paste the contents of the Clipboard into the current document or app. This also works for files in the Finder.
Command-Z Undo the previous command. You can then press Command-Shift-Z to Redo, reversing the undo command. In some apps, you can undo and redo multiple commands.
Command-A Select All items.
Command-F Find items in a document or open a Find window.
@alsyundawy
alsyundawy / osx-software-update-urls-10.3-to-14.txt
Created March 23, 2024 21:57 — forked from b0gdanw/osx-software-update-urls-10.3-to-14.txt
URLs of the index files used by the software update client on OS X
10.3 (Panther):
https://swscan.apple.com/scanningpoints/scanningpointX.xml
10.4 (Tiger):
https://swscan.apple.com/content/catalogs/index.sucatalog
https://swscan.apple.com/content/catalogs/index-1.sucatalog
10.5 (Leopard):
https://swscan.apple.com/content/catalogs/others/index-leopard.merged-1.sucatalog
@alsyundawy
alsyundawy / adobe.txt
Last active February 29, 2024 09:15
Adobe Genuine Service or This unlicensed Adobe app or another popups | The Ultimate Adobe License... / Genuine Message Killer Kung Fu Steps
Adobe Genuine Service or This unlicensed Adobe app or another popups
The Ultimate Adobe License... / Genuine Message Killer Kung Fu Steps
if you are running older apps like from 2020 or from 2024 but are treated with older patch from sice instead the latest, and you are suffering from these messages, just follow these step and your pain will be gone soon.
step 1)
Apple... System Preferences... Privacy & security... Full Dick Access... click the plus sign and add Terminal to the list.
Terminal is here: /Macintosh HD/Applications/Utilities/Terminal
@alsyundawy
alsyundawy / PIHOLE+UNBOUND.md
Created January 29, 2024 23:46 — forked from bruvv/PIHOLE+UNBOUND.md
Setup Pihole + Unbound + DNS over TLS on ubuntu 20.02 LTS

Swap

First enable swap just incase

sudo fallocate -l 2G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo cp /etc/fstab /etc/fstab.bak
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
sudo sysctl vm.swappiness=10
@alsyundawy
alsyundawy / catatan-ubuntu.txt
Last active July 16, 2024 19:55
Ubuntu Mirror Repo
Ubuntu Mirror Repo
sudo timedatectl set-timezone Asia/Jakarta
systemctl disable --now systemd-resolved
systemctl disable --now systemd-networkd-wait-online.service
rm -rf /etc/resolv.conf
touch /etc/resolv.conf
echo 'search alsyundawy.net.id' > /etc/resolv.conf
echo 'nameserver 1.1.1.1' >> /etc/resolv.conf