rawiron / devops-my-ubuntu Goto Github PK
View Code? Open in Web Editor NEWclone my ubuntu setup using Ansible playbook
clone my ubuntu setup using Ansible playbook
install instructions on systemtap and Ubuntu Kernel
sudo apt-get install gcc systemtap
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C8CAB6595FDFF622
codename=$(lsb_release -c | awk '{print $2}')
sudo tee /etc/apt/sources.list.d/ddebs.list << EOF
deb http://ddebs.ubuntu.com/ ${codename} main restricted universe multiverse
deb http://ddebs.ubuntu.com/ ${codename}-security main restricted universe multiverse
deb http://ddebs.ubuntu.com/ ${codename}-updates main restricted universe multiverse
deb http://ddebs.ubuntu.com/ ${codename}-proposed main restricted universe multiverse
EOF
sudo apt-get update
sudo apt-get install linux-image-$(uname -r)-dbgsym
interpreter, cli, debugger, ...
xdebug, nginx for docker?
sudo apt-get install php5 # 5..5.x
sudo apt-get install php5-cli
sudo apt-get install phpunit # 3.7.x
sudo apt-get install libfcgi0ldbl
the lib includes the executable cgi-fcgi
which is handy for talking to fcgi directly:
http://stackoverflow.com/questions/30238602/how-to-execute-a-php-file-using-a-php5-fpm-pool-socket
Start as simple as running a syntax check only for the playbooks.
Travis-Ci supports 3 different build environments. This is nicely explained in this document.
Usage of any other build environment requires containers.
To test the ansible scripts against many different distributions or to test against the latest distributions (Ubuntu 16.04 for example) containers are required.
There should be a test procedure which runs locally first. In case the tests pass the code can be pushed to remote.
Pushing to remote and test if things are working on Travis-Ci is a bad idea.
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
for any code completion in vim to work the omnicomplete feature is needed.
omnicomplete is available since vim 7.
filetype plugin on
set omnifunc=syntaxcomplete#Complete
different options for python are available.
all of them need vim to be compiled with the pythoninterp
.
check vim for +python
or +python3
:
vim --version
sudo apt-get install python3-pip
pip3 install future frozendict
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
vim +PluginInstall +qall
cd ~/.vim/bundle/YouCompleteMe
git submodule update --init --recursive
sudo apt-get install cmake
cd ~/.vim/bundle/YouCompleteMe
./install.py --clang-completer
install exuberant-ctags
apt-get install exuberant-ctags
navigate ctags with tagbar
enable exuberant-ctags
let g:tagbar_ctags_bin = '/usr/bin/ctags-exuberant'
source-code browser NerdTree
for code snippets UltiSnips is great.
syntax on
use syntastic
:make
sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer
email
name
difftool
the pre-installed erlang and elixir versions done with kerl and kiex causing the issue
kerl list installations
17.0
17.1
17.3
17.4
17.5
18.0
18.1
18.2
18.2.1
R14B02
R14B03
R14B04
R15B
R15B01
R15B02
R15B03
R16B
R16B01
R16B02
R16B03
R16B03-1
kiex list
kiex elixirs
elixir-1.0.3
=* elixir-1.0.4
# => - current
# =* - current && default
# * - default
docker rm $(docker ps -a -q)
docker rmi $(docker images -q)
for cases an image has more than one tag
docker images <repository-name> | tail -n +2 | awk '{ print $1 ":" $2}' | xargs docker rmi
sudo apt-get install -y docker.io
sudo usermod -aG docker <your username>
sudo service docker start
systemctl enable docker
open the R interpreter (from the command line: R) and run install.package("Rcmdr") in the interpreter. Once this finishes, then run library(Rcmdr).
Allow it to install missing/updated dependencies.
git clone git://git.sv.gnu.org/coreutils
java open sdk
oracle java 7 runtime
oracle java 7 webstart
oracle java 8 runtime
oracle java 8 webstart
copy access and secret key to config files
.s3cfg
if ubuntu 14.04:
maven 3.1, append to .profile
export M2_HOME=/usr/local/apache-maven-3.1
export M2=$M2_HOME/bin
export MAVEN_OPTS="-Xms256m -Xmx512m"
export PATH=$M2:$PATH
build a custom kernel from source:
http://www.linuxtopia.org/online_books/linux_kernel/kernel_configuration/ch08.html
/boot/config-4.8.0-32-generic
Using "sysctl -a", the full list of kernel parameters that can be controlled through the sysctl mechanism is displayed, together with their current setting.
The "sysctl" command can be used to change a kernel setting, e.g.
sysctl -w net.ipv4.conf.eth0.rp_filter=1
These changes affect the currently running kernel. They will be lost on reboot.
To change settings permanently, add an appropriate line to the /etc/sysctl.conf file which is processed during system startup through the /etc/init.d/boot.sysctl script.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.