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 / auth-basic.psgi
Last active April 29, 2024 19:45
HTTP Auth-Basic login prompt with Plack Perl web server
use v5.38;
use Plack::Builder;
use Authen::Simple::Passwd;
use Log::Log4perl; # For additional logging from Authen::Simple::Passwd
Log::Log4perl -> easy_init();
builder {
@rwp0
rwp0 / link_gfm.md
Last active April 25, 2024 23:28
GitHub-Flavored Markdown (GFM) Alternative Linking
@rwp0
rwp0 / gist:a896c527971da8742332b6af0314e751
Created April 22, 2024 17:07
GitLab Releases (Tags) RSS
https://gitlab.com/gitlab-org/cli/-/tags?format=atom
@rwp0
rwp0 / for.sh
Created April 17, 2024 19:55
For Loop in Bash
for d in d1 d2 d3; do mkdir -v $d; done
@rwp0
rwp0 / perl.md
Created March 21, 2024 22:33
Determine Perl Module Version in CLI

Command

perl -M IO::Socket::SSL -E "say IO::Socket::SSL -> VERSION()"

Output

2.085
@rwp0
rwp0 / python_data_types.md
Last active February 28, 2024 21:20
Python Data Types

Python Data Types

Composite ones with literal syntax

Ordered and Non-unique

And also slower in large datasets

List

@rwp0
rwp0 / shortcuts.md
Last active February 6, 2024 12:04
Creating Shortcuts on Windows via CLI using VBScript or Git for Windows
@rwp0
rwp0 / perl.md
Last active January 31, 2024 21:06
Put Strawberry Perl in User Path in Windows

See "%userprofile%\Downloads\strawberry-perl-5.38.2.2-64bit-portable\README.txt"

 * If you want to use Strawberry Perl Portable not only from portableshell.bat,
  add c:\myperl\perl\site\bin, c:\myperl\perl\bin, and c:\myperl\c\bin
  to PATH variable
sysdm.cpl.EditEnvrionmentVariables
@rwp0
rwp0 / facebook.md
Created January 31, 2024 19:48
How to Permanently Delete Facebook and Instagram Accounts