Skip to content

Instantly share code, notes, and snippets.

View greenchapter's full-sized avatar
👨‍💻
On focus

Thomas Ott greenchapter

👨‍💻
On focus
View GitHub Profile
@CombinedEffort
CombinedEffort / readme.en.md
Last active January 28, 2024 20:58
How to run Windows 11 on ARM in QEMU 6.1 on Apple Silicon Mac

How to run Windows 11 on ARM in QEMU 6.1 on Apple Silicon Mac

  1. Follow the excellent gist here, up to and including step 7 : https://gist.github.com/niw/e4313b9c14e968764a52375da41b4278

  2. I converted my VHDX to qcow2 - I doubt if that's significant, but YMMV:

./qemu-img convert -p -O qcow2 ~/Windows11_InsiderPreview_Client_ARM64_en-us__22454-orig.VHDX Windows11.img
  1. Run qemu with a slightly modified command-line. It may not be the most efficient, but it worked for me:
@kevinkub
kevinkub / incidence.js
Last active June 27, 2023 12:53
COVID-19 Inzidenz-Widget für iOS innerhalb Deutschlands 🇩🇪
// Licence: Robert Koch-Institut (RKI), dl-de/by-2-0
class IncidenceWidget {
constructor() {
this.previousDaysToShow = 31;
this.apiUrlDistricts = (location) => `https://services7.arcgis.com/mOBPykOjAyBO2ZKk/arcgis/rest/services/RKI_Landkreisdaten/FeatureServer/0/query?where=1%3D1&outFields=RS,GEN,cases7_bl_per_100k,cases7_per_100k,BL&geometry=${location.longitude.toFixed(3)}%2C${location.latitude.toFixed(3)}&geometryType=esriGeometryPoint&inSR=4326&spatialRel=esriSpatialRelWithin&returnGeometry=false&outSR=4326&f=json`
this.apiUrlDistrictsHistory = (districtId) => `https://services7.arcgis.com/mOBPykOjAyBO2ZKk/ArcGIS/rest/services/Covid19_hubv/FeatureServer/0/query?where=IdLandkreis%20%3D%20%27${districtId}%27%20AND%20Meldedatum%20%3E%3D%20TIMESTAMP%20%27${this.getDateString(-this.previousDaysToShow)}%2000%3A00%3A00%27%20AND%20Meldedatum%20%3C%3D%20TIMESTAMP%20%27${this.getDateString(1)}%2000%3A00%3A00%27&outFields=Landkreis,Meldedatum,AnzahlFall&outSR=4326&f=json`
this.stateToAbbr = {
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDfu+W+5Q2KTOPbcsfaY4T4LuOng9imtflQ+z2eW9vLmaugJjHAyzn+znT9DeT2sfh42BXSmbCK2bRbIsidOiTlUf36GIrAqA60HNRQZEwzqc/6z2QipKll948VONsPIEiyKnXJ53wDmYJk12v/GKAm7WbxDWhMjNExTniWDjEAwObyHHqpXoz/uMcvyDdfTG/gcGbMPMpqagUSA0gT64D3mSGHFzjVHZSlzCWrvTgRZoOu5hvwsHFLz4RiDLzw+1H0EAhNZYcgb4U3rlLGvCpqcvPkNf90HXHzZPDN8xrSQnC+gqE1hmjQMl8UIMtVRnUuhAbtCmtMU4uD+wl9MFWCjDiZPPxxDa0/xiTrPmwELWVBoLGSuJKuqA1LY25OQrMKIMwRrn7+OVDhnh10tKGS0caIyN8fYmKpLma4GCFnDPEMJJx9TmVmwgeLhErqpcCE21TQb3yzoKT8n80wTs4nL5LveK5ODIHVCM2kTW3Z/CsQ7G7LkCFS/HNlgCLVPOnaZT0XFYLkWmKudzqiMHAm/iDPc2xVpyVAgjbw5IvRq1yNcMubLYcyAN4In78o/PZeo+kR/+RhTvWy8u8TgM/PD9OaBsG6tg90ltv85m57Hb78i9eKkO6Quj9RSp96iEoCDtBjibwGLULWTI8bVp2YnhBNBLeAwwg8lSrFCRoNtQ== thomas.ott@greenchapter.de

Fixing macOS 10.14, 10.15, 12

Dark main menu without the rest of dark mode

  1. Set Light mode
  2. defaults write -g NSRequiresAquaSystemAppearance -bool Yes
  3. Log out and log back in
  4. Set Dark mode
@snormore
snormore / README.md
Last active February 29, 2024 06:29
Deploying a web app to Kubernetes with SSL using Let's Encrypt via cert-manager and nginx-ingress.

Deploying a web app to Kubernetes with SSL using Let's Encrypt via cert-manager and nginx-ingress

Spin up a Kubernetes cluster

You can do this with MiniKube for development and testing, or Google Cloud's GKE for the real thing.

MiniKube

# Make sure you have MiniKube installed and it's the latest
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active September 23, 2024 09:08
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@skippednote
skippednote / setup-tor.md
Last active September 16, 2024 12:29
Setup Tor on macOS

Setup One: Buy a Mac if you don't have one.

Setup Two: Install Homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Setup Three:

@michaelneu
michaelneu / Dockerfile
Last active October 17, 2022 05:37
docker-compose configuration for PHP with NGINX and MySQL, including sendmail, MailDev and phpmyadmin
# see https://github.com/cmaessen/docker-php-sendmail for more information
FROM php:5-fpm
RUN apt-get update && apt-get install -q -y ssmtp mailutils && rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-install mysql mysqli sysvsem
RUN pecl install xdebug-2.5.5 \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
@celso
celso / init.vim
Last active March 8, 2024 18:31
Neovim setup for OSX users
syntax on
set ruler " Show the line and column numbers of the cursor.
set formatoptions+=o " Continue comment marker in new lines.
set textwidth=0 " Hard-wrap long lines as you type them.
set modeline " Enable modeline.
set esckeys " Cursor keys in insert mode.
set linespace=0 " Set line-spacing to minimum.
set nojoinspaces " Prevents inserting two spaces after punctuation on a join (J)
" More natural splits
set splitbelow " Horizontal split below current.
@dbiesecke
dbiesecke / movies.m3u
Last active December 30, 2023 18:06
pvr.iptvsimple iptvde.m3u
#EXTINF: tvg-logo="https://goo.gl/bi9htU",The Whistleblower
http://vodo.janokoro.org/hls/Movie-A8000/Germany/thewhistleblower/thewhistleblower.mkv.mp4/index.m3u8
#EXTINF: tvg-logo="https://goo.gl/bi9htU",Hunter's Prayer
http://vodo.janokoro.org/hls/Movie-A8000/Germany/huntersprayer/huntersprayer.mkv.mp4/index.m3u8
#EXTINF: tvg-logo="https://goo.gl/bi9htU",16 Blocks
http://vodo.janokoro.org/hls/Movie-A8000/Germany/16blocks/16blocks.mkv.mp4/index.m3u8
#EXTINF: tvg-logo="https://goo.gl/bi9htU",Lost City Raiders
http://vodo.janokoro.org/hls/Movie-A8000/Germany/Lost_City_Raiders_2008/Lost_City_Raiders_2008.mkv.mp4/index.m3u8
#EXTINF: tvg-logo="https://goo.gl/bi9htU",The Devil's Violinist
http://vodo.janokoro.org/hls/Movie-A8000/Germany/thedevilsviolinist/thedevilsviolinist.mkv.mp4/index.m3u8