- Deprecation of imperative assignment
with
improvements- Possibility to use guards
- Possibility to use
else
- Date datatypes
- Addition of escript installation related tasks
- ExUnit diff improvements
- Addition of Make compiler
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
function sourcenv -a file | |
cat $file | sed -e 's/\(^\|export \)/set -xg /' -e 's/=/ /' | source | |
end |
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 | |
PACKAGE=$1 | |
BASE_URL=http://ftp.jaist.ac.jp/pub/Linux/ubuntu | |
BASE_PATH=$HOME/install_root | |
DEB="$PACKAGE.deb" | |
path=$(apt-cache show $PACKAGE | grep "Filename:" | cut -f 2 -d " ") | |
wget $BASE_URL/$path -O $DEB | |
dpkg-deb -x "$DEB" $BASE_PATH |
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
import sqlalchemy | |
from sqlalchemy.orm import sessionmaker | |
from sqlalchemy import Column, Integer, String, Text, DateTime | |
from sqlalchemy.ext.declarative import declarative_base | |
engine = sqlalchemy.create_engine("sqlite:///foo.db", echo=True) | |
Base = declarative_base() |
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 | |
openssl_dir="$1" | |
mkdir -p "$openssl_dir" | |
cd "$openssl_dir" | |
ln -sf /usr/lib/openssl-1.0 lib | |
ln -sf /usr/include/openssl-1.0 include |
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
import os | |
import re | |
import subprocess | |
import requests | |
GITLAB_ENDPOINT = os.environ["GITLAB_ENDPOINT"] | |
GITLAB_TOKEN = os.environ["GITLAB_TOKEN"] |
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
from contextlib import contextmanager | |
import boto3 | |
IP_CHECK_URL = "http://checkip.amazonaws.com/" | |
BASTION_SECURITY_GROUP_NAME = "the security group name of your bastion or server" | |
EC2_REGION = "us-east-1" # or whatever you are deploying to | |
ec2 = boto3.client("ec2", EC2_REGION) |
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
hKRib2R5hqhkZXRhY2hlZMOpaGFzaF90eXBlCqNrZXnEIwEg3nQ4DA/KK/FfgQ41je8KlpKsYBUVWRr5yToexvJSUAcKp3BheWxvYWTFAvB7ImJvZHkiOnsia2V5Ijp7ImVsZGVzdF9raWQiOiIwMTIwZGU3NDM4MGMwZmNhMmJmMTVmODEwZTM1OGRlZjBhOTY5MmFjNjAxNTE1NTkxYWY5YzkzYTFlYzZmMjUyNTAwNzBhIiwiaG9zdCI6ImtleWJhc2UuaW8iLCJraWQiOiIwMTIwZGU3NDM4MGMwZmNhMmJmMTVmODEwZTM1OGRlZjBhOTY5MmFjNjAxNTE1NTkxYWY5YzkzYTFlYzZmMjUyNTAwNzBhIiwidWlkIjoiODA2NzE3ZTcxN2ExZDQ5MmVjNmQzNjk2YjYyYzYxMTkiLCJ1c2VybmFtZSI6InR1dmlzdGF2aWUifSwic2VydmljZSI6eyJuYW1lIjoiZ2l0aHViIiwidXNlcm5hbWUiOiJ0dXZpc3RhdmllIn0sInR5cGUiOiJ3ZWJfc2VydmljZV9iaW5kaW5nIiwidmVyc2lvbiI6MX0sImNsaWVudCI6eyJuYW1lIjoia2V5YmFzZS5pbyBnbyBjbGllbnQiLCJ2ZXJzaW9uIjoiMS4wLjE3In0sImN0aW1lIjoxNDc1Nzk4NDU2LCJleHBpcmVfaW4iOjUwNDU3NjAwMCwibWVya2xlX3Jvb3QiOnsiY3RpbWUiOjE0NzU3OTg0MDYsImhhc2giOiIzNzk3YjAxYjRlNDk2ZTM3MGI3M2VlZjcwZDA3ZDRjNzQ2ZmQ0ZTk1NzY5YjVlNWNhYjMwYTg0MWNkNDNkNWMwMTkyYTcxMDI3YjY1MDY5ZGY0MDIyOTAwMzFkODk3NDYzMDFiZDI1YTg4ZTk1YTZjNDVmOTg3Nzc2YTI4Nzg2YiIsInNlcW5vIjo2Njc1NzZ9LCJwcmV2IjoiNGZjZGI1Zjg5OGIzMWM3NjM1ZGVlZWFjNTgwNDBk |
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
test -d elixir || git clone git://github.com/elixir-lang/elixir.git --depth 1 --single-branch --branch master | |
pushd elixir | |
echo -e 'erlang 18.3' > .tool-versions | |
echo $(which erl) | |
echo $(asdf which erlang) | |
erl +V | |
popd |
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 | |
version="7.0.7" | |
fallback_mirror="http://us1.php.net/get/php-$version.tar.bz2/from/this/mirror" | |
mirrors=$(curl -s https://secure.php.net/get/php-$version.tar.bz2/from/a/mirror | grep -Eo 'http://.+/from/this/mirror') | |
country=$(curl -s ipinfo.io | sed -n 's/\s*"country": "\(.\+\)",/\1/p' | tr '[:upper:]' '[:lower:]') |