Skip to content

Instantly share code, notes, and snippets.

jeroen-meijer /
Created Sep 15, 2019
Flutter Clean Recursive - Clear up space on your hard drive by cleaning your Flutter projects. This script searches for all Flutter projects in this directory and all subdirectories and runs 'flutter clean'. Note: may take a long time for folders with large amounts of projects.
# To run, download the script or copy the code to a '.sh' file (for example '') and run like any other script:
# sh ./
# or
# sudo sh
echo "Flutter Clean Recursive (by jeroen-meijer on GitHub Gist)"
echo "Looking for projects... (may take a while)"
View gist:9300f5f9276b2df884c80da3e2c54ffc

Install Android SDK on macOS

Install homebrew

brew cask install adoptopenjdk8
brew cask install android-sdk
stevenringo /
Created Dec 3, 2017
Links to YouTube recordings of AWS re:Invent 2017 sessions

| Title | Description

arun-gupta / readme.adoc
Last active Mar 22, 2020
Kubernetes Cluster on AWS
View readme.adoc
  1. kops:

    1. Getting Started Guide:

    2. Installing Kubernetes on AWS with kops:

    3. Mulit-master Kubernetes Cluster on AWS with kops:

    4. Booting Kubernetes on Amazon Elastic Compute with kops:

    5. Setting up an HA Kubernetes Cluster in AWS with private topology with kops 1.5.1:

    6. Kubernetes on AWS:

    7. Your 2nd day with Kubernetes on AWS:

  2. Tectonic (Terraform):

duggan /
Created Oct 12, 2015
Present Terraform tfstate data as an Ansible inventory
#!/usr/bin/env python
import sys
import os
import json
import argparse
import collections
__description__ = """Ansible Dynamic Inventory for Terraform."""
__epilog__ = """
cridenour / gist:74e7635275331d5afa6b
Last active Jun 1, 2022
Setting up Vim as your Go IDE
View gist:74e7635275331d5afa6b

Setting up Vim as your Go IDE

The final IDE


I've been wanting to do a serious project in Go. One thing holding me back has been a my working environment. As a huge PyCharm user, I was hoping the Go IDE plugin for IntelliJ IDEA would fit my needs. However, it never felt quite right. After a previous experiment a few years ago using Vim, I knew how powerful it could be if I put in the time to make it so. Luckily there are plugins for almost anything you need to do with Go or what you would expect form and IDE. While this is no where near comprehensive, it will get you writing code, building and testing with the power you would expect from Vim.

Getting Started

I'm assuming you're coming with a clean slate. For me this was OSX so I used MacVim. There is nothing in my config files that assumes this is the case.

kevingessner / gist:9509148
Last active Jul 10, 2021
Responsive emails that really work -- From Etsy's Code As Craft blog:
View gist:9509148
<style type="text/css">
table table {
width: 600px !important;
table div + div { /* main content */
width: 65%;
float: left;
View gist:9324487
awk '/^(\S+) \S+ \S+ \[([^\]]+)\] "([A-Z]+)[^"]*" \d+ \d+ "[^"]*" "([^"]*)"$/m ($6 == "\"GET") && ($9 == 200) && !($7 ~ /^\/_analytics/) && !($7 ~ /^\/arama/) && !($7 ~ /^\/programlar\?q/) && !($7 ~ /^\/uzmanlar\?search/) && !($7 ~ /^\/app\/vplayer\/ {print $7}' access.log | uniq > access_log_filtered.log
rothgar / main.yml
Last active Jun 1, 2022
Generate /etc/hosts with Ansible
View main.yml
# Idempotent way to build a /etc/hosts file with Ansible using your Ansible hosts inventory for a source.
# Will include all hosts the playbook is run on.
# Inspired from
- name: "Build hosts file"
lineinfile: dest=/etc/hosts regexp='.*{{ item }}$' line="{{ hostvars[item].ansible_default_ipv4.address }} {{item}}" state=present
when: hostvars[item].ansible_default_ipv4.address is defined
with_items: groups['all']
erickok /
Last active Jul 23, 2021
Loading a self-signed SSL certificate .crt file and packaging it into a SSLSocketFactory for use with a HttpsURLConnection.
// Usage example...
HttpsURLConnection connection = (HttpsURLConnection) new URL("").openConnection();
private static SSLSocketFactory buildSslSocketFactory(Context context) {
// Add support for self-signed (local) SSL certificates
// Based on
try {