Skip to content

Instantly share code, notes, and snippets.

View 343max's full-sized avatar
🌻

Max von Webel 343max

🌻
View GitHub Profile
import { SessionConfig } from "@appetize/playwright/dist/core/session"
import { defineConfig } from "@playwright/test"
const androidConfig: SessionConfig = {
publicKey: process.env.APPETIZE_PUBLIC_KEY,
device: "pixel6",
osVersion: "13",
}
const iosConfig: SessionConfig = {
@343max
343max / id_rsa.pub
Created April 21, 2023 08:14
my public key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC0hsnHit1BP/miCXQiOX8/51Yvu+VVO16wiQ/dGCJwWLaEu5PHi/U9kKtcUgssQEuu9VKTvz9LoScCGp8F1fYYIYnsBGHNFSM6O6mOnWvFXn5GSeD3qXMqPLRrnGg55UJKGL4688XCaPSySRyENDjqU4iRLfdw20R549eRjC2MJUsyV/ughr+7guEzuEt6LEJY8QWamWSDNzMvguyN7vKDjlDXA2iOXnzDqBGEkcKpsR0HmO1piv/pk8sx0GRXhuxavyI5c5gwRyJNhJxqbpvNnCsVC5aCIbZgffgICW8ym+Ic936QjcqZE+z2fvlu2BQwiXXv1U5yYTZ0vbY7DNBx2CAd4g56sWTNrJhBvqneiaErT8dd8NubKttax/IDTmf80s46spD3O7DGA32YR16A8CWlq1XoM+A/FX305DAIDiGRMIckdnmCkulClZMdKfs2CbiUgmk7r6J6XIZPmtLVgDP6qnoE+EjKyUOgFsh2eUp380kP/qu9PXEOpeQFJG0= max@Maxs-MacBook-Air.local
@343max
343max / README.md
Last active October 8, 2021 11:32
HammerSpoon script to toggle the mic in google meet meeting in chrome
  • get hammersponn: brew install --cask hammerspoon
  • drop the file into yout init.lua dir
  • import & bind in your init.lua:
local toggleGoogleMeetMic = require('google-meet-mic')
hs.hotkey.bind({"shift"}, "F16", toggleGoogleMeetMic)
@343max
343max / code
Last active September 16, 2020 14:45
for all those people who use VSCode Insiders normally to switch very quickly to the stable version when needed just by launching VSCode stable
#!/usr/bin/env bash
# use VSCode Insiders by default, but not if VSCode Stable is already running
# [V] is neccessary so grep doesn't find itself...
VS_IS_RUNNING=$(ps -A | grep "/[V]isual Studio Code.app/Contents/MacOS/Electron" | wc -l)
if [ $VS_IS_RUNNING -ne 0 ]; then
/usr/local/bin/code "$@"
else
@343max
343max / gist:88ffb373a22a91a33d3df9d91d37de67
Created April 1, 2019 09:22
iTerm2 shell integration help
The next time you log in, shell integration will be enabled.
You will also have these commands:
imgcat filename
Displays the image inline.
imgls
Shows a directory listing with image thumbnails
it2attention start|stop|fireworks
Gets your attention
it2check

Keybase proof

I hereby claim:

  • I am 343max on github.
  • I am 343max (https://keybase.io/343max) on keybase.
  • I have a public key whose fingerprint is 5154 0F12 B554 DE60 4680 90E0 BD2D 1678 26AE 2EAD

To claim this, I am signing this object:

@343max
343max / image.py
Created June 17, 2013 14:41 — forked from phughes/image.py
import os.path as path
import string
import argparse
import glob
import re
def basename(filename):
base = filename
if filename.find('@2x') > 0:
base = filename[:filename.find('@2x')]