Skip to content

Instantly share code, notes, and snippets.

View smilelikeshit's full-sized avatar
💭
thanks to linus torvalds

imam smilelikeshit

💭
thanks to linus torvalds
View GitHub Profile
@smilelikeshit
smilelikeshit / ca.md
Created September 18, 2020 16:31 — forked from soarez/ca.md
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

@smilelikeshit
smilelikeshit / diskusage.go
Created March 18, 2020 14:28 — forked from ttys3/diskusage.go
Disk Usage info like `df -h` for Golang
package main
import (
"fmt"
syscall "golang.org/x/sys/unix"
)
type DiskStatus struct {
All uint64 `json:"all"`
Used uint64 `json:"used"`
@smilelikeshit
smilelikeshit / install_docker.sh
Created January 10, 2020 04:22 — forked from angristan/install_docker.sh
Script to install Docker and Docker-Compose on Debian
#!/bin/bash
apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common sudo
curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | sudo apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") $(lsb_release -cs) stable"
apt-get update
@smilelikeshit
smilelikeshit / gitlab-ci.yml
Created September 18, 2019 06:30 — forked from brunomacf/gitlab-ci.yml
kube-test gitlab-ci
image: docker:latest
services:
- docker:dind
stages:
- build
- deploy
variables:
CONTAINER_DEV_IMAGE: registry.gitlab.com/brunomacf/kube-test:$CI_COMMIT_SHA