Skip to content

Instantly share code, notes, and snippets.

View httpdss's full-sized avatar
🇺🇾

Kenneth Belitzky httpdss

🇺🇾
View GitHub Profile
@httpdss
httpdss / helm.tf
Created September 1, 2022 13:46
helm-terraform-sample
resource "helm_release" "cert_manager" {
name = "cert-manager"
namespace = kubernetes_namespace.ingress.id
#repository = data.helm_repository.jetstack.name
chart = "jetstack/cert-manager"
version = "v1.1.0"
values = [file("${path.module}/cert-manager.yaml")]
set {
name = "podAnnotations.iam\\.amazonaws\\.com/role"
@httpdss
httpdss / 00-example-main.tf
Created May 26, 2022 11:55 — forked from venurachakonda/00-example-main.tf
Sample terraform s3 remote management
provider "aws" {
region = "us-east-1"
}
# Resource to create S3 bucket for storing remote state file
resource "aws_s3_bucket" "s3-terraform-state-storage" {
bucket = "s3-terraform-state-storage"
versioning {
enabled = true
}
@httpdss
httpdss / example.py
Created July 1, 2012 01:40
NotifyMixin and NotifyCreateView
#import stuff like NotifyCreateView and ProjectForm
class ProjectCreate(NotifyCreateView):
login_required = True
form_class = ProjectForm
@httpdss
httpdss / gist:2173919
Created March 23, 2012 19:06
bash snippets
function dl() {
curl -kO $1
}
function gitp () {
$NAME=`echo $2 | cut -d"/" -f2`
git co $1 && git co -b $NAME && git merge --squash --no-commit $2
}
function gitd () {
@httpdss
httpdss / gist:948386
Created April 29, 2011 14:34
Mysql general log parser
#!/usr/bin/perl
use strict;
use Data::Dumper;
use Getopt::Long;
# author: Gavin Towey, 2008 gtowey@gmail.com
# todo, add "follow thread" capability
# so we can give a process name or thread id & see
# all activity in sequence for each thread
function rgrep() {
grep -nRi $1 *
}
function rgrep() {
grep -nRi $1 *
}