Skip to content

Instantly share code, notes, and snippets.

View machine.js
const debug = console.log;
let neemopGuards;
const buildGuards = (a) => a;
let neemopActions;
const buildActions = (a) => a;
let neemopServices;
const buildServices = (a) => a;
let neemopDelays;
const buildDelays = (a) => a;
View machine.js
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@raarts
raarts / create-expo-web-app
Last active Jun 16, 2020
Script to create an Expo blank template, with react-native-web support
View create-expo-web-app
#!/bin/bash
#
# Create a RN project which includes react-native-web
# Takes one argument, the target directory (and app) name,
if [ $# -ne 1 ]
then
echo "usage: $0 <target-dir>"
exit 1
fi
@raarts
raarts / vm-rename
Last active Apr 18, 2022
Script to rename a virtual machine in ESXi 6
View vm-rename
#!/bin/sh
#
# shell script to rename a virtual machine in ESXi
#set -x
if [ $# -ne 4 ]; then
echo "Usage: $0 VOLNAME DIRNAME OLDNAME NEWNAME
where VOLNAME is the volume name, e.g. datastore1,
DIRNAME is the the name of the directory of the virtual machine,