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 July 31, 2024 12:01
My Arkenfox Config
/** Security ***/
// Firefox Strict Mode
user_pref("browser.contentblocking.category", "strict");
// Enable https only mode
user_pref("dom.security.https_only_mode", true);
// DNS over HTTPS
user_pref("network.trr.custom_uri", "https://dns.quad9.net/dns-query");
@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 / userChrome.css
Last active July 31, 2024 12:03
[Windows] Fix Firefox window controls
.titlebar-button{
background-color: transparent !important;
stroke: currentColor !important;
}
.titlebar-button:hover{ background-color: hsla(0,0%,100%,.32) !important }
.titlebar-close:hover{ background-color: hsl(355,86%,49%) !important }
.titlebar-close{ list-style-image: url(chrome://browser/skin/window-controls/close.svg) !important }
.titlebar-min{ list-style-image: url(chrome://browser/skin/window-controls/minimize.svg) !important }
.titlebar-max{ list-style-image: url(chrome://browser/skin/window-controls/maximize.svg) !important }
@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"
}
@lenicyl
lenicyl / Write-Menu.ps1
Last active July 31, 2024 12:07 — forked from hapylestat/text_menu.ps1
Clean powershell based menu with arrow navigation
<#
Fork that hides cursor in the menu
Links :
Original Menu script : https://mspowershell.blogspot.com/2009/02/cli-menu-in-powershell.html?m=1
Fork : https://gist.github.com/hapylestat/b940d13b7d272fb6105a1146ddcd4e2a
#>
function moveCursor{ param($position)
@lenicyl
lenicyl / darkJade.css
Last active July 31, 2024 12:19
Dark Jade Theme for Whoogle
:root {
/* DARK THEME COLORS */
--whoogle-dark-page-bg: #212121;
--whoogle-dark-element-bg: #111111 ;
--whoogle-dark-logo: #007261 ;
--whoogle-dark-text: #c6d3d1;
--whoogle-dark-contrast-text: #90AFA3;
--whoogle-dark-secondary-text: #f9fafb;
--whoogle-dark-result-bg: #111111;
--whoogle-dark-result-title: #699C88;
@lenicyl
lenicyl / CompileAP.md
Last active August 7, 2024 07:25
How to build ArmorPaint