Skip to content

Instantly share code, notes, and snippets.

View michaelkarrer81's full-sized avatar

Michael Karrer michaelkarrer81

View GitHub Profile
@michaelkarrer81
michaelkarrer81 / foo.md
Created June 8, 2022 07:38
mikes test gists

This is a test gist

@michaelkarrer81
michaelkarrer81 / windows_setup.md
Last active November 5, 2021 10:03
[Win11 Setup] Windows 11 Setup and Tools #windows #setup

Windows Setup

Basic setup for windows 11 (will be mostly the same for windows 10 too).

Windows Tools

Tools that i installed immediately

  • 7-Zip
  • Windows Powershell 9 (default is 7)
@michaelkarrer81
michaelkarrer81 / debugging_tricks.js
Created August 27, 2021 12:32
[javascript debugging] javascript debugging and error searchin tipps #javascript #debugging
var foo = document.getElementsByName('form-group-country_id')[0];
console.log('FOO ELEMENT: ', foo)
var observer = new MutationObserver(function(mutations) {
console.log('STYLE CHANGED');
debugger
});
observer.observe(foo, {
attributes: true,
attributeFilter: ['style'] });
@michaelkarrer81
michaelkarrer81 / img_utils.python
Created May 26, 2021 08:30 — forked from dangtrinhnt/img_utils.python
Autorotate and autoresize images in mass with Python and PIL
#!/usr/bin/env python
"""
File: autorotate.py
Origial Author: Damien Riquet <d.riquet@gmail.com>
Current Maintainer: Trinh Nguyen <dangtrinhnt[at]gmail[dot]com>
Description: This script provides an auto-rotate feature of pictures
USAGE: autorotate.py [-h] [--recursive] directory [directory ...]
positional arguments:
@michaelkarrer81
michaelkarrer81 / doodba_cheatsheet.md
Last active September 22, 2022 14:27
[doodba tools] doodba tools and commands #doodba #odoo #docker #invoke #pre-commit

Invoke

Invoke is a Python task execution tool & library. Following the lead of most Unix CLI applications, it offers a traditional flag-based style of command-line parsing, deriving flag names and value types from task signatures (optionally, of course!). Like many of its predecessors, it offers advanced features as well – namespacing, task aliasing, before/after hooks, parallel execution and more.

Get more information at pyinvoke.org

# List all tasks invoke can find in the current direktory (from tasks.py)
invoke --list
# Only show commands that would be executed by called task(s) (dry run)
@michaelkarrer81
michaelkarrer81 / odoo_doodba.sh
Last active March 16, 2021 11:34
[doodba setup] setup odoo in docker containers with doodba #odoo #doodba #docker
# install docker client and docker server on the mac
brew install docker docker machine
# To have launchd start docker-machine now and restart at login:
# brew services start docker-machine
# Or, if you don't want/need a background service you can just run:
# docker-machine start
brew services start docker-machine
# [michaelkarrer@~/odoo-new-setup/install_doodba/doodba_subproject_by_copier (master #)]$ brew services start docker-machine
@michaelkarrer81
michaelkarrer81 / ntp_cheat_sheet.sh
Last active May 28, 2020 08:13
[ntp cheat sheet] Network Time Protocoll Cheat Sheat #ntp #time #saltstack
https://www.redhat.com/en/blog/avoiding-clock-drift-vms
# https://www.ntp.org/
# https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/s1-checking_the_status_of_ntp
# http://www.satsignal.eu/ntp/NTPandMRTG.html
# https://exchange.nagios.org/directory/Plugins/Network-Protocols/NTP-and-Time
# https://www.redhat.com/en/blog/avoiding-clock-drift-vms
@michaelkarrer81
michaelkarrer81 / facebook_api_cheat_sheet.md
Last active February 28, 2024 05:03
[facebook api cheat sheet] Facebook API Cheat Sheet #facebook