Skip to content

Instantly share code, notes, and snippets.

Avatar
🗿
мы ВАЙБИН здесь

Alexander Pushkov notpushkin

🗿
мы ВАЙБИН здесь
View GitHub Profile
@notpushkin
notpushkin / npmjs-explore.user.js
Last active Apr 6, 2021
Redirect from npm's Explore link to https://unpkg.com/browse/*/, which is available for all
View npmjs-explore.user.js
// ==UserScript==
// @name npmjs.com Explore → unpkg.com Browse
// @author Alexander Pushkov <alexander@notpushk.in>
// @version 2
// @grant none
// @include http://npmjs.com/package/*
// @include https://npmjs.com/package/*
// @include http://www.npmjs.com/package/*
// @include https://www.npmjs.com/package/*
// ==/UserScript==
View ee-startup-visa-questionnaire.md

These are the questions asked when you apply for an Estonian Startup Visa program.

Intro

Welcome to Startup Committee. You will be guided through the application process.

If you already have a company profile in Startup Includer, it will take only few clicks to share the data.

View openpgp.md
@notpushkin
notpushkin / pomflify.py
Last active Jan 30, 2021
Use Netlify as a personal pomf / dropbox
View pomflify.py
#!/usr/bin/env python3
"""
Usage:
pomflify.py inputfile [filename for url]
pomflify.py '~/Music/Empty streets.flac' "$(pwgen 6 1).flac"
Author: Alexander Pushkov <alexander@notpushk.in>
License: ISC (https://opensource.org/licenses/ISC)
"""
import os
View apt-key but it is bash one-liner.md

Do not use apt-key add.

apt-key add [filename]

Note: Instead of using this command a keyring should be placed directly in the /etc/apt/trusted.gpg.d/ directory with a descriptive name and either "gpg" or "asc" as file extension.
    — apt-key(8) manpage

@notpushkin
notpushkin / bpmtools.py
Created Dec 23, 2020
Double or halve stepchart BPM
View bpmtools.py
def to_pairs(xs):
seq = iter(xs)
while True:
try:
x = next(seq)
except StopIteration:
return
try:
y = next(seq)
except StopIteration:
@notpushkin
notpushkin / iceobs.sh
Last active Sep 23, 2020
A script for streaming from OBS Studio (https://obsproject.com/) to Icecast2
View iceobs.sh
ICE_HOST="example.net"
ICE_PORT="8000"
ICE_PASS="hackme"
ICE_MOUNT="/obs.ogg"
FILE="/tmp/iceobs.ogg.sock"
# Requirements: obs oggfwd
rm -f $FILE
mkfifo $FILE
View PGP identity proof.md

The claim that my PGP signature has the same power as my DigiDoc signature is hereby revoked.

-----BEGIN PGP MESSAGE-----

owGbwMvMwMVopi4lW2HNfoTxdEoSQ3yonH9IRqpCck5iZq5CSUZiiUJupUKAe4BC
cWZ6XmJJaVGqQkZiMVAmVaE4MTdVoSC/PLVIASgCVOaSmZ7pkp+MpDSzWCEjtSg1
qVKhKLUsPzs1RY+rk9GYhYGRi0FWTJHl9tuCti9pWkfnrTIxhTmDlQnohhAGLk4B
mEhsAwfDviVczhflNliUuFcnGfLfkVvWurulO/PAqV+689+22ESeyoyZXNp8otV5
bUlc4661W3+58t286MCoNJmhuffJ01VrJP18NO5l+7Z57Tl/4vp81kliDdzJKonv
View ovsx-mirror.sh
TOKEN="" # get yours at https://open-vsx.org/user-settings/tokens
temp_file="$(mktemp)"
namespace="${1?usage\: $(basename $0) NAMESPACE PACKAGE_NAME}"
package_name="${2?usage\: $(basename $0) NAMESPACE PACKAGE_NAME}"
version="$(curl "https://vscode-marketplace-api.herokuapp.com/${namespace}/${package_name}" | jq -r .Version)"
echo "https://marketplace.visualstudio.com/_apis/public/gallery/publishers/${namespace}/vsextensions/${package_name}/${version}/vspackage"
curl --compressed "https://marketplace.visualstudio.com/_apis/public/gallery/publishers/${namespace}/vsextensions/${package_name}/${version}/vspackage" > "${temp_file}"
@notpushkin
notpushkin / README.md
Last active Jun 18, 2020
Docker OpenAPI schema converted from https://docs.docker.com/engine/api/v1.40.yaml for use with Swagger UI
View README.md

Open with Swagger UI: v1.40