Skip to content

Instantly share code, notes, and snippets.

@bocan
bocan / LICENSE.txt
Last active November 20, 2025 11:40
A super easy firewall - using NFTABLES - to block Russia, China, Taiwan, and Vietnam.
MIT License
Copyright (c) [year] [fullname]
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
# Source: https://gist.github.com/f744313878391196ae9aea5b9dc17071
##########################################################################
# Container (Docker) Images Without Dockerfile With Buildpacks and kpack #
# https://youtu.be/fbSoKu8NGSU #
##########################################################################
# Additional Info:
# - Cloud Native Buildpacks: https://buildpacks.io
# - Paketo Buildpacks: https://paketo.io
@lucasponce
lucasponce / [1.A] Steps for GKE
Last active August 24, 2022 22:01
Istio Cookbook: Kiali Recipe
[1] Open https://console.cloud.google.com/ with your gmail account
[2] Create a Project / Choose a Project you have access to.
[3] Activate "Cloud Shell"
[4] Prepare a GKE cluster using
https://istio.io/latest/docs/setup/platform-setup/gke/
export PROJECT_ID=`gcloud config get-value project` && \
@nandanrao
nandanrao / Dockerfile
Last active April 6, 2024 13:52
Multi-stage build Dockerfile for Go and Kafka with confluent-kafka-go and Alpine
FROM golang:alpine AS build
RUN sed -i -e 's/v[[:digit:]]\..*\//edge\//g' /etc/apk/repositories
RUN apk upgrade --update-cache --available
RUN apk add --no-cache \
gcc \
libc-dev \
librdkafka-dev=1.3.0-r0 \
pkgconf
RUN mkdir /app
WORKDIR /app
@mohanpedala
mohanpedala / helm-cheatsheet.md
Created August 13, 2019 22:50 — forked from tuannvm/argo.md
#Helm #Kubernetes #cheatsheet, happy helming!
@negz
negz / kubedump.sh
Last active July 11, 2024 10:57
Dump Kubernetes cluster resources as YAML
#!/usr/bin/env bash
set -e
CONTEXT="$1"
if [[ -z ${CONTEXT} ]]; then
echo "Usage: $0 KUBE-CONTEXT"
exit 1
fi
@hoandang
hoandang / php-docker-ext
Created May 20, 2017 01:12
Complete list of php docker ext
RUN apt update
RUN apt upgrade -y
RUN apt install -y apt-utils
RUN a2enmod rewrite
RUN apt install -y libmcrypt-dev
RUN docker-php-ext-install mcrypt
RUN apt install -y libicu-dev
RUN docker-php-ext-install -j$(nproc) intl
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
@Ins1ghtLabs
Ins1ghtLabs / gist:c346f7ed4f257d1b4a2d
Created November 29, 2015 13:49
OpenWRT RTL8812AU Makefile
#
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id$
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk