This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://iphone-streaming.ustream.tv/ustreamVideo/1524/streams/live/playlist.m3u8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let command = `$($(${this.args.met} && echo "Atom met!") || echo "Atom not met!") || | |
$(${this.args.meet}) && | |
$(${this.args.met})` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SSH_DIR=$(getent passwd $1 | cut -d: -f6)/.ssh | |
KEY_LOC=$SSH_DIR/keyLocation | |
CACHE=$KEY_LOC.cache | |
AUTH_KEYS="" | |
if [ -e "$KEY_LOC" ] | |
then | |
while read URL | |
do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
INSTALL_DIR=/root | |
FAIL2BAN_SSH_PATH=/etc/fail2ban/jail.d/ssh.local | |
if [ "$(uname)" == 'Darwin' ] | |
then | |
# /root is not available on Mac OS | |
INSTALL_DIR=/usr/local | |
fi | |
SCRIPT_NAME=keys4user | |
INSTALL_PATH=$INSTALL_DIR/$SCRIPT_NAME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions | |
// - XState (all XState exports) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const loadApplication = () => { | |
return new Promise((resolve,reject) => { | |
setTimeout(() => {resolve({authData: null})}, 1000) | |
}) | |
} | |
const isCredentialsSet = (context, event) => event.username != null && event.password != null | |
const onboardingMachine = Machine({ | |
initial: "check", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const sessionMachine = Machine({ | |
states: { | |
check: { | |
}, | |
onboarding: { | |
entry: "navigateToOnboarding", | |
on: { | |
"AGREE": { | |
actions: ["assignOnboarding"], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const registerDevice = () => new Promise((resolve,reject) => { | |
resolve("deviceIdTest") | |
}) | |
const getPushToken = () => new Promise((resolve,reject) => { | |
resolve("pushTokenTest") | |
}) | |
const onboardingMachine = Machine( | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const requestMachine = Machine( | |
{ | |
context: { | |
failGracefully: false, | |
tokenUpdated: false, | |
}, | |
id: "request", | |
initial: "loading", | |
on: { | |
REFRESH: ".loading", |
OlderNewer