Skip to content

Instantly share code, notes, and snippets.

View NamesMT's full-sized avatar
👋

Trung Dang NamesMT

👋
View GitHub Profile
@NamesMT
NamesMT / static-site-with-backend.ts
Created April 26, 2024 19:07
SST Ion prototype for Static frontend + backend
import fs from "fs";
import path from "path";
import crypto from "crypto";
import * as aws from "@pulumi/aws";
import {
ComponentResourceOptions,
all,
interpolate,
output,
} from "@pulumi/pulumi";
## What this?
## Script to setup docker in a fresh alpine instance :D
## Credit goes to richart24se's gist: https://gist.github.com/richard24se/336cb2502400a63f4670c751eaca1929, is modified to add login script for zsh.
# change to root and install packages
su -c "apk add sudo openrc curl python3 python3-dev nload htop"
# if your user doesn't exists then remove sudo passwords
USERNAME=$(whoami)
su -c "grep -qxF '${USERNAME} ALL=(ALL) NOPASSWD: ALL' /etc/sudoers || echo '${USERNAME} ALL=(ALL) NOPASSWD: ALL' | tee -a /etc/sudoers"
# install compilers
@NamesMT
NamesMT / rollup-typescript.md
Created August 7, 2022 15:15 — forked from aleclarson/rollup-typescript.md
The best Rollup config for TypeScript libraries

Features

🔥 Blazing fast builds
😇 CommonJS bundle
🌲 .mjs bundle
.d.ts bundle + type-checking
🧐 Source maps

Install

Keybase proof

I hereby claim:

  • I am markithepews on github.
  • I am mmmmt (https://keybase.io/mmmmt) on keybase.
  • I have a public key ASDAmyYfoQcl6ASPky7Bm1cWMFvo-XLVzcCinJs_YFE1cwo

To claim this, I am signing this object: