Skip to content

Instantly share code, notes, and snippets.

View alejandro-isaza's full-sized avatar

Alejandro Isaza alejandro-isaza

View GitHub Profile
@alejandro-isaza
alejandro-isaza / set_slack_status.rb
Last active July 6, 2018 23:17
Change your slack status from the command line with custom presets.
#!/usr/bin/env ruby
#
# Instructions:
# 1. Get personal Slack legacy tokens from https://api.slack.com/custom-integrations/legacy-tokens
# 2. Save this in ~/bin/ss and add $HOME/bin to your PATH so that you can invoke it easily.
# 3. Add custom status presets below.
# 4. Run `ss lunch` to test
require 'net/http'
require 'json'