Skip to content

Instantly share code, notes, and snippets.

View buckelij's full-sized avatar

Elijah Buck buckelij

  • GitHub Staff
  • OR, USA
View GitHub Profile
@buckelij
buckelij / graphql-paginate.sh
Created August 30, 2018 20:45
paginate github scim data in bash/curl/jq
#!/bin/bash
# requires `bash, `jq` and `curl`
# set your credentials and org name below
#
# This script paginates the GraphQL API to get all users. It does not check for rate limits
# but sleeps 10 seconds after every call to try to avoid hitting a rate limit.
CREDENTIALS=USERNAME:TOKEN
ORG=YOUR-ORG
CURSOR=null
@buckelij
buckelij / instructions.md
Last active August 1, 2018 22:24 — forked from bitoiu/self-signed-wildcard-cert-for-ghes.md
Self-Signed Wildcard certificate with SAN using openssl / SSL
openssl req \
    -newkey rsa:2048 \
    -x509 \
    -nodes \
    -keyout server.key \
    -new \
    -out server.crt \
 -subj /CN=buckelij-00ccb614a00b9aad6.qaboot.net \
@buckelij
buckelij / Edlin.ps1
Created February 5, 2014 03:30
Edlin
#Edlin line editor
#http://support.microsoft.com/kb/67706
Param(
[string]$filePath
)
$fcontent = ''
function Edlin-List($curlinenum) {
for ( $i = 0; $i -lt 23; $i++ ) {
@buckelij
buckelij / gist:8016541
Last active December 31, 2015 16:49
Fedora Linux 20 x86_64 bcache root
@buckelij
buckelij / openstack-guide.md
Created July 17, 2013 13:42
Notes on Openstack Grizzly on CentOS 6
@buckelij
buckelij / Get-WUInstall.ps1.diff
Last active December 19, 2015 21:29
Diff against 'Windows Update PowerShell Module' to install only 'important' updates
#Has been incorporated upstream
#Diff against 'Windows Update PowerShell Module' by MichalGajda
#Install updates that would appear as 'import' in Windows Update Gui.
#(http://gallery.technet.microsoft.com/scriptcenter/2d191bcd-3308-4edd-9de2-88dff796b0bc/)
#http://gallery.technet.microsoft.com/scriptcenter/Add-Parameter-AutoSelectOnl-1d62a499
# diff -u Get-WUInstall.ps1.orig PSWindowsUpdate/Get-WUInstall.ps1
--- Get-WUInstall.ps1.orig