Skip to content

Instantly share code, notes, and snippets.

pydevops /
Created December 7, 2021 23:42 — forked from mikesparr/
Example Cloud Armor policies protecting Google HTTPS Global Load Balancer in front of GCE instance group and GKE cluster
#!/usr/bin/env bash
# REF:
# REF:
# REF:
# REF:
# REF:
export PROJECT_ID=$(gcloud config get-value project)
export PROJECT_USER=$(gcloud config get-value core/account) # set current user
andyyou /
Last active August 9, 2022 07:38
Rails 5.2 with webpacker, bootstrap, stimulus starter

Rails 5.2 with webpacker, bootstrap, stimulus starter

This gist will collects all issues we solved with Rails 5.2 and Webpacker

Create Project

# Last few parameters(--skip-* part) is only my habbit not actully required
$ rails new <project_name> --webpack=stimulus --database=postgresql --skip-coffee --skip-test



None of the string methods modify this – they always return fresh strings.

  • charAt(pos: number): string ES1

    Returns the character at index pos, as a string (JavaScript does not have a datatype for characters). str[i] is equivalent to str.charAt(i) and more concise (caveat: may not work on old engines).

ebidel / coverage.js
Last active February 2, 2022 11:56
CSS/JS code coverage during lifecycle of page load
View coverage.js
Moved to
ericelliott /
Last active April 22, 2023 09:05
Essential JavaScript Links
agnoster /
Last active May 13, 2023 14:50
My ZSH Theme


A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark

codingoutloud / .gitignore
Last active October 9, 2016 15:34
Git Ignore for ASP.NET MVC / Windows Azure development
View .gitignore
# .gitignore for ASP.NET MVC / Windows Azure development
# Original file: by @codingoutloud
## Github doc on ignoring files:
## The man page for .gitignore (referenced by github):
## Of possible interest (can be complex):
# Troubleshooting
# 1. If you add a .gitignore file to an existing repo (or significantly change one), you may want
# to force it to act as though the new/updated .gitignore was in force the whole time.
sebastianhoitz / gist:2007824
Created March 9, 2012 18:10
My Sublime Text 2 Key Bindings
View gist:2007824
// easy insert mode exiting
{ "keys": ["j", "j"], "command": "exit_insert_mode",
{ "key": "setting.command_mode", "operand": false },
{ "key": "setting.is_widget", "operand": false }