Skip to content

Instantly share code, notes, and snippets.

View hoshsadiq's full-sized avatar

Hosh hoshsadiq

  • 127.0.0.1
View GitHub Profile
@hoshsadiq
hoshsadiq / github-pr-hide-unchanged-tfc-checks.user.js
Created April 14, 2021 17:20
Hide unchanged TFC checks in GitHub PRs
// ==UserScript==
// @name GitHub TFC hide unchanged checks
// @author @hoshsadiq
// @website https://github.com/hoshsadiq/tfc-github-hide-unchanged-tickets
// @namespace https://github.com/hoshsadiq/tfc-github-hide-unchanged-tickets
// @license MIT
// @description Will hide all unchanged TFC checks on a GitHub PR
// @version 0.1.0
// @include https://github.com/*/*/pull/*
// ==/UserScript==
@hoshsadiq
hoshsadiq / aws-saml-auto-submit.js
Last active August 14, 2020 12:01
User Scripts
// ==UserScript==
// @name AWS SAML login auto-submit
// @namespace https://gist.github.com/hoshsadiq/aws-saml-auto-submit
// @match https://signin.aws.amazon.com/saml
// @grant none
// @version 1.0
// @author hoshsadiq
// @description Automatically submit the form when a role is selected on the AWS SAML login page.
// ==/UserScript==
#!/usr/bin/env bash
set -euxo pipefail
umount /tmp/mnt || true
losetup --detach /dev/loop0 || true
rm -rf root.img || true
# create an empty image
dd if=/dev/zero of=root.img seek=256M bs=1 count=0

Keybase proof

I hereby claim:

  • I am hoshsadiq on github.
  • I am cavemandroid (https://keybase.io/cavemandroid) on keybase.
  • I have a public key ASAnr01_jJfxSuruRN_8l7ClYP0TdiXOaEKwMZwG4IfYmAo

To claim this, I am signing this object: