Skip to content

Instantly share code, notes, and snippets.

View robsonvn's full-sized avatar

Robson Nascimento robsonvn

View GitHub Profile
@robsonvn
robsonvn / html_for_international_calling coes.htm
Last active March 29, 2023 20:27 — forked from andyj/html_for_international_calling coes.htm
HTML <select> international calling codes for each country
<!-- using semantic ui to display flags -->
<div class="field">
<label>Country</label>
<div class="ui fluid search selection dropdown">
<input type="hidden" name="country" value="">
<i class="dropdown icon"></i>
<div class="default text">Select Country</div>
<div class="menu">
<div class="item" data-value="64"><i class="nz flag"></i>New Zealand (+64)</div>
<div class="item" data-value="61"><i class="au flag"></i>Australia (+61)</div>
@robsonvn
robsonvn / html_for_international_calling coes.htm
Created August 31, 2017 02:25 — forked from andyj/html_for_international_calling coes.htm
HTML <select> international calling codes for each country
<!-- country codes (ISO 3166) and Dial codes. -->
<select name="countryCode" id="">
<option data-countryCode="GB" value="44" Selected>UK (+44)</option>
<option data-countryCode="US" value="1">USA (+1)</option>
<optgroup label="Other countries">
<option data-countryCode="DZ" value="213">Algeria (+213)</option>
<option data-countryCode="AD" value="376">Andorra (+376)</option>
<option data-countryCode="AO" value="244">Angola (+244)</option>
<option data-countryCode="AI" value="1264">Anguilla (+1264)</option>
<option data-countryCode="AG" value="1268">Antigua &amp; Barbuda (+1268)</option>
apt-get update -y
add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update -y
apt-get --no-install-recommends -y install build-essential pkg-config erlang libicu-dev libmozjs185-dev libcurl4-openssl-dev
apt install -y -s openjdk-7-jdk
wget https://archive.apache.org/dist/maven/maven-3/3.2.5/binaries/apache-maven-3.2.5-bin.tar.gz
sudo tar -xvzf apache-maven-3.2.5-bin.tar.gz
diff --git a/dev/run b/dev/run
index 781c715..f8bdbed 100755
--- a/dev/run
+++ b/dev/run
@@ -188,6 +188,7 @@ def setup_configs(ctx):
"cluster_port": cluster_port,
"backend_port": backend_port,
"fauxton_root": fauxton_root,
+ "clouseau_name": "clouseau%d@127.0.0.1" % (idx+1),
"uuid": "fake_uuid_for_dev"
apt-get update
apt-get --no-install-recommends -y install build-essential pkg-config erlang libicu-dev libmozjs185-dev libcurl4-openssl-dev
erl -eval 'erlang:display(erlang:system_info(otp_release)), halt().' -noshell
wget http://www-us.apache.org/dist/couchdb/source/2.0.0/apache-couchdb-2.0.0.tar.gz
tar -xvzf apache-couchdb-2.0.0.tar.gz
cd apache-couchdb-2.0.0/
./configure
make release