State: Draft
Based on the Peatio Stable branch
To the coin daemon's {coin}.conf
file, include the -walletnotify
command:
# Notify when receiving coins
#!/usr/bin/env sh | |
# pre-commit.sh | |
STASH_NAME="pre-commit-$(date +%s)" | |
ROOT_DIR="$(git rev-parse --show-toplevel)" | |
BUILD_DIR="${ROOT_DIR}/target" | |
BRANCH_NAME=$(git branch | grep '*' | sed 's/* //') | |
RED='\033[1;31m' | |
GREEN='\033[1;32m' | |
YELLOW='\033[1;33m' |
State: Draft
Based on the Peatio Stable branch
To the coin daemon's {coin}.conf
file, include the -walletnotify
command:
# Notify when receiving coins
language: ruby | |
rvm: | |
- 2.2.2 | |
database: | |
- cp mongoid.yml.example mongoid.yml | |
- bundle exec db:create db:migrate | |
services: | |
- redis |
pragma solidity ^0.4.6; | |
/// Implements ERC 20 Token standard: https://github.com/ethereum/EIPs/issues/20 | |
/// @title Abstract token contract - Functions to be implemented by token contracts. | |
contract AbstractToken { | |
// This is not an abstract function, because solc won't recognize generated getter functions for public variables as functions | |
function totalSupply() constant returns (uint256 supply) {} | |
function balanceOf(address owner) constant returns (uint256 balance); | |
function transfer(address to, uint256 value) returns (bool success); |
I hereby claim:
To claim this, I am signing this object:
https://www.digitalocean.com/community/tutorials/how-to-create-a-sudo-user-on-ubuntu-quickstart
# Create new user with sudo
adduser develop
usermod -aG sudo develop
# swith to sudo | |
sudo -i | |
# create swap | |
touch /2GiB.swap | |
chattr +C /2GiB.swap | |
fallocate -l 2048m /2GiB.swap | |
chmod 600 /2GiB.swap | |
mkswap /2GiB.swap |
require 'logger' | |
$logger = Logger.new(STDOUT) | |
require 'active_support/cache' | |
$cache = ActiveSupport::Cache.lookup_store(:memory_store) | |
$cache.logger = $logger | |
$cache.clear | |
class EtagMiddleware |
require 'csv' | |
module Exporter | |
DEFAULT_EXPORT_TABLES = [ FaceNew::User ] | |
DESTINATION_FOLDER = "tmp/" | |
def self.included(klass) | |
klass.extend ClassLevelMethods | |
end |
deploy: | |
- shell: | |
- echo $(ansible --version) | |
- cd ansible && erb secret.yml.erb > secret.yml | |
- ./bin/ansible-play -vvv -l production -t deploy -e revision=$CI_BUILD_SHA | |
branch: master | |
- shell: | |
- echo $(ansible --version) | |
- cd ansible && erb secret.yml.erb > secret.yml | |
- ./bin/ansible-play -vvv -l staging -t deploy -e revision=$CI_BUILD_SHA |