commit a2d7a715ea906b821180de2e65a731c60cca1353
parent 73df73037dfd03d7aad1c5da9c35fc786037e15e
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Tue, 4 Sep 2018 18:16:12 +0200
Hid some sensitive data
Discogs API token is now set from an environment variable.
Diffstat:
3 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -1,3 +1,3 @@
batteryCheck.scpt
.DS_Store
-shpotify.cfg
+secret_env_variables
diff --git a/dotfiles/bin/itunes_style_getter_helper.rb b/dotfiles/bin/itunes_style_getter_helper.rb
@@ -1,7 +1,10 @@
require "discogs-wrapper" # Needed for API access
-# Remove this if sharing. This is required and unique for each user.
-my_user_token = ENV["DISCOGS_API_TOKEN"]
+my_user_token = ENV['DISCOGS_API_TOKEN']
+
+if my_user_token == nil
+ raise "No user token set."
+end
# Create a wrapper
wrapper=Discogs::Wrapper.new("iTunesStyleGetter", user_token: my_user_token)
diff --git a/dotfiles/commonprofile b/dotfiles/commonprofile
@@ -1,4 +1,6 @@
#!/bin/bash
+source ~/.secret_env_variables
+
### SIMPLE COMMANDS ###
alias c="clear"
alias fucking="sudo"
@@ -207,7 +209,7 @@ fi
### HOMEBREW VARIABLE CHANGES ###
export EDITOR="vim"
-export HOMEBREW_EDITOR="atom"
+export HOMEBREW_EDITOR="vim"
CASK_REPO=$(brew --repository)/Library/Taps/homebrew/homebrew-cask
export CASK_REPO