Skip to content

Instantly share code, notes, and snippets.

Github action for creating the release from a tag

Create file .github/workflows/create-release-from-a-tag.yml with the content:

on:
  push:
    # Sequence of patterns matched against refs/tags
    tags:
      - 'release*' # Push events to matching release*, i.e. release-1.0, release-20.15.10, release-2020-10-28-10-26-15

name: Create Release
@udkyo
udkyo / gist:82c250a2f937e8ff58b52f49db14e5ad
Created May 19, 2021 08:39 — forked from Aricg/gist:56f1a769cbdcbb93b459
Enable gerrit replication to github
Gerrit version 2.8
Replication plugin extracted from gerrit.war and installed over ssh
Installation method ->
a) Relevant configs:
/var/lib/gerrit/etc/replication.config
[remote "aricg-compliance"]
url = [email protected]:somerepo/${name}.git
@udkyo
udkyo / make_catalina_iso.sh
Last active March 5, 2020 16:46 — forked from davertay/make_catalina_iso.sh
Catalina ISO for Virtualbox
hdiutil create -o /tmp/Catalina -size 8000m -layout SPUD -fs HFS+J
hdiutil attach /tmp/Catalina.dmg -noverify -mountpoint /Volumes/install_build
sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia --nointeraction --volume /Volumes/install_build
hdiutil convert /tmp/Catalina.dmg -format UDTO -o ~/Downloads/Catalina
mv ~/Downloads/Catalina.cdr ~/Downloads/Catalina.iso
@udkyo
udkyo / make_mojave_iso.sh
Last active March 4, 2020 09:57 — forked from lamlion/make_mojave_iso.sh
Create OSX Mojave ISO
#!/bin/bash
# Install OSX Mojave through App Store. After downloading, the "InstallESD" is automatically mounted, which causes this script to fail.
# Therefore, "/Volumes/InstallESD" should be unmounted before running this script!
# Summary of instructions
#1 Download Mojave from App Store
#2 open terminal and run "umount /Volumes/InstallESD"
#3 make script executable: "chmod +x make_mojave_iso.sh"
#4 Run "./make_mojave_iso.sh"
@udkyo
udkyo / delete_all_awslogs.sh
Created August 11, 2019 09:28 — forked from pahud/delete_all_awslogs.sh.md
delete all aws log groups
aws logs describe-log-groups --query 'logGroups[*].logGroupName' --output table | awk '{print $2}' | grep -v ^$ | while read x; do aws logs delete-log-group --log-group-name $x; done
@udkyo
udkyo / README.md
Created March 27, 2018 08:23 — forked from obscurerichard/README.md
Simulates a low bandwidth, high-latency network connection

slow

This bash script offers quick shortcuts to simulate slower network connections. It is useful when you need to simulate a wireless network on a Linux network server, especially when you are using a virtual machine guest on your local machine or in the cloud.

slow 3G                   # Slow network on default eth0 down to 3G wireless speeds
slow reset                # Reset connection for default eth0 to normal
slow vsat --latency=500ms # Simulate satellite internet  with a high latency
slow dsl -b 1mbps         # Simulate DSL with a slower speed than the default

slow modem-56k -d eth0 # Simulate a 56k modem on the eth1 device. eth0 is unchanged.