Skip to content

Instantly share code, notes, and snippets.

View metaflow's full-sized avatar

Mikhail Goncharov metaflow

  • München
  • 03:09 (UTC +02:00)
View GitHub Profile
@metaflow
metaflow / A1.txt
Last active August 19, 2022 20:23
List of words Goethe (from original pdfs at goethe.de)
eins
zwei
drei
vier
fünf
sechs
sieben
acht
neun
zehn
@metaflow
metaflow / mouse_speed.ahk
Created May 18, 2021 18:22
change mouse speed
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn ; Enable warnings to assist with detecting common errors.
Global SPIProc, User32Module
User32Module := DllCall("GetModuleHandle", Str, "user32", "Ptr")
SPIProc := DllCall("GetProcAddress", "Ptr", User32Module, "AStr", "SystemParametersInfoW", "Ptr")
; Hotkeys are "WIN+F1" and "WIN+F2"
#F1::DllCall(SPIProc, Int, 0x71, Int, 0, UInt, 10, Int, 0) ; 1x
#F2::DllCall(SPIProc, Int, 0x71, Int, 0, UInt, 6, Int, 0) ; 0.5 speed
@metaflow
metaflow / gist:10da86565bc20b947211df3278f8d456
Last active June 28, 2021 11:32
karabiner elements macos switch en/ru/de
{
"title": "switch en/ru/de",
"rules": [
{
"description": "Use alt+shift+4(ru)/5(en)",
"manipulators": [
{
"from": {
"key_code": "5",
"modifiers": {
@metaflow
metaflow / cla.md
Last active April 10, 2021 20:59
Individual Contributor Exclusive License Agreement

Fiduciary License Agreement 2.0

based on the

Individual Contributor Exclusive License Agreement

(including the Traditional Patent License OPTION)

Thank you for your interest in contributing to Mikhail Goncharov's apex legends recoils ("We" or "Us").

@metaflow
metaflow / README.md
Last active November 21, 2020 16:40
crew boardgamearena counter

BGA Crew discard counter

Bookmarklet

Create a new bookmark and replace its URL with one line down below. Click this bookmark when you are in a tab with a Crew game.

One time usage

  • Click in the address bar, replace it with "javascript:"
#!/usr/bin/env python3
from shapely.geometry.polygon import Polygon
from shapely.geometry.multipolygon import MultiPolygon
from shapely.geometry.linestring import LineString
from shapely.affinity import rotate, translate
import shapely
import shapely.ops as ops
import matplotlib.pyplot as plt
import math
@metaflow
metaflow / bash log
Last active May 7, 2020 12:14
re-installing cert manager
kubectl describe certificate -n cert-manager
kubectl rollout restart -n cert-manager deployment/cert-manager
kubectl rollout restart -n cert-manager deployment/cert-manager-cainjector
kubectl rollout restart -n cert-manager deployment/cert-manager-webhook
kubectl describe certificate -n cert-manager
# cert for build.* still not applied
# https://cert-manager.io/docs/installation/uninstall/kubernetes/
kubectl cluster-info
#if defined(LOCAL)
#include "logging.h"
#define L(x...) (debug(x, #x))
#else
#define L(x, ...) (x)
#endif
#include <bits/stdc++.h>
using namespace std;