Skip to content

Instantly share code, notes, and snippets.

View abcde090's full-sized avatar
๐Ÿˆ
Surfing

Dan Wang abcde090

๐Ÿˆ
Surfing
  • Mantel Group
  • Brisbane
View GitHub Profile
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active April 27, 2025 06:30
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@anschaef
anschaef / bootstrap-4-sass-mixins-cheat-sheet.scss
Last active April 12, 2024 08:49
Bootstrap 4 Sass Mixins [Cheat sheet with examples]
/* -------------------------------------------------------------------------- */
// All Bootstrap 4 Sass Mixins [Cheat sheet]
// Updated to Bootstrap v4.5.x
// @author https://anschaef.de
// @see https://github.com/twbs/bootstrap/tree/master/scss/mixins
/* -------------------------------------------------------------------------- */
/*
// ########################################################################## */
// New cheat sheet for Bootstrap 5:
@480
480 / gist:3b41f449686a089f34edb45d00672f28
Last active January 23, 2025 16:11
MacOS X + oh my zsh + powerline fonts + visual studio code terminal settings

MacOS X + oh my zsh + powerline fonts + visual studio code (vscode) terminal settings

Thank you everybody, Your comments makes it better

Install oh my zsh

http://ohmyz.sh/

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
@branneman
branneman / primitive-reference-types-javascript.md
Last active October 28, 2024 04:04
Primitive Types & Reference Types in JavaScript

Primitive Types & Reference Types in JavaScript

An explanation of JavaScript's pass-by-value, which is unlike pass-by-reference from other languages.

Facts

  • JavaScript has 2 kinds of variable types: primitive and reference.
  • A fixed amount of memory is reserved after creation of every variable.
  • When a variable is copied, it's in-memory value is copied.
  • Passing a variable to a function via a call also creates a copy of that variable.

Primitive Types

@raj-saxena
raj-saxena / gcp_compute_mount_persistent_disk.sh
Last active May 25, 2024 15:31
Use the following script to mount a persistent storage during startup. This is helpful when you provision the compute instance as well as the persistent disk using some automation tool like Terraform. StackOverFlow question - https://stackoverflow.com/questions/53162620/automate-gcp-persistent-disk-initialization
#!/bin/bash
set -uxo pipefail
# DISK_NAME = Name of the disk in terraform
# DEVICE_NAME = When $DISK_NAME is mounted in the compute instance at `/dev/`
MOUNT_DIR=/mnt/disks/persistent_storage
# Check if entry exists in fstab
grep -q "$MOUNT_DIR" /etc/fstab
@Tiduster
Tiduster / AWSPro.md
Last active April 24, 2025 14:22
AWS Certified Solutions Architect Professional Cheat Cheets for Senior Engineer - August 2023
@ripiuk
ripiuk / bitbucket-pipelines.yml
Created December 16, 2020 17:26
An example of bitbucket pipeline configuration to sync changed files with Google Cloud Storage
image: <your_image>
pipelines:
default:
- step:
name: <description>
deployment: <your_deployment_name>
image: google/cloud-sdk:320.0.0-alpine
script:
# on linux you can use `$ base64 -w 0 < ~/.google_app_credentials.json` to generate $GCP_KEY_FILE
@Syed-Hassaan
Syed-Hassaan / GSP345 | Automating Infrastructure on Google Cloud with Terraform: Challenge Lab.txt
Created May 20, 2021 09:29
GSP345 | Automating Infrastructure on Google Cloud with Terraform: Challenge Lab
######################################################################################
## Automating Infrastructure on Google Cloud with Terraform: Challenge Lab # GSP345 ##
######################################################################################
====================== Setup : Create the configuration files ======================
Make the empty files and directories in Cloud Shell or the Cloud Shell Editor.
------------------------------------------------------------------------------------
touch main.tf
touch variables.tf