Official setup | Deploying to Heroku | Rails app guide
- Sign into this Slack team: railsgirls19.slack.com
- Come up with a team name
#!/bin/sh | |
sudo apt-get purge -y maven | |
if ! [ -e .semaphore-cache/apache-maven-3.3.3-bin.tar.gz ]; then (cd .semaphore-cache; curl -OL http://mirror.olnevhost.net/pub/apache/maven/maven-3/3.3.3/binaries/apache-maven-3.3.3-bin.tar.gz); fi | |
sudo tar -zxf .semaphore-cache/apache-maven-3.3.3-bin.tar.gz -C /usr/local/ | |
sudo ln -s /usr/local/apache-maven-3.3.3/bin/mvn /usr/bin/mvn | |
echo "Maven is on version `mvn -v`" |
#!/bin/sh | |
# install dependencies | |
sudo apt-get install -yqq libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5 | |
# download and unpack Android SDK | |
wget http://dl.google.com/android/android-sdk_r24.3.3-linux.tgz | |
mkdir /home/runner/android-sdk-linux | |
tar xf android-sdk_r24.3.3-linux.tgz -C /home/runner/ | |
rm android-sdk_r24.3.3-linux.tgz | |
# install necessarry componenets |
if ENV["SEMAPHORE_CACHE_DIR"] | |
config.assets.configure do |env| | |
env.cache = ActiveSupport::Cache::FileStore.new(ENV["SEMAPHORE_CACHE_DIR"]) | |
end | |
end |
DEB="thrift_0.9.3-1_amd64.deb" | |
URL="https://s3-us-west-2.amazonaws.com/container-libraries/$DEB" | |
if ! [ -e $SEMAPHORE_CACHE_DIR/$DEB ]; then (cd $SEMAPHORE_CACHE_DIR; wget $URL); fi | |
sudo dpkg -i $SEMAPHORE_CACHE_DIR/$DEB | |
echo "$(thrift --version) installed" |
#! /usr/bin/env expect -f | |
set otc_pattern "(\d){6}" | |
set name [lindex $argv 0] | |
set server [lindex $argv 1] | |
set secret $env(MFA_SECRET) | |
spawn oathtool --totp -b "$secret" | |
expect otc_pattern | |
set otc $expect_out(buffer) |
#!/usr/bin/env bash | |
chrome_aliases=('/usr/bin/google-chrome' '/usr/bin/google-chrome-stable') | |
wrapper_name="chrome-wrapper" | |
wrapper_install_path="/opt/$wrapper_name" | |
cat <<WRP > $wrapper_install_path | |
#!/bin/bash | |
_kill_proc() { |
#!/usr/bin/env bash | |
sudo bash -c 'echo -e "net.ipv6.conf.all.disable_ipv6 = 1\nnet.ipv6.conf.default.disable_ipv6 = 1\nnet.ipv6.conf.lo.disable_ipv6 = 1" >> /etc/sysctl.conf' | |
sudo sysctl -p &>/dev/null | |
disabled=$(cat /proc/sys/net/ipv6/conf/all/disable_ipv6) | |
[ $disabled == 1 ] && echo "IPv6 disabled" || echo "IPv6 is enabled" |
Official setup | Deploying to Heroku | Rails app guide
#---------------------------------------------- | |
## add this snippet to ./config/application.rb | |
#---------------------------------------------- | |
if ENV["SEMAPHORE_CACHE_DIR"] | |
config.assets.configure do |env| | |
env.cache = ActiveSupport::Cache::FileStore.new("#{ENV["SEMAPHORE_CACHE_DIR"]}/assets-cache") | |
end | |
end | |
#--------------------------------------- |
#!/bin/bash | |
## This script is very hacky way to use VPN only for specific domains. | |
# For example: if you have a VPN subscription and want to access Pandora outside of the USA (may or may not be legal), | |
# you'd run it like "veer ovpn.conf www.pandora.com" | |
# | |
## How it works: | |
# Fetches the domain's IPs and routes their connections through a VPN gateway. | |
# | |
## Requirements: |