Skip to content

Instantly share code, notes, and snippets.

View legal90's full-sized avatar

Mikhail Zholobov legal90

View GitHub Profile
@legal90
legal90 / Vagrantfile
Last active August 29, 2015 13:58
Vagrant Parallels: Customize Smart Guard
# This is a part of Vagrantfile
# Use SmartGuard to making regular backups
#
# More details
# KB: http://kb.parallels.com/en/8827
# Documentation: http://parallels.github.io/vagrant-parallels/docs/configuration.html
#
# --sg-interval is set in seconds!
config.vm.provider "parallels" do |v|
@legal90
legal90 / gist:53ead6e5539387cc240d
Created December 6, 2014 21:09
opscode-erchef is crashed
2014-12-07 01:08:54.163 [error] gen_server <0.726.0> terminated with reason: socket_closed_unexpectedly
2014-12-07 01:08:54.163 [error] CRASH REPORT Process <0.726.0> with 0 neighbours exited with reason: socket_closed_unexpectedly in gen_server:terminate/6 line 744
2014-12-07 01:08:54.163 [error] Supervisor {<0.724.0>,amqp_connection_sup} had child at module undefined at <0.726.0> exit with reason socket_closed_unexpectedly in context child_terminated
2014-12-07 01:08:54.163 [error] Supervisor {<0.724.0>,amqp_connection_sup} had child at module undefined at <0.726.0> exit with reason reached_max_restart_intensity in context shutdown
2014-12-07 01:08:54.164 [error] "Could not connect, scheduling reconnect.", error: {{error,{badmatch,{error,{auth_failure_likely,{socket_closed_unexpectedly,{gen_server,call,[<0.726.0>,connect,infinity]}}}}},[{bunny_util,connect,1,[{file,"src/bunny_util.erl"},{line,191}]},{gen_bunny_mon,do_connect,3,[{file,"src/gen_bunny_mon.erl"},{line,192}]},{gen_bunny_mon,handle_call,3,[{file,
### Keybase proof
I hereby claim:
* I am legal90 on github.
* I am legal90 (https://keybase.io/legal90) on keybase.
* I have a public key whose fingerprint is FFE0 68B8 DC55 A2A3 E47A B6F7 51D5 F2BC DA0D 2A66
To claim this, I am signing this object:
$ ifconfig -a
docker0 Link encap:Ethernet HWaddr 02:42:e3:b1:01:53
inet addr:172.17.42.1 Bcast:0.0.0.0 Mask:255.255.0.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
eth0 Link encap:Ethernet HWaddr 00:1c:42:81:8c:f6
require 'atlas'
require 'semantic'
require 'net/http'
USERNAME = 'parallels'
DESC = '* Parallels Tools v11.1.0'
PROVIDER = 'parallels'
Atlas.configure do |config|
config.access_token = ENV['ATLAS_TOKEN']
@legal90
legal90 / console.sh
Last active May 11, 2016 17:40
Vault renews a token at the first time only
# Create a new token
$ vault token-create -orphan -policy "default" -ttl 2000000s
Key Value
token 40b09a00-083b-faec-6520-39daedb62003
token_accessor 1eb62684-c263-85b8-78d7-d233f095988d
token_duration 2000000
token_renewable true
token_policies [default]
# Try to renew it
@legal90
legal90 / Text.txt
Last active January 18, 2017 17:13
Trying to debug Vagrant 1.9.0 with Bundler
$ bundle exec ruby --version
ruby 2.2.4p230 (2015-12-16 revision 53155) [x86_64-darwin15]
===============
$ bundle
Resolving dependencies...
Using rake 11.3.0
Using addressable 2.3.8
#
# Copyright:: Copyright (c) 2013-2014 Chef Software, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@legal90
legal90 / all-xorg-libs.rb
Last active June 5, 2017 12:47
Omnibus: Bunch software loader
# http://www.linuxfromscratch.org/blfs/view/8.0/x/x7lib.html
name 'all-xorg-libs'
default_version '1.0.0'
license :project_license
skip_transitive_dependency_licensing true
dependency 'fontconfig'
dependency 'libxcb'