Skip to content

Instantly share code, notes, and snippets.

@wheresjames
wheresjames / npm-global-install.js
Last active December 23, 2020 20:57
Install global npm dependencies from package.json
#!/usr/bin/node
const fs = require('fs');
const path = require('path');
const shell = require('shelljs');
const cp = require('child_process');
const c_Usage = "USAGE: ./npm-global-install.js <path-to-package.json>";
const c_start_time = new Date().getTime() / 1000;
#!/bin/bash
# Compress web site
#--------------------------------------------------------------------------------------------------
USAGE="Usage: ./compress-web.sh <source-dir> <destination-dir>"
SCRIPT_NAME=$(basename $0)
SCRIPT_PATH=$(dirname "$(readlink -f "$0")")
@wheresjames
wheresjames / buildwrtc.bat
Created July 23, 2020 09:54
Build Webrtc for WinRT
@echo off
setlocal ENABLEDELAYEDEXPANSION
set p1=%1
if "!p1!"=="" set "p1=x64"
REM #----------------------------------------------------------------
REM # https://github.com/microsoft/winrtc
REM #----------------------------------------------------------------
REM # RUN

GCloud site publishing script

Gradle Build Script

bash history management

Python logging class

@wheresjames
wheresjames / extract-words.js
Created February 18, 2019 18:40
Splits words and creates javascript / JSON friendly array
#!/usr/bin/env nodejs
//-------------------------------------------------------------------------------------------------
// Developer: Robert Umbehant
//-------------------------------------------------------------------------------------------------
// Splits the input file into words, filters the words, and outputs as a javascript / JSON friendly
// array of strings.
//-------------------------------------------------------------------------------------------------
var fs = require('fs');

Codename generator.

DEMO

@wheresjames
wheresjames / README.md
Created May 3, 2017 19:12
Generate range of possible subnets for an IP Address

Generate range of possible subnets for an IP Address