Skip to content

Instantly share code, notes, and snippets.

View fr34k8's full-sized avatar
🎯
Focusing

fr34k8

🎯
Focusing
View GitHub Profile
@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 / 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 / .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 / 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 / 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 / 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 / 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 / Security_Tools_for_AWS.MD
Created June 28, 2018 09:41 — forked from markofu/Security_Tools_for_AWS.MD
Security Tools for AWS

Security Tools for AWS

I often get asked which tools are good to use for securing your AWS infrastructure so I figured I'd write a short listof some useful Security Tools for the AWS Cloud Infrastructure.

This list is not intended be something completely exhaustive, more so provide a good launching pad for someone as they dig into AWS and want to make it secure from the start.

Open Source

This section focuses on tools and services provided by the community and released as open-source.

@fr34k8
fr34k8 / spinnaker-aws-ubuntu.md
Created July 31, 2018 14:51 — forked from diegopacheco/spinnaker-aws-ubuntu.md
How to Install Spinnaker on Ubuntu 14.04 AWS?

AWS Setup

1. Create AWS role called Spinnaker with proper access.
2. run aws configure and set your keys/secret.

Install Git and NVM

sudo apt-get -y install git
git clone https://github.com/spinnaker/spinnaker.git
@fr34k8
fr34k8 / generator.py
Created August 13, 2018 12:03 — forked from lkraider/generator.py
Terraform AWS policy generator
#!/usr/bin/env python
"""Convert CSV policies into AWS JSON format."""
import json
import csv
POLICIES = 'terraform.csv'
CRUD_COL = 2
ACTION_COL = 3