Regular: npm install pkg
, Shorthand: npm i pkg
.
Regular: npm i --global pkg
, Shorthand: npm i -g pkg
.
{ | |
// Always prompt before reloading a file, even if the file hasn't been | |
// modified. The default behavior is to automatically reload a file if it | |
// hasn't been edited. If a file has unsaved changes, a prompt will always | |
// be shown. | |
"always_prompt_for_file_reload": false, | |
// Always visualise the viewport on the minimap, as oppossed to only | |
// showing it on mouse over | |
"always_show_minimap_viewport": false, |
BOLD=`echo -e '\033[1m'` | |
BLACK=`echo -e '\033[30m'` | |
RED=`echo -e '\033[31m'` | |
GREEN=`echo -e '\033[32m'` | |
YELLOW=`echo -e '\033[33m'` | |
BLUE=`echo -e '\033[34m'` | |
MAGENTA=`echo -e '\033[35m'` | |
CYAN=`echo -e '\033[36m'` | |
WHITE=`echo -e '\033[37m'` | |
BG_BLACK=`echo -e '\033[40m'` |
#!/usr/bin/env bash | |
# Synchronize content from remote Ubuntu instance to local file path with rsync via SSH | |
function syncUbuntuInstance () { | |
if [ -z "$1" ] || [ -z "$2" ]; then | |
echo | |
echo "What the hell am I trying to sync? Give me a user and hostname." | |
echo "Usage: $0 <ssh user> <hostname>" | |
echo | |
exit 0 |
#!/bin/bash | |
# Bash Script: Change All Files Extension in a Folder | |
# Usage: change-file-extensions <current file extension> <new file extension> | |
# Example: change-file-extensions xml json | |
function changeFileExtensions() { | |
if [[ -z $1 || -z $2 ]]; then | |
echo | |
echo "What file extensions am I working with? Please provide <current> and <new>." |
# Define words to search for "matching patterns" | |
PATTERN_TYPES = { | |
# %w is just short hand to create an array of strings | |
camouflage: %w[ | |
a-tacs | |
bonz | |
camo | |
camoflage | |
camouflage | |
harvest moon |
db.getCollection("caltrend").aggregate( | |
// Pipeline | |
[ | |
// Stage 1 | |
{ | |
$project: { | |
_id : 1, | |
vendor_part_number: "$PartNumber", | |
vendor: "$BrandLabel", |
# Change YOUR_TOKEN to your prerender token and uncomment that line if you want to cache urls and view crawl stats | |
# Change example.com (server_name) to your website url | |
# Change /path/to/your/root to the correct value | |
# Generate $prerender_ua bool value based on user agent | |
# indexation bots will get this as 1, | |
# prerender user agent will always get 0 (avoid loops) | |
map $http_user_agent $prerender_ua { | |
default 0; |