Skip to content

Instantly share code, notes, and snippets.

View coreydaley's full-sized avatar
🪐
Working from home

Corey Daley coreydaley

🪐
Working from home
View GitHub Profile
@sanchezl
sanchezl / cleanup-records-sets.sh
Last active January 30, 2020 20:56
Cleanup Route 53 resource record sets when deleting an OpenShift Cluster. Requires `jq` and `aws`.
#!/usr/bin/env bash
cluster_name=$1
hosted_zone_dns_name=$2
hosted_zone_id=$(
aws route53 list-hosted-zones-by-name \
--dns-name ${hosted_zone_dns_name} \
--query HostedZones[0].Id \
--output text
@ryboe
ryboe / .travis.yml
Last active November 23, 2023 05:37
Example .travis.yml for Golang
# use the latest ubuntu environment (18.04) available on travis
dist: bionic
language: go
# You don't need to test on very old versions of the Go compiler. It's the user's
# responsibility to keep their compiler up to date.
go:
- 1.16.x
#!/bin/bash
oc cluster down
docker rm -f bindmountproxy
@SteveBate
SteveBate / struct_to_bytes.go
Created October 2, 2015 14:32
Example of converting a struct to a byte slice, compressing with gzip, and saving to file followed by the reverse process back to a struct
package main
import (
"bytes"
"compress/gzip"
"encoding/gob"
"fmt"
"io/ioutil"
"log"
"os"
@octocat
octocat / .gitignore
Created February 27, 2014 19:38
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active April 25, 2024 06:23
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname