Skip to content

Instantly share code, notes, and snippets.

View 1nVitr0's full-sized avatar

Aram Becker 1nVitr0

  • Konsolenkost GmbH
  • Berlin
View GitHub Profile
@1nVitr0
1nVitr0 / compareTypes.ts
Created March 13, 2021 13:41
Compare new inbuilt typings with previous @types/puppeteer typings
// Utility Types
type Missing<A, B> = Omit<A, keyof B>;
type Extends<A, B extends A> = 1;
import {
Accessibility as TypesAccessibility,
BoundingBox as TypesBoundingBox,
BoxModel as TypesBoxModel,
Browser as TypesBrowser,
BrowserContext as TypesBrowserContext,
@1nVitr0
1nVitr0 / Microsoft.PowerShell_profile.ps1
Last active April 10, 2022 21:01
Powershell - pretty shortened prompt
$SHORTENED_DIRS = [PSCustomObject]@{
'A:'='A';'B:'='B';'C:'='C';'D:'='D';'E:'='E';'F:'='F';'G:'='G';'H:'='H';'I:'='I';'J:'='J';'K:'='K';'L:'='L';'M:'='M';
'N:'='N';'O:'='O';'P:'='P';'Q:'='Q';'R:'='R';'S:'='S';'T:'='T';'U:'='U';'V:'='V';'W:'='W';'X:'='X';'Y:'='Y';'Z:'='Z'
AppData='AppData'
Documents='Docs'
projects='proj'
Images='Imgs'
Downloads='Dwnlds'
Pictures='Pics'
Videos='Vids'
@1nVitr0
1nVitr0 / RandomLetters.jsx
Last active September 25, 2019 19:49
Photoshop Script to generate a random letter pattern. Includes a generous option dialog.
/**
* Created by Aram Becker - 09/25/2019
* You are free to use and modify this by any means, but it would be great
* if you would credit me.
*
* http://arambecker.de
**/
function coupleSlider(slider, box, round) {
round = typeof round == "number" ? Math.pow(10, round) : 100;
@1nVitr0
1nVitr0 / dark-calibre-style.css
Created March 16, 2019 12:04
Minimal dark mode for calibre. Works by inverting the luminance for everything except images.
body {
background: #1e1e1e;
filter: invert(1) hue-rotate(180deg);
}
img {
filter: invert(1) hue-rotate(180deg);
}
@1nVitr0
1nVitr0 / omniwheel.scad
Last active February 28, 2018 19:50
Customizable SCAD Model of an Omniwheel with spaces to attach ball bearings or similar as secondary wheels
innerWheelSize=60/2;
wheelThickness=3;
spokeHeight=7;
spokeWidth=2;
boltInner=3/2;
boltDistance=3;
boltSlopeLength=5;
boltSides=6;
@1nVitr0
1nVitr0 / autocollection.sh
Last active April 10, 2022 21:01
Shell Script for automatically creating file collections, e.g. for games
# Shell script for automatically creating file collections
# initally written to reduce the number of games when downloading
# retropie rom collections
#!/bin/bash
version="0.3.1"
collection=()
collectionname=""
collsize=0