Skip to content

Instantly share code, notes, and snippets.

View jeffryang24's full-sized avatar

Jeffry Angtoni jeffryang24

  • Indonesia
  • 02:49 (UTC +07:00)
View GitHub Profile
@jeffryang24
jeffryang24 / .gitconfig
Last active October 15, 2023 17:42
dotfiles
[user]
name = Jeffry Angtoni
email = [email protected]
# Add GPG signing key later, use exclamation mark for subkey.
# signingKey = 4BB6D45482678BE3!
[core]
editor = vim
# Use true for windows, and input for linux/mac os.
autocrlf = true
[color]
@jeffryang24
jeffryang24 / addons.ts
Last active April 14, 2020 18:13
StoryBook CSF No Code Available Reproduce
// Storybook v5.2.7
import '@storybook/addon-knobs/register';
import '@storybook/addon-actions/register';
import '@storybook/addon-viewport/register';
import '@storybook/addon-storysource/register';
import '@storybook/addon-docs/register';
import '@storybook/addon-a11y/register';
const withTypescript = require('@zeit/next-typescript')
const withCss = require('@zeit/next-css')
const withSass = require('@zeit/next-sass');
const withImages = require('next-images');
const withOffline = require('next-offline');
const withManifest = require('next-manifest')
const pipe = (...ops) => ops.reduce((a, b) => (arg) => b(a(arg)));
const isProd = process.env.NODE_ENV === 'production';
@jeffryang24
jeffryang24 / AWSRegionsAndAZs.md
Created November 1, 2018 15:58
List of AWS availability zones for each AWS region
AWS region code AWS region name Number of AZs AZ names
us-east-1 Virginia 4 us-east-1a, us-east-1b, us-east-1c, us-east-1e
us-west-1 N. California 2 us-west-1a, us-west-1b
us-west-2 Oregon 3 us-west-2a, us-west-2b, us-west-2c
eu-west-1 Ireland 3 eu-west-1a, eu-west-1b, eu-west-1c
eu-central-1 Frankfurt 2 eu-central-1a, eu-central-1b
ap-southeast-1 Singapore 2 ap-southeast-1a, ap-southeast-1b
ap-southeast-2 Sydney 2 ap-southeast-2a, ap-southeast-2b, ap-southeast-2c
ap-northeast-1 Tokyo 2 ap-northeast-1a, ap-nort
@jeffryang24
jeffryang24 / gist:208dcbc19c8dec8946ace8fe8dd50e7f
Created October 30, 2018 03:33 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@jeffryang24
jeffryang24 / tmux-cheatsheet.markdown
Created September 3, 2018 04:18 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@jeffryang24
jeffryang24 / ghploy Dockerfile
Last active August 27, 2018 10:43
Jungleland JS Dockerfile
FROM rastasheep/ubuntu-sshd:16.04
LABEL maintainer="[email protected]"
# use sby repo?
ARG use_sby_repo=1
# Repo list(s)
ENV sby_REPO="kartolo.sby.datautama.net.id"
@jeffryang24
jeffryang24 / curl.md
Created July 29, 2018 07:03 — forked from btoone/curl.md
A curl tutorial using GitHub's API

Introduction

An introduction to curl using GitHub's API.

The Basics

Makes a basic GET request to the specifed URI

curl https://api.github.com/users/caspyin
# This is a short collection of tools that are useful for managing your
# known_hosts file. In this case, I'm using the '-f' flag to specify the
# global known_hosts file because I'll be adding many deploy users on this
# system. Simply omit the -f flag to operate on ~/.ssh/known_hosts
# Add entry for host
ssh-keyscan -H github.com > /etc/ssh/ssh_known_hosts
# Scan known hosts
ssh-keygen -f /etc/ssh/ssh_known_hosts -H -F github.com
@jeffryang24
jeffryang24 / ghploy
Last active August 23, 2018 10:46
GitHub Auto Deployment Script Installation for NodeJS with PM2.
#!/usr/bin/env bash
# GitHub (NodeJS) Auto Deployment Script
# for debug
#set -o xtrace
# Version
_GHPLOY_VERSION="0.1a1"
# Reserved variables