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
# config/initializers/omnicontacts.rb | |
Rails.application.middleware.use OmniContacts::Builder do | |
importer :live, 'client_id', 'client_secret', {redirect_path: "/invitations/live/contact_callback"} | |
end | |
class OmniContacts::Importer::Live < OmniContacts::Importer::Hotmail | |
def initialize *args | |
super *args |
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 "uri" | |
require "http/client" | |
require "file_utils" | |
print "🤖 Fetching sentry files..." | |
# Fetch sentry.cr | |
sentry_uri = "https://raw.githubusercontent.com/samueleaton/sentry/49a9a9cf1cdd87f0156206322df198c988132b6f/src/sentry.cr" | |
fetch_sentry_response = HTTP::Client.get sentry_uri |
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
cat << 'EOF' >> redsocks.conf | |
base { | |
log_debug = off; | |
log_info = on; | |
log = "syslog:daemon"; | |
daemon = on | |
user = redsocks; | |
group = redsocks; | |
redirector = iptables; | |
} |
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
sudo iptables -t nat -A OUTPUT -p tcp --dport 80 -j REDSOCKS | |
sudo iptables -t nat -A OUTPUT -p tcp --dport 443 -j REDSOCKS |