Skip to content

Instantly share code, notes, and snippets.

View thefron's full-sized avatar
📕

Hoseong Liam Hwang thefron

📕
View GitHub Profile
@thefron
thefron / build.md
Last active October 19, 2017 09:22
android build

Build Howto

Install Ubuntu 14.04.3 LTS

You know how.

$ sudo apt-get update
$ sudo apt-get install build-essential module-assistant
@thefron
thefron / _README.md
Created August 22, 2016 06:05 — forked from schickling/_README.md
Script to import and export docker-machine configurations to sync between hosts/collaborators

docker-machine import/export

Script to import and export docker-machine configurations to sync between hosts/collaborators

Export (on host A)

$ docker-machine ls
NAME       ACTIVE   DRIVER         STATE     URL                            SWARM   DOCKER    ERRORS
dev        -        digitalocean   Running   tcp://example.com:2376                 v1.10.1
require 'net/http'
require 'uri'
require 'json'
def put_metric(name, value, unit='Count')
metric_name = "ApiSidekiq#{name.split('_').collect(&:capitalize).join}"
`/usr/local/bin/aws cloudwatch put-metric-data --metric-name #{metric_name} --namespace Sidekiq --value #{value} --unit #{unit}`
end
uri = URI.parse("#{ENV['SIDEKIQ_WEB_HOST']}/stats")

Running tsgo (TS 7) alongside tsc (TS 5) in a pnpm Monorepo

A practical guide to using TypeScript's native Go-based compiler for local development while keeping the traditional tsc as your CI source of truth.

Why both?

TypeScript 7.0 is a ground-up port of the compiler to Go. It reads the same tsconfig.json and produces structurally identical type-checking results — just ~10x faster thanks to native code and shared-memory parallelism.

The catch: it's still in dev preview. Ecosystem tooling (editors, build plugins, lint integrations) still depends on the JS-based typescript package. So you run both: