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
| /** | |
| * Sample React Native App | |
| * https://github.com/facebook/react-native | |
| * @flow | |
| */ | |
| var Dimensions = require('Dimensions'); | |
| var { width, height, scale } = Dimensions.get('window'); //get window size | |
| import React, { Component } from 'react'; |
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
| #cloud-config | |
| repo_update: true | |
| repo_upgrade: all | |
| packages: | |
| - docker | |
| runcmd: | |
| - systemctl start docker | |
| - systemctl enable docker |
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
| config vpn ipsec phase1-interface | |
| edit <<ID>>-0 | |
| set interface "wan1" | |
| set dpd on-idle | |
| set local-gw 192.168.179.2 | |
| set dhgrp 2 | |
| set proposal aes128-sha1 | |
| set keylife 28800 | |
| set remote-gw <<Remote-Global-IP-0>> | |
| set psksecret <<Secret-Key-0>> |
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
| variable "stage" {} | |
| variable "access_key" {} | |
| variable "secret_key" {} | |
| variable "region" {} | |
| provider "aws" { | |
| access_key = "${var.access_key}" | |
| secret_key = "${var.secret_key}" | |
| region = "${var.region}" | |
| } |
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
| alternatives --config mta |
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
| Bleacon = require('bleacon'); | |
| Bleacon.startScanning(); | |
| Bleacon.on('discover', function(bleacon) { | |
| console.dir(bleacon); | |
| }); |
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
| 'use strict'; | |
| function slack_post(message) { | |
| var Slack = require('slack-node'); | |
| var slack = new Slack(); | |
| slack.setWebhook(process.env.WEBHOOK_URL); | |
| slack.webhook({ | |
| channel: process.env.CHANNEL, |
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
| require 'pg' | |
| require "active_record" | |
| ActiveRecord::Base.establish_connection( | |
| :adapter=>"postgresql", | |
| :database =>"postgres", | |
| :username=>"postgres", | |
| :password=>"password", | |
| ) |
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
| require 'capistrano/setup' | |
| require 'capistrano/deploy' | |
| require 'capistrano/rails/console' | |
| require 'capistrano/rails' | |
| require 'capistrano/bundler' | |
| require 'capistrano/rbenv' | |
| require 'capistrano/rails/assets' | |
| require 'capistrano3/unicorn' | |
| require 'capistrano3/ridgepole' | |
| require 'capistrano/delayed-job' |
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
| require 'capistrano/setup' | |
| require 'capistrano/deploy' | |
| require 'capistrano/rails' | |
| require 'capistrano/rails/assets' | |
| require 'capistrano/rails/migrations' | |
| require 'capistrano/rbenv' | |
| require 'capistrano/bundler' | |
| require 'capistrano/locally' | |
| # Loads custom tasks from `lib/capistrano/tasks' if you have any defined. |