Skip to content

Instantly share code, notes, and snippets.

View maelcum's full-sized avatar
💭
Happy.

maelcum

💭
Happy.
View GitHub Profile
@zaufi
zaufi / disable-tasks.cmd
Last active May 29, 2024 08:13
Some tips to minimize "Windows 10 Enterprise 2016 LTSB N (x64)" installation to be used for continuous integration
schtasks /Change /TN "Microsoft\Windows\AppID\SmartScreenSpecific" /Disable
schtasks /Change /TN "Microsoft\Windows\ApplicationData\CleanupTemporaryState" /Disable
schtasks /Change /TN "Microsoft\Windows\ApplicationData\DsSvcCleanup" /Disable
schtasks /Change /TN "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /Disable
schtasks /Change /TN "Microsoft\Windows\Application Experience\ProgramDataUpdater" /Disable
schtasks /Change /TN "Microsoft\Windows\Application Experience\StartupAppTask" /Disable
schtasks /Change /TN "Microsoft\Windows\Autochk\Proxy" /Disable
schtasks /Change /TN "Microsoft\Windows\CloudExperienceHost\CreateObjectTask" /Disable
schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\Consolidator" /Disable
schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask" /Disable
# Use macOS keychain to store AWS access keys
# Alias to return AWS access keys from macOS keychain as input to credential_process
# ~/.aws/cli/alias
keychain =
!f() {
# Pass in aws profile name
# Assumes you are using (default) login keychain
access_key_id=$(security find-generic-password -s "aws profile ${1}" -a "AccessKeyId" -w)
secret_access_key=$(security find-generic-password -s "aws profile ${1}" -a "SecretAccessKey" -w)
@blazewicz
blazewicz / docker-compose-install.sh
Last active January 4, 2024 18:14
Install latest docker-compose on Debian, Ubuntu or Raspberry Pi OS (Raspbian)
#!/bin/bash
set -x
# This script with documentation is available at: https://gist.github.com/blazewicz/04e666ae1f25387c8b291d81b12c550c
## 1. install required dependencies with apt
apt update && apt install python3-venv python3-dev libffi-dev libssl-dev
## 2. create directory for docker-compose's virtualenv
mkdir -p /opt/local/docker-compose