Skip to content

Instantly share code, notes, and snippets.

View kohlerdominik's full-sized avatar

Dominik Kohler kohlerdominik

  • Lucerne, Switzerland
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kohlerdominik
kohlerdominik / closeApplication.ps1
Created January 5, 2021 15:58
Gracefully terminate applications from powershell
# This script gracefully terminates all processes with the given name (first parameter) when it's run.
# It will also answer to a confirm message, if the process has one, by a given hotkey.
#
#
# signature: closeApplication.ps1 $ProcessName $ConfirmHotkey
#
#
# some simple examples how to use it:
# closeApplications.ps1 'notepad' close all open instances with the process name 'notepad' (you should try this)
# closeApplications.ps1 'winword' '%Y' close all open instances of word and and send ALT+Y if a confirmation window pops up
@kohlerdominik
kohlerdominik / docker-compose.yml
Created April 8, 2021 13:48
Docker Compose for node workspace
# docker-compose run workspace
services:
workspace:
image: node:slim
user: "node"
volumes:
- ${PWD}:/home/node/app:delegated
working_dir: /home/node/app
command: bash
@kohlerdominik
kohlerdominik / bucket-cors.json
Last active March 13, 2024 07:31
Google Cloud Storage Bucket - List all files in the bucket in the Browser (HTML/Javascript)
[
{
"maxAgeSeconds": 60,
"method": [
"GET"
],
"origin": [
"*"
],
"responseHeader": [