This file contains hidden or 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
| name: master_test | |
| on: | |
| push: | |
| branches: [ master ] | |
| jobs: | |
| master_test: | |
| runs-on: macos-latest |
This file contains hidden or 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
| name: Update cask | |
| on: | |
| repository_dispatch: | |
| types: [update_cask] | |
| jobs: | |
| update_cask: | |
| name: Update cask | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 |
This file contains hidden or 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
| name: master_deploy | |
| on: | |
| push: | |
| branches: [ master ] | |
| tags: [ v* ] | |
| jobs: | |
| master_deploy: | |
| runs-on: macos-latest |
This file contains hidden or 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
| // Add features here | |
| require("./features/install")(app); | |
| require("./features/stash")(app); | |
| module.exports = app; |
This file contains hidden or 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 stash = require("../db").namespace("stash"); | |
| module.exports = app => { | |
| app.command("/stash", async ({ ack, respond, command }) => { | |
| await ack(); | |
| const uniqueId = `${command.team_id}-${command.user_id}`; | |
| if (command.text) { | |
| await stash.set(uniqueId, command.text); | |
| await respond("Your secret is safe with me."); | |
| } else { | |
| const text = (await stash.get(uniqueId)) || "I don't know your secret."; |
This file contains hidden or 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
| module.exports = app => { | |
| app.command("/stash", async ({ ack, respond, command }) => { | |
| await ack(); | |
| if (command.text) { | |
| await respond(`I heard '${command.text}'`) | |
| } else { | |
| await respond("What?"); | |
| } | |
| }); | |
| }; |
This file contains hidden or 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
| module.exports = app => { | |
| app.command("/stash", async ({ ack }) => { | |
| await ack("ok"); | |
| }); | |
| }; |
This file contains hidden or 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/sh -e | |
| INPUT_DIR="$1" | |
| OUTPUT_PATH="$2" | |
| ##### | |
| log_info() { | |
| echo " \033[0;32m-- $*\033[0m" 1>&2 | |
| } |
This file contains hidden or 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/sh -e | |
| INSTALLER_APP="$1" | |
| OUTPUT_PATH="$2" | |
| DISK_SIZE=${DISK_SIZE:-64} | |
| USER_NAME=${USER_NAME:-vagrant} | |
| FULL_NAME=${FULL_NAME:-$USER_NAME} | |
| PASS_WORD=${PASS_WORD:-$USER_NAME} |
This file contains hidden or 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
| Vagrant.configure("2") do |config| | |
| config.vm.box = "macinbox" | |
| config.vm.provision "shell", | |
| inline: <<~EOF | |
| scutil --set ComputerName macinbox-dev | |
| scutil --set LocalHostName macinbox-dev | |
| defaults write /Library/Preferences/com.apple.screensaver.plist loginWindowIdleTime -integer 0 | |
| pmset -b sleep 0 | |
| EOF | |
| config.vm.provision "shell", privileged: false, |