Skip to content

Instantly share code, notes, and snippets.

@jasonrudolph
jasonrudolph / request.sh
Created April 14, 2015 14:10
Get `starred_at` timestamp for a repository's stargazers via the GitHub API
curl https://api.github.com/repos/atom/atom/stargazers -H 'Accept: application/vnd.github.v3.star+json'
@kizbitz
kizbitz / dockerhub-v2-api-user.sh
Last active April 17, 2023 23:30
Get the list of images and tags for a Docker Hub user account.
#!/bin/bash
# Example for the Docker Hub V2 API
# Returns all imagas and tags associated with a Docker Hub user account.
# Requires 'jq': https://stedolan.github.io/jq/
# set username and password
UNAME=""
UPASS=""
@naesheim
naesheim / buildWhenAffected.sh
Last active November 28, 2022 20:20
CircleCi - only build features that has changed
##################
### config.yml ###
##################
version: 2
jobs:
build:
docker:
- image: circleci/python:3.6
steps:
@innovia
innovia / kubernetes_add_service_account_kubeconfig.sh
Last active January 29, 2024 23:00
Create a service account and generate a kubeconfig file for it - this will also set the default namespace for the user
#!/bin/bash
set -e
set -o pipefail
# Add user to k8s using service account, no RBAC (must create RBAC after this script)
if [[ -z "$1" ]] || [[ -z "$2" ]]; then
echo "usage: $0 <service_account_name> <namespace>"
exit 1
fi
@Snarp
Snarp / google-docs-copy.js
Last active April 9, 2025 16:16
Script to allow copying from a protected Google Doc
/*
<https://stackoverflow.com/questions/40296831/is-it-possible-to-force-a-copy-of-a-protected-google-doc>
NOTE - 2021-05-24
-----------------
The script below isn't the fastest way to copy-and-paste from a protected
Google Doc. Before trying it, I'd suggest following MikoFrosty's advice from
the comments:
@bever1337
bever1337 / windowsBootUSBGuide.md
Last active March 25, 2023 19:12
Creating a Windows 10 bootable USB for PCs using MacOS Catalina and Parallels

Creating a Windows 10 bootable USB for PCs using MacOS Catalina and Parallels

Mac users who want to dual-boot into Windows 10 use the Boot Camp Assistant to create legitimate bootable Windows 10 USBs. Unfortunately, these drives will only work on Mac machines. To create a Windows 10 bootable USB for PCs, some extra work is necessary. I used these steps to create a Windows 10 bootable USB on a macbook pro running Catalina so that I could install Windows 10 on a Lenovo ThinkCentre m900 Tiny.

Downloading and install the required files to your MacOS machine