Skip to content

Instantly share code, notes, and snippets.

View paolomainardi's full-sized avatar

Paolo Mainardi paolomainardi

View GitHub Profile
@emilorol
emilorol / bootable-win10.sh
Last active October 31, 2025 19:39
Windows 10 ISO to bootable USB in MacOS (balenaEtcher, Rufus and Unetbooting alternative)
# inspiration from here as I was looking for an alternative to balenaEtcher, Rufus and Unetbooting
#
# https://forums.balena.io/t/missing-partition-table-issue/175129/10
#
# there is a single file sources/install.wim that is larger than 4GB
# and the FAT32 file system has an issue with that, so we will use this
# to split it into chunks that are less than 4 GB each
brew install wimlib
# check the file name of the ISO downloaded from microsoft.com
@eagleusb
eagleusb / readme.md
Last active June 17, 2023 09:10
High Quality Linux Sound :)

HQLS

High Quality Linux Sound is just my memo about Linux sound stack configuration, as:

  1. I never remember all the tools to configure (ALSA, PulseAudio...)
  2. I never remember the correct parameter(s)
  3. It must be automated

ALSA

PulseAudio

@hakanilter
hakanilter / ecs-run-and-wait.sh
Last active December 7, 2023 16:50
AWS ECS run task and wait for the result
# Requies JSON as the output format and "jq" commandline tool
# If task runs successfuly, exits 0
run_result=$(aws ecs run-task \
--cluster ${CLUSTER} \
--task-definition ${TASK_DEFINITION} \
--launch-type EC2 \
--overrides "${OVERRIDES}")
echo ${run_result}
container_arn=$(echo $run_result | jq -r '.tasks[0].taskArn')
aws ecs wait tasks-stopped \
@ahmetb
ahmetb / gcrgc.sh
Last active March 10, 2025 21:51
Script to clean up Google Container Registry images pushed before a particular date
#!/bin/bash
# Copyright © 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software