Skip to content

Instantly share code, notes, and snippets.

View evilr00t's full-sized avatar
💻
:(){ :|:& };:

Karol Czeryna evilr00t

💻
:(){ :|:& };:
View GitHub Profile
@kevinelliott
kevinelliott / osx-10.10-setup.md
Last active December 1, 2023 08:21
Mac OS X 10.10 Yosemite Setup

Mac OS X 10.10 Yosemite

Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

Install Software

@tamoyal
tamoyal / gist:2ea1fcdf99c819b4e07d
Last active February 13, 2020 11:24
Upgrade Postgres 9.3 to 9.4 on Ubuntu
# Be sure to save your config files. Optional but I do:
sudo cp /etc/postgresql/9.3/main/postgresql.conf ~
sudo cp /etc/postgresql/9.3/main/pg_hba.conf ~
# Package repo (for apt-get)
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" >> /etc/apt/sources.list.d/postgresql.list'
# Also probably optional but I like to update sources and upgrade
sudo apt-get update
THIS PAGE IS HERE: https://goo.gl/XTqH0y
WIFI NETWORK: CANONICAL
WIFI PASSWORD: canonical
** Tutorials **
Charm Deploy and Scale Tutorial: https://goo.gl/kLpKaw
Charm Deploy and Scale Tutorial Recording: https://asciinema.org/a/0wqvhrpshmvz2vcg46bvvtbul
Create, Build and Deploy an OpenStack API Charm Tutorial: https://goo.gl/uSVPkR
@pmarques
pmarques / awslogs.service
Last active April 10, 2017 15:25
SytemD AWS logs service (AWS seems to not support it officially)
[Unit]
Description=CloudWatch Logs agent
After=network.target
[Service]
Restart=always
TimeoutSec=infinity
ExecStart=/var/awslogs/bin/awslogs-agent-launcher.sh
[Install]
@enricofoltran
enricofoltran / main.go
Last active June 26, 2024 12:16
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"
@mendhak
mendhak / apigateway.tf
Last active July 8, 2024 19:09
Terraform - API Gateway with greedy path (proxy+) calling httpbin. Also includes deployment
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.0"
}
}
}
provider "aws" {