Skip to content

Instantly share code, notes, and snippets.

# Adds Gnome/Cosmic shortcuts for:
# - switching between workspaces with Super+<number>
# - moving apps to workspaces with Super+Shift+<number>
gsettings set org.gnome.mutter dynamic-workspaces false
gsettings set org.gnome.desktop.wm.preferences num-workspaces 10
gsettings set org.gnome.shell.keybindings switch-to-application-1 []
gsettings set org.gnome.shell.keybindings switch-to-application-2 []
gsettings set org.gnome.shell.keybindings switch-to-application-3 []
gsettings set org.gnome.shell.keybindings switch-to-application-4 []
gsettings set org.gnome.shell.keybindings switch-to-application-5 []
#!/bin/bash
# #####################################
# Script: Plex Preloader v0.9
# Description: Preloads the recent video files of a specific path into the RAM to bypass HDD spinup latency
# Author: Marc Gutt
#
# Changelog:
# 0.9
# - Preloads only subtitle files that belong to preloaded video files
# 0.8

Keybase proof

I hereby claim:

  • I am maximuskowalski on github.
  • I am matthewbarger (https://keybase.io/matthewbarger) on keybase.
  • I have a public key ASCbSgzsieDiPFoTyWfARvlQZ9UP99blDd2cIaI6j4053wo

To claim this, I am signing this object:

@maximuskowalski
maximuskowalski / install-choco-script.bat
Last active January 31, 2023 08:43 — forked from zaccb/install-choco-script.bat
Chocolatey install script
:: Install choco .exe and add choco to PATH
:: @powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
:: Install choco GUI
choco install chocolateygui -fy
:: Install all the packages
:::: Browsers
choco install googlechrome -fy
choco install firefox -fy
choco install vivaldi -fy
@maximuskowalski
maximuskowalski / create_service.sh
Created April 29, 2019 22:51 — forked from DashLt/create_service.sh
Quickly make 100 service accounts and generate keys for them
#!/bin/bash
# requires gcloud command line tools; go to https://cloud.google.com/sdk/docs/quickstarts to get them
# max 100 service accounts per project
# run gcloud init --console-only first and select a project
KEYS_DIR=keys
for name in service{1..100}; do echo $name; done | parallel --citation -j100 gcloud iam service-accounts create {}
for name in $(gcloud iam service-accounts list --format='value(email)'); do echo $name; done | parallel --citation -j100 gcloud iam service-accounts keys create $KEYS_DIR/{}.json --iam-account={}
gcloud iam service-accounts list --format='value(email)'