source materials (resources) for reference and learning (lists, draft, code
)
org mode not rendered (on pinned repositories)
emacs packages
perl(1)
(interpreter)#! /usr/bin/env perl | |
use v5.32; | |
use warnings; | |
use DBD::mysql; | |
my %mysql = ( | |
host => 'example.com', | |
port => 3306, | |
database => 'example_database', |
use v5.36; | |
use Rex -feature => [ '1.4' ]; | |
port 2222; # custom port | |
user 'root'; # PermitRootLogin prohibit-password | |
private_key '<path to SSH key>'; | |
# password "<SSH key's passphrase>"; # passphrase if any | |
key_auth; | |
group servers => qw( |
# -*- shell -*- | |
# Show current configuration with: | |
# tmux show-option -g | |
# Mouse | |
set-option -g mouse "on" # Shift | |
# Aliases | |
set-option -g command-alias[0] "r='rename-window'" |
mysql_config_editor \ | |
set \ | |
--login-path="local" \ | |
--host="localhost" \ | |
--port="3306" \ | |
--user="root" \ | |
--password | |
# https://dev.mysql.com/doc/refman/8.0/en/mysql-config-editor.html |
(setq make-backup-files nil) | |
; https://stackoverflow.com/questions/151945/how-do-i-control-how-emacs-makes-backup-files |
javascript:window.open('https://www.freebsd.org/cgi/man.cgi?query=' + prompt('FreeBSD Manual')); | |
// Chrome: | |
// Settings -> Appearance -> Show home button (second option below "Net Tab page") |
adb shell am start -a android.intent.action.CALL -d tel:012910 | |
# Saglam Aile | |
adb shell am start -a android.intent.action.CALL -d tel:012915 | |
# Umico | |
adb shell input keyevent KEYCODE_ENDCALL | |
# End call | |
# https://stackoverflow.com/questions/25587147/adb-command-to-cancel-hang-up-incoming-call |
# /etc/systemd/logind.conf.d/lid.conf | |
HandleLidSwitch=lock | |
HandleLidSwitchDocked=ignore | |
HandleLidSwitchExternalPower=lock | |
# https://unix.stackexchange.com/a/628090/455788 | |
# systemctl restart systemd-logind | |
# kills Xorg/Wayland session |