Skip to content

Instantly share code, notes, and snippets.

View whinee's full-sized avatar
👋
hello!

Lyra whinee

👋
hello!
  • Klik-A-Snap Photography Services
  • Philippines
  • 21:29 (UTC +08:00)
View GitHub Profile
@whinee
whinee / fedora-40-i3-acer-one-S1003-fresh-install.sh
Created June 15, 2024 07:05
Run this script after you installed Fedora 40 (specifically i3 version) in Acer One S1003
sudo sed -i -e "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/" /etc/ssh/sshd_config
sudo chattr -f +i /etc/ssh/sshd_config
sudo systemctl restart sshd
mkdir -p /home/lyra/.config/systemd/user/
cat <<EOM >/opt/startup.sh
#!/bin/sh
sudo systemctl restart sshd
EOM
sudo chmod u+x /opt/startup.sh
sudo cat <<EOM >/etc/systemd/system/startup.service
@whinee
whinee / comprog-1_lab-5.md
Last active November 13, 2023 09:30
Comprog 1, Lab 5

README

I can't be bothered to make a video explanation of this, so have chatGPT explain it for you :3

Problem

image

Flowchart

@whinee
whinee / lyra-rescue-grub.sh
Last active October 5, 2023 09:34
lyra-rescue-grub.sh
# Mount partitions
sudo mount /dev/nvme0n1p5 /mnt
sudo mount /dev/nvme0n1p1 /mnt/boot/efi
# Mount virtual filesystems
sudo mount -o bind /dev /mnt/dev
sudo mount -o bind /proc /mnt/proc
sudo mount -o bind /sys /mnt/sys
sudo mount -o bind /run /mnt/run
sudo mount -o bind /sys/firmware/efi/efivars /mnt/sys/firmware/efi/efivars
# chroot into system
@whinee
whinee / post.sh
Created September 23, 2023 09:49
arco linux post install script
echo "hello world!"
@whinee
whinee / whinit.md
Last active May 12, 2022 01:02
whinit

whinit

The inevitable has come yet again. I have destroyed my system, cuz' pamac's a bitch.

This gist exist as I reinstall Arch Linux every so often, and I want an easy way to install applications and set configurations.

This init script almost do not need user interactions except for other programs that do not have an option to not prompt the user.

Usage

@whinee
whinee / AbUser.md
Last active October 31, 2021 15:27
Collection of scripts that (ab)uses Discord's API to do a specific task

(Ab)User

Collection of scripts that (ab)uses Discord's API to do a specific task.

Scripts:

  • constantNickname:

    Will revert your nickname back if somebody changed your nickname. Needs a "CHANGE_NICKNAME" permission.

Usage

@whinee
whinee / whinestall.md
Last active December 29, 2023 07:59
This gist exists as I reinstall Arch Linux every so often, and I want an easy way to install applications and set configurations

whinestall

This gist exists as I reinstall Arch Linux every so often, and I want an easy way to install applications and set configurations.

This install script almost do not need user interactions except for other programs that do not have an option to not prompt the user.

Needed to be run at root account.

Tested on Arch Linux 5.14.11-arch1-1.