Skip to content

Instantly share code, notes, and snippets.

View kdeng's full-sized avatar

Kefeng Deng kdeng

View GitHub Profile
@mikesparr
mikesparr / gcp-gae-cr-private.sh
Last active October 15, 2024 22:46
Example Google Cloud Platform (GCP) serverless apps communicating via private network
#!/usr/bin/env bash
#####################################################################
# REFERENCES
# - https://cloud.google.com/run/docs/securing/private-networking#from-other-services
# - https://cloud.google.com/run/docs/securing/private-networking#from-vpc
# - https://cloud.google.com/appengine/docs/flexible/disable-external-ip
# - https://cloud.google.com/dns/docs/records#adding_or_removing_a_record
# - https://cloud.google.com/vpc/docs/configure-private-google-access
# - https://cloud.google.com/run/docs/quickstarts/build-and-deploy/deploy-go-service
@mikesparr
mikesparr / gcp-global-lb-multi-region-cr-ce.sh
Last active May 16, 2025 13:08
Demonstrating how you can deploy Cloud Run (serverless) or Compute Engine instance groups across regions and balance with global load balancer
#!/usr/bin/env bash
#####################################################################
# REFERENCES
# - https://cloud.google.com/run/docs/multiple-regions
# - https://cloud.google.com/compute/docs/instance-groups/distributing-instances-with-regional-instance-groups
# - https://cloud.google.com/load-balancing/docs/https/setup-global-ext-https-compute
# - https://cloud.google.com/load-balancing/docs/backend-service#named_ports
#####################################################################
@mikesparr
mikesparr / 01-sre-background.md
Last active November 14, 2022 09:52
Notes about SRE and DevOps engineering for study for certification exam

Resources

Study

"Class SRE implements DevOps" is a specific way to do DevOps.

  • Job/Role
  • SRE System
  • CI/CD and tools to implement
  • Operations in Google Cloud and tools to implement
@mikesparr
mikesparr / 01-architecting-solutions.md
Last active January 31, 2025 23:44
Study Guide for GCP Professional Cloud Architect exam (notes from refresher course)

Architecting for the cloud

  • Architect solutions to be scalable and reilient
  • Business requirements involve lowering costs / enhancing user experience
  • Keep an eye on technical needs during development and operation

3 Major Questions To Ask

  1. Where is the company coming from
@kdeng
kdeng / web-servers.md
Created September 13, 2018 21:16 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@Dammic
Dammic / vimrc
Last active November 3, 2024 16:24
"vimrc file maintained by Damian Michalski for personal use
"Based on vimrc from Marek Tkaczyk
" NOTE: you need to create 'backup', 'swap', 'undo' and undodir folders inside ~/.vim
" NOTE: in order for airline to look good, you need to install and select powerline fonts pack
" NOTE: markonm/traces.vim is incompatible with neovim - to make it work, turn off inccommand
" NOTE: in order to make language client work, you need to execute:
" yarn global add javascript-typescript-langserver
" That will install javascript-typescript-stdio
@odan
odan / rest_quick_reference.md
Last active September 1, 2021 20:06
REST, RESTful API Quick Reference