Skip to content

Instantly share code, notes, and snippets.

View braincow's full-sized avatar
🐮
Off to grind few bytes together and expecting a result of some kind.

Antti Peltonen braincow

🐮
Off to grind few bytes together and expecting a result of some kind.
View GitHub Profile

Keybase proof

I hereby claim:

  • I am braincow on github.
  • I am bcow (https://keybase.io/bcow) on keybase.
  • I have a public key ASDxArxuIRH5D9WesLdFUo8TveP7e3kTBkGWfWuTEPntWwo

To claim this, I am signing this object:

@braincow
braincow / clone_all_from_github_org.sh
Last active April 4, 2019 07:49
clone all github organizations repositories
#!/bin/sh
#
# install jq, curl and obviously git
#
### configuration
# create your github api access token with repo access rights and place it below
GITHUB_AT=
# set the source organization id/name from github below
GITHUB_ORG=
### command
@braincow
braincow / 99-vpn-ipv6-switch
Created July 16, 2019 06:08
NetworkManager dispatcher script for disabling ipv6 when VPN is enabled.
#!/bin/sh
# Network Manager Dispatcher Hook:
# enables/disables ipv6 on vpn-down/vpn-up respectively
#
# Copyright (c) 2017 ooknosi
# Apache License 2.0
# Args
INTERFACE="$1"
ACTION="$2"
@braincow
braincow / fedora-gcp-builder.sh
Created June 17, 2020 16:33
Bash script that when executed as root converts cloud-init version of the Fedora cloud disk image into GCE instance image
#!/bin/bash
# exit on all failures
set -e
FEDORA_VERSION=${1:-32}
BUCKET_NAME=${2:-fedora-$FEDORA_VERSION-custom}
# first detect the filename for the latest RAW image
IMAGE=/tmp/fedora-$FEDORA_VERSION-disk.img