Skip to content

Instantly share code, notes, and snippets.

@raarts
raarts / machine.js
Last active July 20, 2020 11:02
Generated by XState Viz: https://xstate.js.org/viz
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;
@raarts
raarts / machine.js
Last active June 12, 2020 20:42
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@raarts
raarts / create-expo-web-app
Last active June 16, 2020 16:28
Script to create an Expo blank template, with react-native-web support
#!/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 April 18, 2022 18:18
Script to rename a virtual machine in ESXi 6
#!/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,