Skip to content

Instantly share code, notes, and snippets.

@ChrisMcKee
ChrisMcKee / kubernetes-dashboard.md
Last active October 30, 2018 13:34 — forked from superseb/README.md
Deploy kubernetes-dashboard on Rancher 2.0 cluster exposed using NodePort

Deploy kubernetes-dashboard on Rancher 2.0 cluster exposed using NodePort

Requirements

Step 1: Generate kubeconfig from the UI

Generate the kubeconfig file for your cluster using the Kubeconfig File button in the Cluster view of your cluster. Save the generated file as $HOME/.kube/config and run kubectl get nodes to verify it works.

@ChrisMcKee
ChrisMcKee / Breach Compilation (1.4 billion credentials) in Postgres.md
Created October 26, 2018 12:22 — forked from spacepatcher/Breach Compilation (1.4 billion credentials) in Postgres.md
This gist is a simple guide of effective storing 1.4 billion email and password pairs in PostgreSQL for fast searching and reducing required storage space

What would you need:

Hardware requirements

#!/bin/bash
#############################################################################################################
# .NET Performance Data Collection Script
#############################################################################################################
#############################################################################################################
#
# ***** HOW TO USE THIS SCRIPT *****
#
@ChrisMcKee
ChrisMcKee / BuildWarningReportGenerator.ps1
Last active August 2, 2019 10:41 — forked from tarwn/BuildWarningReportGenerator.ps1
Powershell script for TeamCity build warnings (fixed for 2018 / removed guest from end of urls used to fetch last builds log file)
Param
(
[parameter(Mandatory=$true)][string]
$BuildLogPath,
[parameter(Mandatory=$true)][string]
$BuildCheckoutDirectoryPath,
[parameter()][string]
$BuildArtifactRepositoryUrl
#!/bin/bash
curl_check ()
{
echo "Checking for curl..."
if command -v curl > /dev/null; then
echo "Detected curl..."
else
echo "Installing curl..."
apt-get install -q -y curl
using Microsoft.Win32;
using System;
namespace System.Diagnostics
{
/// <summary>
/// Provides a set of methods and properties that you can use to accurately measure elapsed time.
/// </summary>
/// <filterpriority>1</filterpriority>
public class Stopwatch
@ChrisMcKee
ChrisMcKee / installpackerterraform.sh
Last active June 6, 2022 18:42
hashicorp terraform packer
#!/bin/bash
cd /tmp
sudo apt-get install --assume-yes jq > /dev/null
terraform_url="https://releases.hashicorp.com/terraform/$(curl -s https://checkpoint-api.hashicorp.com/v1/check/terraform | jq -r -M '.current_version')/terraform_$(curl -s https://checkpoint-api.hashicorp.com/v1/check/terraform | jq -r -M '.current_version')_linux_amd64.zip"
packer_url="https://releases.hashicorp.com/packer/$(curl -s https://checkpoint-api.hashicorp.com/v1/check/packer | jq -r -M '.current_version')/packer_$(curl -s https://checkpoint-api.hashicorp.com/v1/check/packer | jq -r -M '.current_version')_linux_amd64.zip"
@ChrisMcKee
ChrisMcKee / install_packer_vagrant.md
Last active February 13, 2018 15:14 — forked from knu2xs/install_packer_vagrant.md
Packer + Vagrant on Ubuntu 16.04.1 LTS
@ChrisMcKee
ChrisMcKee / docker-destroy-all.sh
Created February 1, 2018 13:20 — forked from JeffBelback/docker-destroy-all.sh
Destroy all Docker Containers and Images
#!/bin/bash
# Stop all containers
docker stop $(docker ps -a -q)
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)

Keybase proof

I hereby claim:

  • I am chrismckee on github.
  • I am chrismckee (https://keybase.io/chrismckee) on keybase.
  • I have a public key ASCZSZMlW-vjQibS_18gLU5fBkpqfvGK3OmInt5l6GS-igo

To claim this, I am signing this object: