Skip to content

Instantly share code, notes, and snippets.

View notpushkin's full-sized avatar
🕊️

Alexander Pushkov notpushkin

🕊️
View GitHub Profile
{
"createdBy": "Redirector v3.5.2",
"createdAt": "2020-03-21T16:18:21.901Z",
"redirects": [
{
"description": "Youtube → Invidious",
"exampleUrl": "https://www.youtube.com/watch?v=dvyZfa9x3UU",
"exampleResult": "https://invidio.us/watch?v=dvyZfa9x3UU",
"error": null,
"includePattern": "^https?://(?:www\\.)?youtube\\.com/(.*)$",

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.

function waitForPopupClosed(popup) {
return new Promise((resolve, reject) => {
const popupTick = setInterval(function() {
if (popup.closed) {
clearInterval(popupTick);
resolve();
}
}, 500);
});
}
Python 3.7.3 (default, Apr 3 2019, 05:39:12)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.5.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: dick = {'test1': {1,2,3,4,5,}, 'test2': {6,5,2,4,9,}, 'test3': {1, 4, 6, 9}}
In [2]: set.intersection?
Docstring:
Return the intersection of two sets as a new set.
@notpushkin
notpushkin / soundcloud-dl.md
Last active April 3, 2022 17:47
Manual SoundCloud track download
  1. Prepend https://api.soundcloud.com/resolve?client_id=8bcccc3476eaa137a084c9f0c041915f&url= to your track url
  2. You'll be redirected to track's API page, append /stream before ?client_id

For a more humane experience, try youtube-dl.

Powered by SoundCloud

#!/bin/bash
# Based on https://dockerswarm.rocks/traefik/
# You have to have a docker swarm set up beforehand, try https://dockerswarm.rocks/ for an easy guide
read -p 'Domain: ' -rei "${DOMAIN:-$(hostname)}" DOMAIN; export DOMAIN
read -p 'Email: ' -rei "${EMAIL}" EMAIL; export EMAIL
read -p 'Traefik username: ' -rei "${USERNAME:-admin}" USERNAME; export USERNAME
HASHED_PASSWORD="$(openssl passwd -apr1)"; export HASHED_PASSWORD
read -p 'Consul replicas: ' -rei "${CONSUL_REPLICAS:-0}" CONSUL_REPLICAS; export CONSUL_REPLICAS
read -p 'Traefik replicas: ' -rei "${TRAEFIK_REPLICAS:-1}" TRAEFIK_REPLICAS; export TRAEFIK_REPLICAS
@-moz-document domain("github.com"), domain("gist.github.com") {
.btn[title^="Star "],
.btn[title^="Unstar "] {
font-size: 0;
height: 28px;
display: flex;
align-items: center;
border-radius: 3px;
}
# reboot to recovery and connect via adb shell:
twrp wipe system
twrp wipe data
twrp install /sdcard/lineage-*.zip
twrp remountrw
setprop persist.service.adb.enable 1
setprop persist.service.debuggable 1
setprop persist.sys.usb.config mtp,adb
/* ==UserStyle==
@name Clean style for Encyclopatia
@namespace [email protected]
@version 1.0.0
@author Alexander Pushkov ([email protected])
==/UserStyle== */
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("encyclopatia.ru") {