Skip to content

Instantly share code, notes, and snippets.

View riuvshin's full-sized avatar
🏠
Working from home

Roman I. riuvshin

🏠
Working from home
View GitHub Profile
@riuvshin
riuvshin / test.sh
Last active March 23, 2016 11:11
test.sh
#!/bin/bash
resolveVersions() {
if [[ -z "${RELEASE_VERSION}" ]] || [[ -z "${RELEASE_NEXT_VERSION}" ]] ; then
echo "NOT SET AND CALCULATE"
VERSION=123
NEXT_DEV_VERSION=1234
else
echo "use what is set"
VERSION=${RELEASE_VERSION}
@riuvshin
riuvshin / terminal.js
Created March 22, 2016 11:04
terminal.js
(function() {
function CommandHistory() {
this.histories = []
this.index = 0
}
CommandHistory.prototype = {
_get: function() {
if (this.index >= 0 && this.histories.length <= this.index) {
@riuvshin
riuvshin / vagrant_debug_log
Created February 2, 2016 11:38
vagrant_debug_log
INFO global: Vagrant version: 1.8.1
INFO global: Ruby version: 2.2.3
INFO global: RubyGems version: 2.4.5.1
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded"
INFO global: VAGRANT_OLD_ENV_LC_NUMERIC="uk_UA.UTF-8"
INFO global: VAGRANT_OLD_ENV_SSH_AUTH_SOCK="/run/user/1000/keyring-KO9XNT/ssh"
INFO global: VAGRANT_OLD_ENV_LANG="en_US.UTF-8"
INFO global: VAGRANT_OLD_ENV_HISTCONTROL="ignoreboth"
INFO global: VAGRANT_OLD_ENV_UPSTART_EVENTS="started starting"
INFO global: VAGRANT_INSTALLER_VERSION="2"
@riuvshin
riuvshin / Vagrantfile
Created December 11, 2015 14:16
linux_dev_machine
box = 'linux_dev_machine'
url = 'https://install.codenvycorp.com/linux_dev_machine.box'
ram = '8192'
hostname = 'che'
domain = 'box.com'
cpus = '4'
bridge = 'eth0'
Vagrant.configure("2") do |config|
config.vm.box = box
@riuvshin
riuvshin / dawda
Created December 1, 2015 09:05
tesfa
FROM ubuntu
RUN sleep 2m
CMD ["echo", "hello"]
FROM ubuntu
CMD ["tailf", "/dev/null"]
@riuvshin
riuvshin / test
Last active November 23, 2015 14:15
test
FROM ubuntu
RUN sleep 10m
CMD ["tailf", "/dev/null"]
FROM rakkaus/ubunta_jdk8
FROM ubuntu_jdk8_centos
@riuvshin
riuvshin / gist:952499155745ef04c51b
Created October 21, 2015 15:11
linux_dev_machine
box = 'linux_dev_machine'
url = 'https://install.codenvycorp.com/linux_dev_machine.box'
ram = '3072'
hostname = 'dev'
domain = 'box.com'
cpus = '2'
bridge = 'eth0'
Vagrant.configure("2") do |config|
config.vm.box = box