Skip to content

Instantly share code, notes, and snippets.

@aimakun
aimakun / SUBLIME TEXT2 INSTALLATION
Created July 7, 2012 10:16 — forked from devudilip/SUBLIME TEXT2 INSTALLATION
HOW TO INSTALL SUBLIME TEXT 2 ON UBUNTU 11.10
sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
sudo apt-get install sublime-text
@aimakun
aimakun / gist:4674243
Last active December 11, 2015 23:08 — forked from anonymous/gist:4674232
Convert tis620 to utf8 text function (for legacy database).
<?php
function tis620_to_utf8($text) {
$utf8 = "";
for ($i = 0; $i < strlen($text); $i++) {
$a = substr($text, $i, 1);
$val = ord($a);
if ($val < 0x80) {
$utf8 .= $a;
} elseif ((0xA1 <= $val && $val < 0xDA) || (0xDF <= $val && $val <= 0xFB)) {
<?php
/* Require: field_image (image field, available in standard profile) */
$view = new view();
$view->name = 'abstract_nodes';
$view->description = 'Clone this view to create node list page / block';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'Abstract nodes';
$view->core = 7;
$view->api_version = '3.0';
@aimakun
aimakun / web_test.go
Last active August 29, 2015 14:24 — forked from anonymous/web_test.go
package main
import (
"addressbook/contact"
"io/ioutil"
"net/http"
"net/http/httptest"
"strings"
"testing"
)

Upgrading Kubernetes Cluster with Kops, and Things to Watch Out For

Alright! I'd like to apologize for the inactivity for over a year. Very embarrassingly, I totally dropped the good habit. Anyways, today I'd like to share a not so advanced and much shorter walkthrough on how to upgrade Kubernetes with kops.

At Buffer, we host our own k8s (Kubernetes for short) cluster on AWS EC2 instances since we started our journey before AWS EKS. To do this effectively, we use kops. It's an amazing tool that manages pretty much all aspects of cluster management from creation, upgrade, updates and deletions. It never failed us.

How to start?

Okay, upgrading a cluster always makes people nervous, especially a production cluster. Trust me, I've been there! There is a saying, hope is not a strategy. So instead of hoping things will go smoothly, I always have bias that shit will hit the fan if you skip testing. Plus, good luck explaining to people

@aimakun
aimakun / .gitignore
Created February 13, 2023 09:52 — forked from pdxjohnny/.gitignore
Setting Up k3s for Serverless (knative) on a $5 DigitalOcean Droplet Using k3d
.terraform/
*.pem
*.tf
*.tfstate
*.yaml
*.backup
istio-*/
cert-manager-*/
*.swp
env