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 / convert.puttygen.bat
Last active May 20, 2024 19:02
Convert PPK to id_rsa with puttygen (GUI)
puttygen putty.ppk
rem PuTTYgen has a GUI with multiple conversion options
rem https://superuser.com/questions/232362/how-to-convert-ppk-key-to-openssh-key-under-linux
rem https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
rem https://the.earth.li/~sgtatham/putty/0.80/htmldoc/Chapter8.html#puttygen-cli
@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 / config.yml
Last active February 22, 2024 16:06
GH CLI Transfer Repository Ownership Alias
# ~/.config/gh/config.yml
# What protocol to use when performing git operations. Supported values: ssh, https
git_protocol: https
# What editor gh should run when creating issues, pull requests, etc. If blank, will refer to environment.
editor:
# When to interactively prompt. This is a global config that cannot be overridden by hostname. Supported values: enabled, disabled
prompt: enabled
# A pager program to send command output to, e.g. "less". Set the value to "cat" to disable the pager.
pager:
@rwp0
rwp0 / shortcuts.md
Last active February 6, 2024 12:04
Creating Shortcuts on Windows via CLI using VBScript or Git for Windows