Skip to content

Instantly share code, notes, and snippets.

@jashmenn
Created November 16, 2017 17:48
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jashmenn/c46a8af37d91fc67accb6801740e0391 to your computer and use it in GitHub Desktop.
Save jashmenn/c46a8af37d91fc67accb6801740e0391 to your computer and use it in GitHub Desktop.
open geth and remix in tabs via applescript
-- osascript services.scpt
tell application "iTerm 3"
activate
set myterm to (create window with default profile)
tell myterm
set mysession to (current session)
tell mysession
set name to "geth"
write text "cd ~/projects/fs/newline/newline-content-internal/fullstack-web3/private-net"
write text "./bin/geth --datadir=./datadir --nodiscover --rpc --rpcapi \"db,personal,eth,net,web3,debug\" --rpccorsdomain='*' --rpcaddr=\"localhost\" --rpcport 8545 --ws --wsapi \"db,personal,eth,net,web3,debug\" --wsorigins='*' --wsaddr=\"localhost\" --wsport 8546 console"
write text "loadScript(\"./scripts/mine-only-when-transactions.js\")"
end tell
create tab with default profile
tell (current session)
set name to "remixd"
write text "cd ~/projects/fs/newline/newline-content-internal/fullstack-web3/cloq"
write text "remixd -S ."
end tell
create tab with default profile
tell (current session)
set name to "remix"
write text "cd ~/programming/eth/browser-solidity"
write text "npm-run-all -lpr serve"
end tell
create tab with default profile
tell (current session)
write text "open http://localhost:8080/"
end tell
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment