Code Monkey home page Code Monkey logo

devops-my-ubuntu's People

Contributors

rawiron avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

stetsyuka

devops-my-ubuntu's Issues

install and test SystemTap

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

install jekyll

  • install jekyll
    sudo apt-get install jekyll
  • configure github pages
  • read blog from github pages

install php dev

interpreter, cli, debugger, ...

xdebug, nginx for docker?

for trusty64

sudo apt-get install php5 # 5..5.x
sudo apt-get install php5-cli
sudo apt-get install phpunit # 3.7.x

for wily64

  • php 5.6.x
  • phpunit 4.7.x

build on travis-ci

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.

vim - configure python ide

code completion (IntelliSense) and navigation

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

Python

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

ctags

install exuberant-ctags

apt-get install exuberant-ctags

navigate ctags with tagbar

enable exuberant-ctags

let g:tagbar_ctags_bin = '/usr/bin/ctags-exuberant'

project view

source-code browser NerdTree

snippets

for code snippets UltiSnips is great.

syntax highlighting

syntax on

check syntax and inspect

use syntastic

run and test

:make

install sublime text 3

sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer

fix broken build

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

zsh - docker plugin and aliases

  • Delete all containers
    docker rm $(docker ps -a -q)
  • Delete all images
    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

install R commander

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.

install Java Runtime

java open sdk
oracle java 7 runtime
oracle java 7 webstart
oracle java 8 runtime
oracle java 8 webstart

configure maven 3.1 for ubuntu 14.04

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

kernel config and parameters

kernel config

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

kernel parameters

Listing all available kernel parameters

Using "sysctl -a", the full list of kernel parameters that can be controlled through the sysctl mechanism is displayed, together with their current setting.

Manual setting of kernel parameters

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.