Skip to content

Instantly share code, notes, and snippets.

View rwp0's full-sized avatar
📚
On one's own way, at one's own pace…

Elvin Aslanov rwp0

📚
On one's own way, at one's own pace…
View GitHub Profile
@rwp0
rwp0 / perl.sh
Last active February 13, 2023 07:03
Print Specific Line Contents in File
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#$.
@rwp0
rwp0 / dns.md
Last active January 23, 2023 10:26
Perl NS Query with Net::DNS
@nebriv
nebriv / DDM2.0.md
Last active June 27, 2025 13:11
Dell Display Manager 2.0 command line documentation

Dell Display Manager 2.0 Command Line

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

@Ovid
Ovid / perlclasstut.pod
Last active December 6, 2022 10:40
Corinna Class Tutorial
@rwp0
rwp0 / .emacs
Created July 15, 2022 21:05
Emacs: make-backup-files
(setq make-backup-files nil)
; https://stackoverflow.com/questions/151945/how-do-i-control-how-emacs-makes-backup-files
@rwp0
rwp0 / .tmux.conf
Last active August 15, 2023 09:24
My TMUX Configuration
# -*- 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'"
@shaoran
shaoran / gist:1db4ed8bba8bc054cd31e2ea05a668d1
Last active September 27, 2023 10:54 — forked from zfwf/gist:64695924cb0941089f8163e73cfad209
NetworkManager tls-cipher=DEFAULT:@SECLEVEL=0
# 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
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
@sharunkumar
sharunkumar / adb-dns.bat
Created February 7, 2020 07:08
Enabling / Disabling private DNS in android via ADB
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
@Ovid
Ovid / cor.md
Last active September 12, 2021 08:02
Cor—A minimal object system for the Perl core

NAME

Cor — A minimal OO proposal for the Perl core

VERSION

This is version 0.10 of this document.

AUTHOR