Skip to content

Instantly share code, notes, and snippets.

View idvoretskyi's full-sized avatar
💭
🇺🇦

Ihor Dvoretskyi idvoretskyi

💭
🇺🇦
View GitHub Profile
@idvoretskyi
idvoretskyi / yaourt.conf
Last active August 29, 2015 14:07
yaourt.conf
# Download this file to /etc/pacman.d/ or paste its' contents to the end of /etc/pacman.conf
[archlinuxfr]
SigLevel = Never
Server = http://repo.archlinux.fr/$arch
@idvoretskyi
idvoretskyi / linux_tips&tricks.sh
Last active April 1, 2021 11:46
Linux Tips&tricks.sh
########### Benchmark
wget -qO- bench.sh | bash
curl -Lso- bench.sh | bash
########### User management
# allow superuser access without password
## Modified commands
alias diff='colordiff' # requires colordiff package
alias grep='grep --color=auto'
alias more='less'
alias df='df -h'
alias du='du -c -h'
alias mkdir='mkdir -p -v'
alias nano='nano -w'
alias ping='ping -c 5'
= Arch Linux step-by-step installation =
= http://blog.fabio.mancinelli.me/2012/12/28/Arch_Linux_on_BTRFS.html =
== Boot the installation CD ==
== Create partition ==
cfdisk /dev/sda
* Create a partition with code 8300 (Linux)
@idvoretskyi
idvoretskyi / local.conf
Created July 9, 2015 16:51
devstack local.conf
[[local|localrc]]
FLOATING_RANGE=192.168.1.224/27
FIXED_RANGE=10.11.12.0/24
FIXED_NETWORK_SIZE=256
FLAT_INTERFACE=eth0
ADMIN_PASSWORD=admin
MYSQL_PASSWORD=admin
RABBIT_PASSWORD=admin
SERVICE_PASSWORD=admin
SERVICE_TOKEN=admin
@idvoretskyi
idvoretskyi / DevStack deployment on Ubuntu with Murano
Last active April 1, 2017 06:08
DevStack deployment on Ubuntu with Murano
# Deploy an Ubuntu 14.04 host;
# Setup host:
# Set up NAT forwarding:
sudo iptables -t nat -I POSTROUTING -o eth0 -j MASQUERADE
# Install git package
apt-get install git
# Clone and prepare the DevStack repo
git clone https://git.openstack.org/openstack-dev/devstack
cd devstack && git checkout stable/kilo
# Install Murano:
@idvoretskyi
idvoretskyi / 0_reuse_code.js
Created December 31, 2015 09:00
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@idvoretskyi
idvoretskyi / interfaces
Last active February 2, 2016 16:34
Bridge setup for KVM/libvirt
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto em1
iface em1 inet dhcp
@idvoretskyi
idvoretskyi / local.conf.murano.txt
Last active February 17, 2016 21:02
local.conf.murano
[[local|localrc]]
# Minimal config
ADMIN_PASSWORD=admin
DEST=/opt/stack
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
MYSQL_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
SERVICE_TOKEN=a682f596-76f3-11e3-b3b2-e716f9080d50
#/bin/bash
# Environmental variables for installing the Docker-based multi-node environment
# Master node IP address; for the local environment put "127.0.0.1"
export MASTER_IP="127.0.0.1"
# Desired Kubernetes version
# to set a variable to the latest released version (inc. alpha & beta), uncomment the following line:
# export K8S_VERSION=$(curl -sS https://storage.googleapis.com/kubernetes-release/release/stable.txt)