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 https://github.com/akishin/ansible-playbooks/blob/master/snippets/add_third_party_repositories_for_yum.yml | |
--- | |
- hosts: all | |
user: root | |
vars: | |
gpg_keys: | |
- http://apt.sw.be/RPM-GPG-KEY.dag.txt | |
- http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6 | |
- http://rpms.famillecollet.com/RPM-GPG-KEY-remi | |
repo_rpms: |
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
cd ~/tmp | |
curl -O http://tsung.erlang-projects.org/dist/tsung-1.5.1.tar.gz | |
tar xfz tsung-1.5.1.tar.gz | |
cd tsung-1.5.1 | |
./configure --prefix=/opt/tsung-1.5.1 | |
make | |
sudo make install | |
for f in `ls /opt/tsung-1.5.1/bin`; do sudo ln -s /opt/tsung-1.5.1/bin/$f /usr/local/bin/$f; done | |
for f in `ls /opt/tsung-1.5.1/lib/tsung/bin`; do sudo ln -s /opt/tsung-1.5.1/lib/tsung/bin/$f /usr/local/bin/$f; done | |
cd .. |
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
read_lines(Acc) -> | |
case file:read_line(standard_io) of | |
{ok, Line} -> | |
Line2 = string:strip(Line, right, $\n), | |
read_lines([Line2 | Acc]); | |
eof -> | |
lists:reverse(Acc) | |
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
virtualenv env --no-site-packages | |
. env/bin/activate | |
pip install pytest==2.6.1 | |
pip install requests==2.3.0 | |
pip install xmltodict==0.9.0 | |
pip install hexdump==2.0 | |
pip freeze > requirements.txt |
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 | |
if [[ $# -lt 1 ]]; then | |
echo "Usage: mono-publish-tar VERSION" | |
exit 1 | |
fi | |
ver=$1 | |
dir_name=poweralleyui-${ver} | |
tar_name=${dir_name}.tar.gz |
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
1. Download and Install VirtuaBox 4.3.20 | |
---------------------------------------- | |
Windows | |
http://download.virtualbox.org/virtualbox/4.3.20/VirtualBox-4.3.20-96997-Win.exe | |
Linux | |
https://www.virtualbox.org/wiki/Linux_Downloads | |
2. Start Virtualbox UI and make sure you are able to create 64-bit guests | |
------------------------------------------------------------------------- | |
Enable virtualization in BIOS otherwise. |
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
#!/usr/bin/env escript | |
% -*- mode: erlang -*- | |
main([BeamFile]) -> | |
{ok,{_,[{abstract_code,{_,AC}}]}} = beam_lib:chunks(BeamFile,[abstract_code]), | |
io:fwrite("~s~n", [erl_prettypr:format(erl_syntax:form_list(AC))]). |
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
#!/usr/bin/env python | |
import json | |
import sys, subprocess | |
def get_history_ids(image_id): | |
p = subprocess.Popen("docker history -q " + image_id, | |
stdout=subprocess.PIPE, | |
shell=True) | |
(out, _err) = p.communicate() |
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
virtualenv env --no-site-packages | |
. env/bin/activate | |
pip install pytest==2.6.1 | |
pip install requests==2.3.0 | |
pip install git+https://github.com/ten0s/oneapi-python.git@my_changes |
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
virtualenv env --no-site-packages | |
. env/bin/activate | |
pip install pytest==2.6.1 | |
pip install git+https://github.com/pysimplesoap/pysimplesoap.git@1.13 | |
pip install requests==2.3.0 | |
pip install xmltodict==0.9.0 | |
pip install hexdump==2.0 |