Skip to content

Instantly share code, notes, and snippets.

View tkirkland's full-sized avatar

Tony Kirkland tkirkland

  • 13:35 (UTC -05:00)
View GitHub Profile
@tkirkland
tkirkland / mk_admin.sh
Last active February 11, 2025 07:16
Quick script to add an admin user on Linux
#!/bin/bash
# rev .2 2/11/25
# Check if the script is run as root
if [ "$EUID" -ne 0 ]; then
echo "Please run as root."
exit 1
fi
# Ensure a username is provided
@tkirkland
tkirkland / info.txt
Created April 26, 2023 14:50
Fix QT WidgetScaling on 4k (HiDPI) screens in KDE Plasma (at least 5.27.4 is tested)
Run the following from a shell:
echo "export PLASMA_USE_QT_SCALING=1" >> ~/.profile
or add this line maunualy to ${USER}/.profile:
export PLASMA_USE_QT_SCALING=1
@tkirkland
tkirkland / info.txt
Created April 12, 2023 18:38
Adjust Yakuake polling delay
For reasons unknown, there exists a 'hidden' option in the KDE application Yakuake. If you wish to add more delay to
the time between when the mouse pointer reaches the screen edge and Yakuake detects the event, make the following change:
Edit your yakuakerc file [usually in '/home/${USER}/.config/yakuakerc' and add the following:
[AutoOpen]
PollInterval=1500
If the AutoOpen group already exists you only need to append the PollInterval line. Internally, the default value is
500.
@tkirkland
tkirkland / universal.pkla
Created April 12, 2023 18:32
Allow all policykit actions to prevent extra password prompting in remote sessions (place here: /etc/polkit-1/localauthority/50-local.d)
[Allow access to anything for remote users]
Identity=unix-user:*
Action=*
ResultAny=yes
ResultInactive=yes
ResultActive=yes
@tkirkland
tkirkland / bash_aliases
Created March 16, 2023 18:24
my peronal list of bash aliases
alias perms='stat -c "%A %a %n"'
@echo off
cls
set x86="%SYSTEMROOT%\System32\OneDriveSetup.exe"
set x64="%SYSTEMROOT%\SysWOW64\OneDriveSetup.exe"
echo Closing OneDrive process.
echo.
taskkill /f /im OneDrive.exe > NUL 2>&1
ping 127.0.0.1 -n 5 > NUL 2>&1
@tkirkland
tkirkland / disable-dsm-compatibility-check.txt
Created January 16, 2022 23:47
Disable drive compatibility check in Synology DSM 7.02
Valid as of 1/16/2022
You will need SSH enabled. After you have logged in, gain root access via sudo. The file you want to edit is
"/etc.default/synoinfo.conf" and you are looking for a line that reads 'supports_disk_compatibility="yes" ' that needs
to be changed to 'supports_disk_compatibility="yes"'. Once you haved saved and exited yor editor all that is required
is a reboot.