This file contains hidden or 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
IP = `curl ipinfo.io/ip`.delete!("\n") | |
puts IP | |
curl_command = "curl -X PUT \"https://api.cloudflare.com/client/v4/zones/ZONEINFO/dns_records/DOMAIN_INFO\" \ | |
-H \"X-Auth-Email: EMAIL\" \ | |
-H \"X-Auth-Key: API_KEY\" \ | |
-H \"Content-Type: application/json\" \ | |
--data '{\"type\":\"A\",\"name\":\"domain\",\"content\":\"#{IP}\",\"proxied\":true}'\"\"" | |
exec curl_command |
This file contains hidden or 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
function sendFormByEmail(e) | |
{ | |
// Remember to replace this email address with your own email address | |
var email = "[email protected]"; | |
var subject = "Hello Form"; | |
var message = ""; | |
var form = FormApp.getActiveForm(); | |
var formResponses = form.getResponses(); |
This file contains hidden or 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
FROM elixir:latest | |
RUN apt-get update -qq && \ | |
apt-get install -y \ | |
build-essential \ | |
libpq-dev \ | |
nodejs \ | |
npm \ | |
git \ | |
postgresql-client |
This file contains hidden or 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
class TestClass | |
class << self | |
def perform(a:, b:) | |
instance = new(a, b) | |
instance.perform | |
end | |
end | |
def initialize(a:, b:) | |
end |
This file contains hidden or 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
FROM ruby:2.3 | |
MAINTAINER [email protected] | |
# Install apt based dependencies required to run Rails as | |
# well as RubyGems. As the Ruby image itself is based on a | |
# Debian image, we use apt-get to install those. | |
RUN apt-get update && \ | |
apt-get install -y \ | |
build-essential \ | |
nodejs |
This file contains hidden or 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
development: | |
adapter: <%= ENV['adapter'] %> | |
encoding: <%= ENV['encoding'] %> | |
database: <%= ENV['database'] %> | |
host: <%= ENV['host'] %> | |
username: <%= ENV['username'] %> | |
password: <%= ENV['password'] %> | |
pool: 5 | |
test: |