Skip to content

Instantly share code, notes, and snippets.

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 / prigorod-client.js
Created Jun 8, 2020
API для покупки билетов на электрички РЖД (протестировано на СЗППК)
View prigorod-client.js
import { stringify as qs } from "querystring";
const API_V3_1 = "https://mobile.svrpk.ru/v3.1/api.php";
const API_MOBILE_USERS = "https://mobile.svrpk.ru/mobile_users/api.php";
export default class PrigorodClient {
static getApiToken() {
return fetch(
API_V3_1 +
"?" +
@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

@notpushkin
notpushkin / docker-enhanced-manpages.py
Last active Jun 7, 2020
Enhanced manpage generator for Docker (WIP prototype)
View docker-enhanced-manpages.py
#: Takes data from https://github.com/docker/docker.github.io/blob/master/_data/engine-cli/
#: and produces markdown suitable for conversion to a manpage (e. g. using pandoc).
template = lambda cmd: f"""
%docker-{cmd["command"].replace(" ", "-")}(1)
# NAME
docker {cmd["command"]} - {cmd["short"]}
# SYNOPSIS
View sapper+0.27.12.patch
diff --git a/node_modules/sapper/runtime/app.mjs b/node_modules/sapper/runtime/app.mjs
index 6dd39c7..602bfdf 100644
--- a/node_modules/sapper/runtime/app.mjs
+++ b/node_modules/sapper/runtime/app.mjs
@@ -356,7 +356,7 @@ async function hydrate_target(target)
}
function load_css(chunk) {
- const href = `client/${chunk}`;
+ const href = initial_data.baseUrl + `/client/${chunk}`;
@notpushkin
notpushkin / npmjs-explore.user.js
Last active Apr 9, 2020
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 zoom.redirect.json
{
"createdBy": "Redirector v3.5.3",
"createdAt": "2020-03-31T18:03:46.844Z",
"redirects": [
{
"description": "Zoom → Zoom in-browser call",
"exampleUrl": "https://test.zoom.us/j/1234567890",
"exampleResult": "https://test.zoom.us/wc/join/1234567890",
"error": null,
"includePattern": "(https?://.*\\.zoom\\.us)/j/(.*)",
View invidious.redirector.json
{
"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/(.*)$",
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 starting-owlink.sh
You can’t perform that action at this time.