Skip to content

Instantly share code, notes, and snippets.

View fr34k8's full-sized avatar
🎯
Focusing

fr34k8

🎯
Focusing
View GitHub Profile
@fr34k8
fr34k8 / k8s-pi.md
Created April 26, 2018 20:33 — forked from alexellis/k8s-pi.md
K8s on Raspbian

Kubernetes on (vanilla) Raspbian Lite

Yes - you can create a Kubernetes cluster with Raspberry Pis with the default operating system called Raspbian. This means you can carry on using all the tools and packages you're used to with the officially-supported OS.

Pre-reqs:

  • You must use an RPi 2 or 3 for use with Kubernetes
  • I'm assuming you're using wired ethernet (Wi-Fi also works, but it's not recommended)

Master node setup

@fr34k8
fr34k8 / kubectl.md
Created March 21, 2018 23:00 — forked from so0k/kubectl.md
Playing with kubectl output

Kubectl output options

Let's look at some basic kubectl output options.

Our intention is to list nodes (with their AWS InstanceId) and Pods (sorted by node).

We can start with:

kubectl get no
@fr34k8
fr34k8 / 000-Cheat-Sheets.md
Created February 18, 2018 00:17 — forked from JoshuaEstes/000-Cheat-Sheets.md
Developer Cheat Sheets for bash, git, gpg, irssi, mutt, tmux, and vim. See my dotfiles repository for extra info.
@fr34k8
fr34k8 / howto
Created February 13, 2018 20:33 — forked from maffblaster/howto
code that generates a UEFI capable ISO for Gentoo Linux
$ cat mkefiboot
#!/bin/bash
macbootimg() {
python /usr/lib/python3.3/site-packages/livedvd/mkefiboot -a -l "Gentoo Linux" -i gentoo.icns -p "Gentoo Linux" efi/boot macboot.img
}
efiimg() {
local mountdir
mountdir=$(mktemp -d)
@fr34k8
fr34k8 / .gitlab-ci.yml
Created November 13, 2017 13:48 — forked from foklepoint/.gitlab-ci.yml
Build and Push images to GCP Container Registry with Gitlab CI
image: docker:latest
# When using dind, it's wise to use the overlayfs driver for
# improved performance.
variables:
DOCKER_DRIVER: overlay
GCP_PROJECT_ID: CHANGE-TO-GCP-PROJECT-ID
IMAGE_NAME: image_id
services:
@fr34k8
fr34k8 / java-8-ami.md
Created October 11, 2017 17:51 — forked from rtfpessoa/java-8-ami.md
[Guide] Install Oracle Java (JDK) 8 on Amazon EC2 Ami
@fr34k8
fr34k8 / gist:7cf9ae935712ee140cee7df256863ef8
Created October 11, 2017 12:12 — forked from manishval/gist:28b57a6872b2d5b968a0
Script to Install JAVA 8 (JDK 8u40) on CentOS/RHEL 7/6/5 and Fedora
#!/bin/bash
# Script to Install JAVA 8 (JDK 8u40) on CentOS/RHEL 7/6/5 and Fedora
# http://tecadmin.net/install-java-8-on-centos-rhel-and-fedora/
echo "Installing Java 8 (64bit)"
cd /opt/
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u40-b25/jdk-8u40-linux-x64.tar.gz"
tar xzf jdk-8u40-linux-x64.tar.gz
@fr34k8
fr34k8 / freebsd10_cheatsheet.md
Created October 4, 2017 09:21
FreeBSD Cheatsheet
@fr34k8
fr34k8 / aptly-mirror.sh
Created September 22, 2017 14:44 — forked from EntropyWorks/aptly-mirror.sh
This is my script for mirroring a bunch of apt repos. This only touches the very basics of what (aptly)[http://www.aptly.info/] can do.
#!/bin/bash
#
# Copyright 2014 Hewlett-Packard Development Company, L.P.
# All Rights Reserved.
# Authored by Yazz D. Atlas <[email protected]>
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
for /F "tokens=*" %%A in (url.txt) do (
"C:\Program Files (x86)\Netsparker\Netsparker.exe" /a /silent /p %Profile% /u http://%%A /rt "Detailed Scan Report" /r "scan_%%A_80_report.html"
"C:\Program Files (x86)\Netsparker\Netsparker.exe" /a /silent /p %Profile% /u https://%%A /rt "Detailed Scan Report" /r "scan_%%A_443_report.html"
)