Skip to content

Instantly share code, notes, and snippets.

View tst32's full-sized avatar
🎯
Easy 🕺 peasy 💃 lemon 🍋squeezy🎊

tst32

🎯
Easy 🕺 peasy 💃 lemon 🍋squeezy🎊
View GitHub Profile
@tst32
tst32 / readme-not-found-gpg.md
Created January 5, 2023 18:09
how to resolve: public key is not available: NO_PUBKEY 23F3D4EA75716059 (microsoft way)
type -p curl >/dev/null || sudo apt install curl -y
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \
&& sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& sudo apt update \
&& sudo apt install gh -y

@tst32
tst32 / allgistsclone.sh
Created August 31, 2021 12:21
./allgistsclone.sh <repo owner name> -- clone all (visible to your scope public and secret gists)
#!/usr/bin/env bash
args=("$@")
if [ $# -eq 0 ]; then
echo "No arguments supplied, allgistclone.sh is a bash script to clone all available gists given github owner name"
echo "call wuth argument <ownername> or -h|--help option to show usage"
echo "comment to @tst32"
exit 0
fi
repowner=${args[0]}
if [[ $repowner == *"--help"* || $repowner == *"-h"* ]]; then
@tst32
tst32 / allreposclone.sh
Created August 25, 2021 17:50
allreposclone.sh is a bash script to clone all repos given github owner name
#!/usr/bin/env bash
args=("$@")
command -v gh >/dev/null 2>&1 || { echo >&2 "require gh (https://cli.github.com/) tool, but it's not installed. Aborting."; exit 1; }
set -e
if [ $# -eq 0 ]; then
echo "No arguments supplied, allreposclone.sh is a bash script to clone all repos given github owner name"
echo "call wuth argument <ownername> or -h|--help option to show usage"
echo "comment to @tst32"
exit 0
fi
@tst32
tst32 / get-distroIdCodenameVersion.sh
Last active August 19, 2021 12:30
get and export as variables all needed info for distro update repo string, call from .bashrc
#!/usr/bin/env bash
# get and export as variables distroname, codename, releasenum and arch all needed info for distro update repo string, call from .bashrc
export distro=`lsb_release -i 2>/dev/null|awk '{print $3}'`
export codename=`lsb_release -c 2>/dev/null|awk '{print $2}'`
export version=`lsb_release -r 2>/dev/null|awk '{print $2}'`
export arch=`dpkg --print-architecture`
@tst32
tst32 / keybase.md
Created July 21, 2021 09:11
Keybase.io/uyrij

Keybase proof

I hereby claim:

  • I am tst32 on github.
  • I am uyrij (https://keybase.io/uyrij) on keybase.
  • I have a public key ASCqoHz_7CxYF_61em9VNdDxG9FhEVFNz6oKeecCyH02Jwo

To claim this, I am signing this object:

@tst32
tst32 / regions.csv
Last active May 28, 2021 10:28
Регионы РФ, административные, телефонные и бухгалтерские коды. актуально на 2021
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 19 columns, instead of 6. in line 6.
name,type,name_with_type,federal_district,region_code,fias_id,okato,oktmo,tax_office,postal_code,iso_code,timezone,geoname_code,geoname_id,geoname_name,TimeShiftToMoscow,phone_codes,,
Адыгея,Респ,Респ Адыгея,Южный,1,d8327a56-80de-4df2-815c-4f6ab1224c50,79000000000,,100,385000,RU-AD,UTC+3,RU.01,584222,Adygeya Republic,0,877,,
Башкортостан,Респ,Респ Башкортостан,Приволжский,2,6f2cbfd8-692a-4ee4-9b16-067210bde3fc,80000000000,80000000,200,452000,RU-BA,UTC+5,RU.08,578853,Bashkortostan Republic,2,347,,
Бурятия,Респ,Респ Бурятия,Дальневосточный,3,a84ebed3-153d-4ba9-8532-8bdf879e1f5a,81000000000,81000000,300,671000,RU-BU,UTC+8,RU.11,2050915,Buryatiya Republic,5,301,,
Алтай,Респ,Респ Алтай,Сибирский,4,5c48611f-5de6-4771-9695-7e36a4e7529d,84000000000,84000000,400,649000,RU-AL,UTC+7,RU.03,1506272,Altai,4,388,,
Дагестан,Респ,Респ Дагестан,Северо-Кавказский,5,0bb7fa19-736d-49cf-ad0e-9774c4dae09b,82000000000,,500,368000,RU-DA,UTC+3,RU.17,567293,Dagestan,0,872,,
Ингушетия,Респ,Респ Ингушетия,Северо-Кавказский,6,b2d8cd20-cab
@tst32
tst32 / dabblet.css
Last active April 13, 2021 12:37
Checkboxes toggle-2state
/**
* Checkboxes toggle-2state
*/
.checkbox-on-off input[type="checkbox"] {
position: relative;
opacity: 0;
@tst32
tst32 / bylist.svg
Last active April 13, 2021 12:00
Checkboxes - The first commented line is your dabblet’s title
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tst32
tst32 / dabblet.css
Last active March 12, 2021 08:24
The first commented line is your dabblet’s title
/* some star-rating css */
body {
margin: 0;
padding: 25px;
font-family: sans-serif;
}
/* Rating */
.rating {
@tst32
tst32 / extensions.json
Created February 4, 2021 15:38
syncing-gist-for-vscode
[
{
"id": "2gua.rainbow-brackets",
"name": "rainbow-brackets",
"publisher": "2gua",
"version": "0.0.6"
},
{
"id": "abusaidm.html-snippets",
"name": "html-snippets",