Skip to content

Instantly share code, notes, and snippets.

View martwz's full-sized avatar
🤖
the singularity is nearer

Martin martwz

🤖
the singularity is nearer
View GitHub Profile
@martwz
martwz / mitosis_log.txt
Created December 19, 2022 00:35
mitosis
✗ docker run --rm -it node:alpine ash
/ # apk add git
fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz
(1/7) Installing ca-certificates (20220614-r2)
(2/7) Installing brotli-libs (1.0.9-r9)
(3/7) Installing nghttp2-libs (1.51.0-r0)
(4/7) Installing libcurl (7.86.0-r1)
(5/7) Installing libexpat (2.5.0-r0)
(6/7) Installing pcre2 (10.42-r0)
@martwz
martwz / keybase.md
Created October 9, 2022 22:35
keybase.md

Keybase proof

I hereby claim:

  • I am martwz on github.
  • I am martinxd (https://keybase.io/martinxd) on keybase.
  • I have a public key whose fingerprint is 7131 36C0 70D8 64C7 5703 EA35 46AE D4A4 9C81 B3E1

To claim this, I am signing this object:

@martwz
martwz / symlink-vscode-insider.sh
Created April 4, 2019 16:32
Share extensions and settings with VS Code stable and insider build
@martwz
martwz / keybase.md
Created March 12, 2019 03:03
keybase.md

Keybase proof

I hereby claim:

  • I am martinxxd on github.
  • I am martinxd (https://keybase.io/martinxd) on keybase.
  • I have a public key ASBEGGXHwPqyX3lkc88r3QAHiS7K-fFjCPtL2ogtY1bjGAo

To claim this, I am signing this object:

@martwz
martwz / example.com
Created November 18, 2018 22:50 — forked from 1hakr/example.com
Supercharge your NGIX config
proxy_cache_path /tmp/cacheapi levels=1:2 keys_zone=microcacheapi:100m max_size=1g inactive=1d use_temp_path=off;
server {
listen 443 ssl http2 default_server;
listen [::]:443 ssl http2 default_server;
server_name example.com;
location /api/ {
# Rate Limiting
limit_req zone=reqlimit burst=20; # Max burst of request
#!/bin/bash
VIDEOS=~/Desktop/Wedding/
find "$VIDEOS" -name '*.mp4' -exec sh -c 'avconv -i "$0" -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis "${0%%.mp4}.webm"' {} \;
find "$VIDEOS" -name '*.mkv' -exec sh -c 'avconv -i "$0" -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis "${0%%.mkv}.webm"' {} \;
find "$VIDEOS" -name '*.avi' -exec sh -c 'avconv -i "$0" -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis "${0%%.avi}.webm"' {} \;
find "$VIDEOS" -name '*.AVI' -exec sh -c 'avconv -i "$0" -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis "${0%%.AVI}.webm"' {} \;
find "$VIDEOS" -name '*.MPG' -exec sh -c 'avconv -i "$0" -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis "${0%%.MPG}.webm"' {} \;
find "$VIDEOS" -name '*.wmv' -exec sh -c 'avconv -i "$0" -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis "${0%%.wmv}.webm"' {} \;
find "$VIDEOS" -name '*.MOV' -exec sh -c 'avconv -i "$0" -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis "${0%%.MOV}.webm"' {} \;
find "$VIDEOS" -name '*.mov' -exec sh -c 'avconv -i "$0" -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis "${0%%.mov}