Skip to content

Instantly share code, notes, and snippets.

View trinitronx's full-sized avatar
⛩️
Zazen

James Cuzella trinitronx

⛩️
Zazen
View GitHub Profile
--- /Applications/Vagrant/embedded/gems/specifications/vagrant-1.6.3.gemspec.old 2014-08-20 15:05:50.000000000 -0600
+++ /Applications/Vagrant/embedded/gems/specifications/vagrant-1.6.3.gemspec 2014-08-18 15:03:52.000000000 -0600
@@ -38,6 +38,7 @@
s.add_development_dependency(%q<minitest>, ["~> 2.5.1"])
s.add_development_dependency(%q<mocha>, [">= 0"])
s.add_development_dependency(%q<rspec>, ["~> 2.14.0"])
+ s.add_dependency(%q<nokogiri>, ["= 1.6.2.1"]) ## Added to fix nokogiri install bug [tracked here](https://github.com/mitchellh/vagrant/issues/3769#issuecomment-50667941)
else
s.add_dependency(%q<bundler>, ["< 1.7.0", ">= 1.5.2"])
s.add_dependency(%q<childprocess>, ["~> 0.5.0"])
@trinitronx
trinitronx / start_x11vnc.sh
Last active December 11, 2022 13:33
A script to start x11vnc server and retry with magic cookie if a desktop session is not created. This allows one to SSH into a box with only a gdm or login screen but no existing desktop session and start x11vnc to login the first time.
#!/bin/bash
DEFAULT_DISPLAY=:0
X11VNC_DISPLAY="$DEFAULT_DISPLAY"
if [ -x /usr/bin/x11vnc ]; then
[ "$1" == '-nocache' ] && CACHE_FLAG='-noncache' || CACHE_FLAG='-noncache'
[ "$2" == '-guess' ] && GUESS_FLAG='-auth guess' || GUESS_FLAG=''
[ -f /root/.vnc/passwd ] && PASSWORD="/root/.vnc/passwd"
[ -f $HOME/.vnc/passwd ] && PASSWORD="$HOME/.vnc/passwd"
[ ! -z "$PASSWORD" ] && x11vnc -display $X11VNC_DISPLAY -xkb -rfbauth $PASSWORD -rfbport 5900 -shared -forever -nowf -norc -notruecolor -bg $GUESS_FLAG $CACHE_FLAG -noxdamage
@trinitronx
trinitronx / start_x11vnc.sh
Created June 10, 2014 06:30
A script to start x11vnc server and retry with magic cookie if a desktop session is not created. This allows one to SSH into a box with only a gdm or login screen but no existing desktop session and start x11vnc to login the first time.
#!/bin/bash
if [ -x /usr/bin/x11vnc ]; then
[ "$1" == '-nocache' ] && CACHE_FLAG='-noncache' || CACHE_FLAG='-noncache'
[ "$2" == '-guess' ] && GUESS_FLAG='-auth guess' || GUESS_FLAG=''
[ -f /root/.vnc/passwd ] && PASSWORD="/root/.vnc/passwd"
[ -f $HOME/.vnc/passwd ] && PASSWORD="$HOME/.vnc/passwd"
[ ! -z "$PASSWORD" ] && x11vnc -display :0 -xkb -rfbauth $PASSWORD -rfbport 5900 -shared -forever -nowf -norc -notruecolor -bg $GUESS_FLAG $CACHE_FLAG -noxdamage
EXIT_CODE=$?
if [ $EXIT_CODE -ne 0 ]; then
@trinitronx
trinitronx / chefspec-rubocop-results.log
Last active August 29, 2015 14:02
RuboCop results for chefspec using HoundCI rubocop.yml file (source: https://gist.github.com/skisulli/10758684)
Inspecting 921 files
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCWCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCWCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCWCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCWCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCWWCCCCCCCCCCCCCCCCCCCCCCWCWCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCWCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCWCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCWCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
Offences:
examples/apt_package/recipes/install.rb:1:1: C: Missing utf-8 encodin
/opt/chefdk/bin/berks install
Resolving cookbook dependencies...
Fetching 'postgresql-gloo' from source at .
Fetching 'postgresql-test-kitchen' from source at test/fixtures/cookbooks/postgresql-test-kitchen
Fetching cookbook index from https://awo-chef-01.gloostate.com...
Fetching cookbook index from https://api.berkshelf.com...
/opt/chefdk/embedded/lib/ruby/2.1.0/net/http.rb:920:in `connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (Faraday::SSLError)
from /opt/chefdk/embedded/lib/ruby/2.1.0/net/http.rb:920:in `block in connect'
from /opt/chefdk/embedded/lib/ruby/2.1.0/timeout.rb:91:in `block in timeout'
from /opt/chefdk/embedded/lib/ruby/2.1.0/timeout.rb:101:in `call'
Resolving cookbook dependencies...
Fetching 'postgresql-gloo' from source at .
Fetching 'postgresql-test-kitchen' from source at test/fixtures/cookbooks/postgresql-test-kitchen
Fetching cookbook index from http://127.0.0.1:26200...
Fetching cookbook index from https://api.berkshelf.com...
Error retrieving universe from source: http://127.0.0.1:26200
* [Berkshelf::APIClient::ServiceUnavaiable] service unavailable at: http://127.0.0.1:26200
Unable to satisfy constraints on package analytics-api, which does not exist, due to solution constraint (postgresql-gloo = 0.2.9). Solution constraints that may result in a constraint on analytics-api: [(postgresql-gloo = 0.2.9) -> (analytics-api >= 0.0.0)], [(postgresql-test-kitchen = 0.1.0) -> (postgresql-gloo = 0.2.9) -> (analytics-api >= 0.0.0)]
Missing artifacts: analytics-api
Demand that cannot be met: (postgresql-gloo = 0.2.9)
/opt/chefdk/bin/berks install
Resolving cookbook dependencies...
Fetching 'postgresql-gloo' from source at .
Fetching 'postgresql-test-kitchen' from source at test/fixtures/cookbooks/postgresql-test-kitchen
Press ENTER or type command to continue
Fetching cookbook index from https://127.0.0.1:26200...
Fetching cookbook index from https://api.berkshelf.com...
/opt/chefdk/embedded/lib/ruby/2.1.0/net/http.rb:920:in `connect': SSL_connect SYSCALL returned=5 errno=0 state=SSLv2/v3 read server hello A (Faraday::SSLError)
from /opt/chefdk/embedded/lib/ruby/2.1.0/net/http.rb:920:in `block in connect'
from /opt/chefdk/embedded/lib/ruby/2.1.0/timeout.rb:91:in `block in timeout'
@trinitronx
trinitronx / .kitchen.local.yml
Created May 1, 2014 22:25
Docker / DVM example .kitchen.local.yml
---
driver_plugin: docker
# hostname: kitchen
driver_config:
use_sudo: true
socket: <%= ENV['DOCKER_HOST'] %>
# socket: tcp://localhost:4243
require_chef_omnibus: false
# hostname: kitchen
[2014-03-28T22:03:24+00:00] INFO: Processing dpkg_package[firefox] action install (program_creator::build line 32)
[2014-03-28T22:03:24+00:00] DEBUG: dpkg_package[firefox] checking dpkg status
[2014-03-28T22:03:24+00:00] DEBUG: dpkg_package[firefox] checking install state
[2014-03-28T22:03:24+00:00] DEBUG: Executing dpkg -i /var/chef/cache/firefox-18.deb
[2014-03-28T22:03:25+00:00] DEBUG: ---- Begin output of dpkg -i /var/chef/cache/firefox-18.deb ----
[2014-03-28T22:03:25+00:00] DEBUG: STDOUT: Selecting previously unselected package firefox.
(Reading database ... 69019 files and directories currently installed.)
Unpacking firefox (from /var/chef/cache/firefox-18.deb) ...
Processing triggers for man-db ...
[2014-03-28T22:03:25+00:00] DEBUG: STDERR: dpkg: dependency problems prevent configuration of firefox:
================================================================================
Error executing action `start` on resource 'service[postgresql]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of /etc/init.d/postgresql start ----
STDOUT: * Starting PostgreSQL 9.3 database server