Skip to content

Instantly share code, notes, and snippets.

View 0XDE57's full-sized avatar

arbitrary hexcode 0XDE57

View GitHub Profile
@0XDE57
0XDE57 / config.md
Last active May 30, 2024 19:04
Firefox about:config privacy settings

ABOUT

about:config settings to harden the Firefox browser. Privacy and performance enhancements.
To change these settings type 'about:config' in the url bar. Then search the setting you would like to change and modify the value. Some settings may break certain websites from functioning and rendering normally. Some settings may also make firefox unstable. I am not liable for any damages/loss of data.

Not all these changes are necessary and will be dependent upon your usage and hardware. Do some research on settings if you don't understand what they do. These settings are best combined with your standard privacy extensions (HTTPS Everywhere No longer required: Enable HTTPS-Only Mode, NoScript/Request Policy, uBlock origin, agent spoofing, Privacy Badger etc), and all plugins set to "Ask To Activate".

@0XDE57
0XDE57 / gist:5d6c6f9db3e927f2fd4d52d5ba464a02
Created February 8, 2024 05:45
return to old shell UI the shows everything properly. i dont like the stupid new rounded corner right-click context menu UI with icons for cut n paste instead of text.
reg.exe add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve
@0XDE57
0XDE57 / fix.txt
Created November 14, 2023 01:53
fix multimonitor on plasma kde wayland sddm manjaro
These files are backups that go in ~/.config/
eg: /home/username/.config/
Fix or replace the files. Then log out session and log back in.
In plasmashell.rc: There should never be more than monitors than are physically connected in [ScreenConnectoers]
You can simply delete all entries and log out and log back in and plasmashell should remake the entries for you.
eg: I have 3 monitors:
[ScreenConnectors]
0=HDMI-A-1
@0XDE57
0XDE57 / start pnkbstr(run as admin).bat
Last active November 8, 2022 02:09
Script for enabling and disabling punkbuster malware when I want to play battlefield. Must be run as admin.
@ECHO OFF
::Flush DNS cache before starting anti-cheat software.
::I don't think punkbuster checks the DNS but VAC does: https://www.reddit.com/r/GlobalOffensive/comments/1y0kc1/
::This is just a precaution. pnkbstr is still a joke ;)
ECHO Flushing DNS...
ipconfig /flushdns
::Start A so we can play the game without being kicked.
ECHO Starting Punkbuster...
NET START "PnkBstrA"
list applications:
adb shell 'pm list packages -f' | sed -e 's/.*=//' | sort
get path for app:
adb shell pm path com.app.name
extract app:
adb pull /path/to/app.apk
@0XDE57
0XDE57 / gdb register search
Last active February 14, 2021 06:59
gdb debugger script for searching registers in binaries on jailbroken iOS devices
@0XDE57
0XDE57 / disableGPU.sh
Created November 24, 2019 12:29
Recovery util to re-disable gpu in my dead 2011 macbook when it decides to not boot or you have to reset PRAM (Command, Option, P, and R)
cd /
umount /sys/firmware/efi/efivars/
mount -t efivarfs rw /sys/firmware/efi/efivars/
cd /sys/firmware/efi/efivars/
printf "\x07\x00\x00\x00\x01\x00\x00\x00" > /sys/firmware/efi/efivars/gpu-power-prefs-fa4ce28d-b62f-4c99-9cc3-6815686e30f9
chattr +i "/sys/firmware/efi/efivars/gpu-power-prefs-fa4ce28d-b62f-4c99-9cc3-6815686e30f9"
cd /
umount /sys/firmware/efi/efivars/
@0XDE57
0XDE57 / backup.bat
Created January 29, 2021 00:18
backup script (double check paths before running)
::robocopy C:\source M:\destination /MIR /FFT /R:3 /W:10
::/MIR option (equivalent to /E /PURGE) stands for "mirror" and is the most important option.
::It regards your source folder as the "master", causing it to overwrite any changes on the target side, which is a useful setting for a backup.
::/FFT is a very important option, as it allows a 2-second difference when comparing timestamps of files, such that minor clock differences between your computer and your backup device don't matter. This will ensure that only modified files are copied over, even if file modification times are not exactly synchronized.
::/R:3 specifies the number of retries, if the connection should fail, and /W:10 specifies a wait time of 10 seconds between retries. These are useful options when doing the backup over a network.
::/Z copies files in "restart mode", so partially copied files can be continued after an interruption.
::credit: superuser.com/a/831868
robocopy D:\ G:\ /MIR /FFT /R:3 /W:10 /Z /XJD
@0XDE57
0XDE57 / TakeOwnership.reg
Created July 8, 2016 06:01
Mirror/backup of Take Ownership context menu shortcut command. I did not write this, can't find origin to give credit.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\runas]
@="Take Ownership"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\*\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
@0XDE57
0XDE57 / DisableAeroShake.reg
Created December 20, 2016 06:22
Disable win7 effect to minimize all windows when shaking selected window.
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer]
"NoWindowMinimizingShortcuts"=dword:00000001