Skip to content

Instantly share code, notes, and snippets.

View quangdatpham's full-sized avatar
Breaking the code!

Quang Dat Pham quangdatpham

Breaking the code!
View GitHub Profile
LeCoupa / nodejs-cheatsheet.js
Last active June 30, 2024 04:14
Complete Node.js CheatSheet --> UPDATED VERSION -->
/* *******************************************************************************************
* ******************************************************************************************* */
// 0. Synopsis.
magicznyleszek /
Last active March 29, 2024 01:12
CSS Selectors Cheatsheet

CSS Selectors Cheatsheet

Hi! If you see an error or something is missing (like :focus-within for few years :P) please let me know ❤️

Element selectors

Element -- selects all h2 elements on the page

h2 {
jibs /
Created April 25, 2015 15:57
port forwarding with a google cloud instance

Google cloud's ssh command lets you pass standard ssh flags. To, for example, forward local port 8088 to port 8088 on a vm instance, all you need to do is:

gcloud compute  ssh --ssh-flag="-L 8088:localhost:8088"  --zone "us-central1-b" "example_instance_name"

Now browsing to localhost:8088 works as it would with standard ssh.

satyadeepk /
Last active February 18, 2022 12:21
Jenkins Google Cloud SDK install with auth script
export DIRECTORY="/var/jenkins_home/GoogleCloudSDK/google-cloud-sdk/bin"
if [ ! -d "$DIRECTORY" ]; then
# Control will enter here if $DIRECTORY doesn't exist.
cd /var/jenkins_home
wget -O
unzip -o -d ./GoogleCloudSDK/
harrietty /
Last active August 13, 2023 00:36 — forked from mdang/
Ruby on Rails 5 Cheatsheet

Ruby on Rails Cheatsheet (5.1)



$ rvm list - show currently installed Rubies