-
The
new
method of theNet::DNS::Resolver
class returning aNet::DNS::Resolver
object -
The
query
method of theNet::DNS::Resolver
class returning aNet::DNS::Packet
object -
The
answer
method ofNet::DNS::Packet
class returning a list ofNet::DNS::RR
objects -
The
type
method: of theNet::DNS::RR
class returning a standard DNS record type string
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
perl -n -e 'print if $. == 15' file.txt | |
# where $_ is line's content | |
# -n creates: while (<>) { ... } around files, making Perl iterate over lines | |
# -e option's value goes into { ... } | |
# https://perldoc.perl.org/perlvar#$. |
Decompiled DLL with ILSpy to identify various commands.
Most commands can be found in DDM2._0_UX.CmdBackground.cmdService_DoWork
Write commands can be prefixed with int:command to specify which monitor to send the command to.
.\DDM.exe /0:writebrightnesslevel 50
This document now resides at https://github.com/Ovid/Cor/blob/master/pod/perlclasstut.pod
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(setq make-backup-files nil) | |
; https://stackoverflow.com/questions/151945/how-do-i-control-how-emacs-makes-backup-files |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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'" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Client configs, 16.04, | |
script-security 2 | |
up /etc/openvpn/update-resolv-conf | |
down /etc/openvpn/update-resolv-conf | |
# network manager, 16.04, install below package to enable import openvpn client configs | |
sudo apt install network-manager-openvpn-gnome | |
# Client configs, 18.04/18.10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google] | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome] | |
"ForceEphemeralProfiles"=dword:00000001 | |
"SavingBrowserHistoryDisabled"=dword:00000001 | |
"SyncDisabled"=dword:00000001 | |
"PasswordManagerEnabled"=dword:00000000 | |
"SigninAllowed"=dword:00000000 | |
"HideWebStoreIcon"=dword:00000001 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rem to disable private dns | |
adb shell settings put global private_dns_mode off | |
rem to enable private dns with hostname (example with dns.adguard.com) | |
adb shell settings put global private_dns_mode hostname | |
adb shell settings put global private_dns_specifier dns.adguard.com |