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
set _JAVA_OPTIONS=-DsocksProxyHost=127.0.0.1 -DsocksProxyPort=8181 | |
rem alternatively, | |
rem set JAVA_TOOL_OPTIONS=-DsocksProxyHost=127.0.0.1 -DsocksProxyPort=8181 | |
"SDK Manager" |
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
wget https://download.libsodium.org/libsodium/releases/libsodium-0.6.0.tar.gz | |
tar zvfx libsodium-0.6.0.tar.gz | |
cd libsodium-0.6.0/ | |
./configure --prefix=`realpath .`-bin | |
make && make install | |
cd .. | |
#diff --git a/SConstruct b/SConstruct | |
#index a4dca74..024e5e0 100644 | |
#--- a/SConstruct |
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
openssl rand 256|tr -dc '12345!@#$%qwertQWERTasdfgASDFGzxcvbZXCVB'|head -c12 |
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
(mainly quoted from http://n3mesisfixx.blogspot.com/2013/07/configuring-exim4-to-route-to-many.html) | |
0. manage domain "enterprisedomain.com" and mx record and PTR/ip reverse name | |
1. install debian | |
2. setup exim4 domains | |
run $dpkg-reconfigure exim4-config' | |
set "type" as internet | |
set "mail name" to *somelocalname* eg. debian or change /etc/mailname+/etc/hosts | |
set "other dest domain"/dc_other_hostnames as "*somelocalname*; enterprisedomain.com;", make sure *somelocalname* in the list. | |
3. enable virtual alias |
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 | |
# | |
# edit fetsh.lst as a TSV file and press 'q' to stop polling | |
# poll period: 1 second | |
# | |
while [ 1 ] | |
do | |
read -t 1 -n 1 char | |
if [[ $char == 'q' ]] | |
then |
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
#apt-get install bundler | |
git clone https://github.com/stellar/xdrgen.git | |
bundle install --path vendor/bundle | |
bundle exec bin/xdrgen |
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
#apt-get install npm | |
#ln -s /usr/bin/nodejs /usr/bin/node | |
echo 'prefix = ${HOME}/.npm-packages' >> ~/.npmrc | |
git clone https://github.com/stellar/js-stellar-base.git && cd js-stellar-base | |
npm install -g babel | |
npm install | |
babel-node examples/test.js |
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
PRAGMA journal_size_limit=0; |
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
$sbt | |
> projects | |
> project <subproject> | |
> set scalacOptions += "-Xlog-implicits" | |
> session list-all |
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
/***************************************************************************** | |
* QuantCup 1: Price-Time Matching Engine | |
* | |
* Submitted by: voyager | |
* | |
* Design Overview: | |
* In this implementation, the limit order book is represented using | |
* a flat linear array (pricePoints), indexed by the numeric price value. | |
* Each entry in this array corresponds to a specific price point and holds | |
* an instance of struct pricePoint. This data structure maintains a list |