Skip to content

Instantly share code, notes, and snippets.

View olegslavkin's full-sized avatar

Slavkin Oleg olegslavkin

  • Russia, Moscow
View GitHub Profile
@olegslavkin
olegslavkin / R1
Created April 3, 2016 17:16
Базовая конфигурация для проекта "CCIE за год" http://ccie.linkmeup.ru/
hostname R1
!
interface Loopback0
ip address 180.1.1.1 255.255.255.255
ipv6 address 2001:C0FF:EE:1::1:1/128
!
interface Ethernet0/1
no shutdown
description to SW1 E0/0
no ip address
@olegslavkin
olegslavkin / unifi.sh
Last active February 19, 2020 11:48
UniFi CentOS7 install
#!/bin/bash
# Install UniFi Controller. Check CentOS 7 (7.0.1406)
# Date: 28/02/2016
# Step 1. Add mongo-db repo
cat <<EOF > /etc/yum.repos.d/mongodb.repo
[mongodb]
name=MongoDB Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/
gpgcheck=0
@olegslavkin
olegslavkin / klish.sh
Last active February 20, 2024 14:11
Install klish util
#!/bin/bash
# Check Ubuntu 14.04.3 (amd86)
# Install klish (The klish is a framework for implementing a CISCO-like CLI on a UNIX systems. It is configurable by XML files. The KLISH stands for Kommand Line Interface Shell)
# http://libcode.org/projects/klish/
# Author: oleg@slavkin.info
echo "Step 0. Update apt-get"
sudo apt-get update
echo "Step 1. Install tools"
@olegslavkin
olegslavkin / ovs.sh
Last active June 20, 2022 12:08
Install Openvswitch from source (Ubuntu 14.04.3 Server)
!#/bin/bash
# Install openvswitch Ubuntu 14.04.3
# Author: Oleg Slavkin (oleg@slavkin.info)
echo "-------------------------------"
echo "Step 1. Install git package"
echo "-------------------------------"
sudo apt-get update
sudo apt-get -y install git
@olegslavkin
olegslavkin / mininet.sh
Created February 13, 2016 12:47
Install mininet (Ubuntu 14.04.3 Server)
!#/bin/bash
# Install mininet (check Ubuntu 14.04.3)
# Author Oleg Slavkin (oleg@slavkin.info)
echo "Step 1. Install packages"
sudo apt-get install -y pyflakes pep8 pylint python-pexpect socat iperf iproute help2man openssh-client
echo "Step 2. Clone mininet git Repo"
cd ~/
git clone git://github.com/mininet/mininet
@olegslavkin
olegslavkin / ryu.sh
Created February 13, 2016 12:46
Install Ryu Controller (Ubuntu 14.04.3 Server)
#!/bin/bash
# Install RYU (Ubuntu 14.04.3)
# Author: Oleg Slavkin
echo "Step 1. Install tools"
sudo apt-get -y install git python-pip python-dev
echo "Step 2. Install python packages"
sudo apt-get -y install python-eventlet python-routes python-webob python-paramiko
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
Documented at
http://linux.die.net/man/5/fonts-conf
To check font mapping run the command at terminal
$ fc-match 'helvetica Neue'
@olegslavkin
olegslavkin / qemu-arm.help.txt
Last active July 7, 2019 15:52
qemu arm help
usage: qemu-arm [options] program [arguments...]
Linux CPU emulator (compiled for arm emulation)
Options and associated environment variables:
Argument Env-variable Description
-h print this help
-g port QEMU_GDB wait gdb connection to 'port'
-L path QEMU_LD_PREFIX set the elf interpreter prefix to 'path'
-s size QEMU_STACK_SIZE set the stack size to 'size' bytes
@olegslavkin
olegslavkin / .bashrc
Created December 19, 2013 11:40
.bashrc CLFS
clfs@dev-1 ~ $ cat .bashrc
set +h
umask 022
CLFS=/mnt/clfs
LC_ALL=POSIX
PATH=${CLFS}/cross-tools/bin:/bin:/usr/bin
export CLFS LC_ALL PATH
unset CFLAGS
unset CXXFLAGS
export CLFS_HOST="x86_64-cross-linux-gnu"
@olegslavkin
olegslavkin / QEMU ARM CPU list.txt
Created December 19, 2013 11:31
List ARM CPU support qemu-1.7.50
slavkin@dev-1 /mnt/qemu/qemu $ qemu-system-arm -cpu help
Available CPUs:
arm1026
arm1136
arm1136-r2
arm1176
arm11mpcore
arm926
arm946
cortex-a15