Skip to content

Instantly share code, notes, and snippets.

@andronics
andronics / license-helper.patch
Created September 14, 2023 20:55
FileFlows License Patch
diff --git a/Server/Helpers/LicenseHelper.cs b/Server/Helpers/LicenseHelper.cs
index 0105b902..858a0b3e 100644
--- a/Server/Helpers/LicenseHelper.cs
+++ b/Server/Helpers/LicenseHelper.cs
@@ -68,17 +68,24 @@ class LicenseHelper
internal static License? FromCode(string code)
{
- if (string.IsNullOrWhiteSpace(code))
- return null;
@andronics
andronics / git-config.md
Last active August 21, 2023 13:19
Git - Untracked files

When doing git commit, is there a way to not display the untracked files?

Global

$ git config --global status.showUntrackedFiles no

Single Repositry

@andronics
andronics / README.md
Created October 28, 2022 10:53
Creating Bootable USB from ISO

Run the following command, replacing /dev/sdx with your drive, e.g. /dev/sdb. (Do not append a partition number, so do not use something like /dev/sdb1):

sudo dd bs=4M if=image.iso of=/dev/sdx conv=fsync oflag=direct status=progress
@andronics
andronics / README.md
Created October 20, 2022 09:31
Lighdm

Troubleshooting

Infinite Loop While Logging On (After Upgrade)

  • Downgrade Webkit 2 GTK
sudo downgrade webkit2gtk
@andronics
andronics / README.md
Created October 20, 2022 09:24
Add, remove & list kernel on Arch Linux

Kernels

List (Available)

mhwd-kernel -l

List (Installed)

mhwd-kernel -li
@andronics
andronics / s9-bloatware-removal.sh
Last active February 1, 2022 00:53
Samsung S9 Bloatware Removal
adb shell pm uninstall -k --user 0 co.hunge.app
adb shell pm uninstall -k --user 0 com.android.bips
adb shell pm uninstall -k --user 0 com.android.bookmarkprovider
adb shell pm uninstall -k --user 0 com.android.browser
adb shell pm uninstall -k --user 0 com.android.calendar
adb shell pm uninstall -k --user 0 com.android.cellbroadcastreceiver
adb shell pm uninstall -k --user 0 com.android.cellbroadcastreceiver.overlay.common
adb shell pm uninstall -k --user 0 com.android.chrome
adb shell pm uninstall -k --user 0 com.android.deskclock
adb shell pm uninstall -k --user 0 com.android.documentsui
@andronics
andronics / xxx.json
Created November 21, 2021 20:37
xxx json
{
"catagories": [
{ "name": "petite" },
{ "name": "short hair" },
{ "name": "step mom" },
{ "name": "teen" }
],
"channels": [
{ "name": "Kira Noir"},
{ "name": "Mom Addiction" },
# change directory
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
# docker-compose
debloat.import=1
EasterEgg^=/system/app/EasterEgg
SPdfNote^=/system/app/SPdfNote
WlanTest^=/system/app/WlanTest
WifiGuider^=/system/app/WifiGuider
AllshareFileShare^=/system/app/AllshareFileShare
UnifiedWFC^=/system/app/UnifiedWFC
Weather_SEP10.3^=/system/app/Weather_SEP10.3
VideoTrimmer^=/system/app/VideoTrimmer
VideoEditorLite_Dream_N^=/system/app/VideoEditorLite_Dream_N
@andronics
andronics / agents_ssh_gpg.md
Last active June 25, 2023 00:03
Security Keys - Generating, modification and storage

Agents - SSH & GPG

Many of us are familiar with Secure Shell (SSH), which allows us to connect to other systems using a key instead of a password. This guide will explain how to eliminate SSH keys and use a GNU Privacy Guard (GPG) subkey instead.

Using GPG does not make your SSH connections more secure. SSH is a secure protocol, and SSH keys are secure. Instead, it makes certain forms of key distribution and backup management easier. It also will not change your workflow for using SSH. All commands will continue to work as you expect, except that you will no longer have SSH private keys and you will unlock your GPG key instead.

By having SSH authenticated by your GPG key, you will reduce the number of key files you need to secure and back up. This means that your key management hygiene still has to be good, which means choosing good passphrases and using appropriate key preservation strategies. Remember, you shouldn't back your private key up to the cloud!

Additionally, today SSH keys are distributed by