State: Draft
Based on the Peatio Stable branch
To the coin daemon's {coin}.conf
file, include the -walletnotify
command:
# Notify when receiving coins
State: Draft
Based on the Peatio Stable branch
To the coin daemon's {coin}.conf
file, include the -walletnotify
command:
# Notify when receiving coins
sudo yum -y update | |
cd /opt | |
sudo wget -c http://download.virtualbox.org/virtualbox/5.1.22/VBoxGuestAdditions_5.1.22.iso -O VBoxGuestAdditions_5.1.22.iso | |
sudo mount VBoxGuestAdditions_5.1.22.iso -o loop /mnt | |
cd /mnt | |
sudo sh VBoxLinuxAdditions.run --nox11 | |
cd /opt | |
sudo rm *.iso |
# Start the old vagrant | |
$ vagrant init centos-6.3 | |
$ vagrant up | |
# You should see a message like: | |
# [default] The guest additions on this VM do not match the install version of | |
# VirtualBox! This may cause things such as forwarded ports, shared | |
# folders, and more to not work properly. If any of those things fail on | |
# this machine, please update the guest additions and repackage the | |
# box. |
:: UPDATE YUM :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | |
sudo yum update -y | |
:: MAKE SWAP ::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | |
sudo dd if=/dev/zero of=/swapfile bs=1024 count=1024k | |
sudo su | |
mkswap /swapfile | |
swapon /swapfile | |
swapon -s |
//validate string length | |
function ValidLen(s,min,max){ | |
if (s.length < min || s.length > max) { return false; } | |
return true; | |
} | |
// validate email | |
function ValidEmail(s){ | |
var check = /^\w+((-\w+)|(\.\w+))*\@\w+((\.|-)\w+)*\.\w+$/; | |
if (!check.test(s)) { return false; } |
# first, fetch the latest refs for all branches. And be sure we have latest master, etc | |
git checkout master | |
git fetch | |
# If any changes from remote, catch our local version up | |
git rebase origin/master | |
# could also be done as |
$ cd ~ | |
$ sudo curl -sS https://getcomposer.org/installer | sudo php | |
$ sudo mv composer.phar /usr/local/bin/composer | |
$ sudo ln -s /usr/local/bin/composer /usr/bin/composer | |
then you can run | |
$ sudo composer install |
This gist assumes:
:: UPDATE YUM :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | |
sudo yum update -y | |
:: INSTALL WEBSERVER ::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | |
sudo yum install httpd24 | |
sudo service httpd start | |
sudo chkconfig httpd on | |
chkconfig --list httpd |