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
# !/bin/bash | |
# Put here all the repos you want to back up | |
declare -a repositories=("repo_name") | |
# Path to repos | |
repo_path=/volume1/git/ | |
for repo in "${repositories[@]}"; do | |
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
# rails console test | |
# # or | |
# RAILS_ENV=test rails console | |
require 'capybara/dsl' | |
Capybara.app = app.instance_variable_get("@app") | |
cap = Object.new.instance_eval { extend Capybara::DSL; self } | |
# cap.visit '/' | |
# cap.page.find 'h1' |
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 'open-uri' | |
require 'json' | |
require 'net/http' | |
API_KEY = "YOUR API KEY HERE" | |
DOMAINID = "Your DomainID" | |
RESOURCEID = "The AAA resource ID already created in the DNS dashboard" | |
TARGET = "[remote_addr]" # Drop the brackets when using literal IPs. With [remote_addr] Linode will use the IP from where the request is received | |
# Uncomment this line if the SSL certificate is complaining. Disclosure:This is not a safe method |