Skip to content

Instantly share code, notes, and snippets.

@tomeraz
tomeraz / machine.js
Created June 15, 2020 07:17
Generated by XState Viz: https://xstate.js.org/viz
const pedestrianStates = {
initial: 'walk',
states: {
walk: {
on: {
PED_TIMER: 'wait'
}
},
wait: {
on: {
➜ ~ npm config set prefix ~/.npm
➜ ~ echo 'export PATH="$HOME/.npm/bin:$PATH"' >> ~/.zshrc
@tomeraz
tomeraz / multi-repo.md
Last active January 2, 2018 08:26
Multiple repositories github setup

Multiple repositories github setup

1. Generate deploy keys

$ ssh-keygen -t rsa -b 4096
Generating public/private rsa key pair.
Enter file in which to save the key (/home/user/.ssh/id_rsa): repo1_rsa
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
@tomeraz
tomeraz / ubuntu-remote-debug-ios.md
Last active January 17, 2024 02:14
How to install remote debugging with Chrome dev tools for iOS devices safari on Ubuntu 16.04

install remote debugging with Chrome dev tools for iOS devices safari on Ubuntu 16.04

1. Install linuxbrew (Homebrew) for linux

http://linuxbrew.sh/:

sudo apt-get install build-essential curl file git python-setuptools
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
test -d ~/.linuxbrew && PATH="$HOME/.linuxbrew/bin:$HOME/.linuxbrew/sbin:$PATH"
test -d /home/linuxbrew/.linuxbrew && PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:$PATH"