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
$ heroku login | |
Enter your Heroku credentials. | |
Email: niklas@hardcoded.se | |
Password (typing will be hidden): | |
Authentication successful. | |
updating...done. Updated to 3.26.0 |
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
$ heroku create --region eu | |
Creating gentle-sands-946h7... done, region is eu | |
https://gentle-sands-9467.herokuapp.com/ | https://git.heroku.com/gentle-sands-9467.git | |
Git remote heroku added | |
$ heroku apps:rename acastbot |
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
$ heroku config:add HEROKU_URL=https://botname.herokuapp.com | |
$ heroku config:add HUBOT_SLACK_TOKEN=xoxb-1234-5678-12345-12345 |
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
$ heroic add ons:add redistogo:nano | |
Adding redistogo:nano on acastbot... done, v7 (free) | |
Use `heroku addons:docs redistogo` to view documentation. |
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
web: bin/hubot --adapter slack --name botname |
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
$ git push heroku master |
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
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions -EnableShowFileExtensions | |
Set-StartScreenOptions -EnableBootToDesktop -EnableDesktopBackgroundOnStart -EnableShowStartOnActiveScreen -EnableShowAppsViewOnStartScreen -EnableSearchEverywhereInAppsView -EnableListDesktopAppsFirst | |
Install-WindowsUpdate -acceptEula | |
Disable-UAC | |
Disable-InternetExplorerESC | |
cinst notepad2 -y | |
cinst SublimeText3 -y | |
cinst sublimetext3-contextmenu -y |
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
require 'elasticsearch' | |
require 'redis' | |
require 'colorize' | |
unless ARGV.length == 3 | |
puts 'Wrong number of arguments' | |
puts | |
puts 'Syntax: ruby migrate-doorman-v1.rb <elasticsearch URL> <source index> <target-index>' | |
puts 'Example: ruby migrate-doorman-v1.rb http://localhost:9200 doorman-v1 doorman-v2' | |
exit |
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
# Apps | |
apps=( | |
alfred | |
dropbox | |
google-chrome | |
slack | |
firefox | |
hazel | |
spotify |
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
var reqeustOptions = { | |
uri: urljoin(apiBaseUrl, apiBasePath, 'SMS'), | |
method: 'POST', | |
auth: { | |
user: 'username', | |
pass: 'pwd' | |
}, | |
form: { | |
from: fromNubmer, | |
to: toNumber, |