Skip to content

Instantly share code, notes, and snippets.

@lenicyl
lenicyl / fuckbeep.sh
Created October 12, 2023 07:07
Disable Speaker Beep on Arch Installation media
# https://bbs.archlinux.org/viewtopic.php?pid=2115510#p2115510
# Search the ISO for the byte offset of the GRUB "play 600" command.
$ grep -a -b -o "play 600" archlinux-x86_64.iso
799509406:play 600
# Confirm the byte offset from the previous command is correct, we should see "play" here.
$ dd if=archlinux-x86_64.iso skip=799509406 bs=1 count=4 status=none
play
@lenicyl
lenicyl / user-overrides.js
Last active September 30, 2022 11:27
My Arkenfox Config
// OVERRIDES
// 0801 :- Enable searching using the url bar
user_pref("keyword.enabled", true);
// 0804 :- Enable Live search suggestions
user_pref("browser.search.suggest.enabled", false);
user_pref("browser.urlbar.suggest.searches", false);
// 2022 :- Enable DRM Content
@lenicyl
lenicyl / install.sh
Last active September 28, 2022 09:26
Firefox Nightly Stuff
mkdir ~/ffntemp && cd ~/ffntemp
wget "https://download.mozilla.org/?product=firefox-nightly-latest-ssl&os=linux64&lang=en-US" -O firefox-nightly.tar.bz2
tar xvf firefox-nightly.tar.bz2
mv firefox /opt/firefox-nightly
ln -s /opt/firefox-nightly/firefox /usr/local/bin/firefox-nightly
wget "https://gist.githubusercontent.com/lenicyl/fb695b8ceb0e1631a6a046963cc34dd0/raw/a00c7bcd3e76e39f220c758a914bc7f33adbc436/nightly.desktop" -P /usr/local/share/applications
rm -rf ~/ffntemp
@lenicyl
lenicyl / Initial.sh
Last active September 8, 2022 12:34
VPS Setup
# Update
sudo apt update && sudo apt upgrade -y
# Neofetch
sudo apt install neofetch -y
# PiVPN
curl -L https://install.pivpn.io | bash
@lenicyl
lenicyl / panic.ahk
Created April 22, 2022 10:07
Panic AutoHotkey
<#L:: ; left win key + L, you can change this by refering to https://www.autohotkey.com/docs/Hotkeys.htm
SendMessage 0x112, 0xF170, 2, , Program Manager ; Monitor off
Return ; this script turns off ur display when u need to panic
@lenicyl
lenicyl / fuck-medium.js
Created February 4, 2022 05:59
Fuck Medium
// ==UserScript==
// @name New script - google.com
// @namespace Violentmonkey Scripts
// @grant none
// @version 1.0
// @author -
// @description 2/4/2022, 10:30:16 AM
// ==/UserScript==
// Thanks to @helium18 on github for helping me with this since im bad at js
@lenicyl
lenicyl / FF Broken Window Controls.md
Last active January 26, 2022 09:17
[Windows] Fix Firefox window controls

Wha ?

Firefox window controls just break when you theme your windows OS. The snippet below is a fix for it

Before

Broke

After

Fix

@lenicyl
lenicyl / 0. Readme.md
Last active December 23, 2021 11:19
Powershell $Profile

My powershell profile file and everything related to it ;-;

@lenicyl
lenicyl / Get-Filename.ps1
Created December 20, 2021 06:19
[Powershell] Open File Dialog
<# Source :
https://www.reddit.com/r/PowerShell/comments/m9iqz9/vs_code_open_file_dialog_not_taking_focus/
Thanks kind redditor
#>
Function Get-FileName {
$null=[System.Reflection.Assembly]::LoadWithPartialName("System.windows.forms")
$OpenFileDialog = [System.Windows.Forms.OpenFileDialog]@{
InitialDirectory = "$env:USERPROFILE\Desktop"
}