Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View fujin's full-sized avatar

AJ Christensen fujin

View GitHub Profile
@fujin
fujin / -
Created August 26, 2015 21:38
[aj@consul88d3cc8e]~% curl https://gist.githubusercontent.com/fujin/de906a474ab5b451d218/raw/cf984f3264a91887830e672eb3d4e35abf507c4e/chef-upgrade.sh | sudo bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 435 100 435 0 0 810 0 --:--:-- --:--:-- --:--:-- 810
Loaded plugins: fastestmirror, priorities, versionlock
pantheon_internal/x86_64/signature | 836 B 00:00:00
pantheon_internal/x86_64/signature | 1.0 kB 00:00:00 !!!
pantheon_internal_/x86_64/signature
@fujin
fujin / -
Created August 28, 2015 07:32
[aj@endpoint1df988a3]~% sudo cat /var/chef/cache/chef-stacktrace.out
Generated at 2015-08-28 07:29:31 +0000
NoMethodError: service[cloud-config.service] (pantheon::cloud_init line 15) had an error: NoMethodError: undefined method `+' for false:FalseClass
/opt/chef/embedded/apps/chef/lib/chef/platform/service_helpers.rb:134:in `platform_has_systemd_unit?'
/opt/chef/embedded/apps/chef/lib/chef/platform/service_helpers.rb:98:in `config_for_service'
/opt/chef/embedded/apps/chef/lib/chef/provider/service/redhat.rb:36:in `supports?'
/opt/chef/embedded/apps/chef/lib/chef/provider_resolver.rb:79:in `block in supported_handlers'
/opt/chef/embedded/apps/chef/lib/chef/provider_resolver.rb:79:in `select'
/opt/chef/embedded/apps/chef/lib/chef/provider_resolver.rb:79:in `supported_handlers'
/opt/chef/embedded/apps/chef/lib/chef/provider_resolver.rb:91:in `prioritized_handlers'
@fujin
fujin / s3.py
Created April 16, 2014 03:56 — forked from coderanger/s3.py
#!/usr/bin/python
#
# Author:: Noah Kantrowitz <noah@coderanger.net>
#
# Copyright 2013-2014, Balanced, Inc.
#
# 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
#
#!/bin/sh
PORT=4200
sudo launchctl unload /Library/LaunchDaemons/com.crashplan.engine.plist
sudo sed -i '' "s/\(<servicePort>\)[^<]*/\1$PORT/" /Library/Application\ Support/CrashPlan/conf/my.service.xml
sed -i '' "s/#*\(servicePort=\).*/\1$PORT/" /Applications/CrashPlan.app/Contents/Resources/Java/conf/ui.properties
defaults write /Applications/CrashPlan.app/Contents/Resources/CrashPlan\ menu\ bar.app/Contents/Info CPPort $PORT
sudo launchctl load /Library/LaunchDaemons/com.crashplan.engine.plist
# Relative path because berkshelf is dumb?
current_dir = File.dirname(__FILE__)
metadata_glob = ::File.join(current_dir, 'site-cookbooks', '*', 'metadata.rb')
Pathname.glob(metadata_glob).sort.each do |metadata_path|
cookbook metadata_path.dirname.basename.to_s, # e.g. foo
path: metadata_path.dirname.to_s # e.g. ./site-cookbooks/foo
end
@fujin
fujin / -
Created July 16, 2014 03:24
aj@haxstation  fuck-this-shit   ec Gemfile  15:16:52  2014-07-16
aj@haxstation  fuck-this-shit   gem search -b berkshelf  15:21:40  2014-07-16
*** LOCAL GEMS ***
berkshelf (2.0.16)
berkshelf-api-client (1.2.0)
*** REMOTE GEMS ***
cookbooks/7-zip/metadata.json
cookbooks/app-influxdb/metadata.json
cookbooks/app-logserver/metadata.json
cookbooks/app-redirector/metadata.json
cookbooks/apt/metadata.json
cookbooks/argus/metadata.json
cookbooks/ark/metadata.json
cookbooks/artifact/metadata.json
cookbooks/atlas/metadata.json
cookbooks/auditd/metadata.json
@fujin
fujin / Berksfile.rb
Created July 21, 2015 00:18
Private git / site-cookbooks monolithic Berksfile
# -*- mode: ruby -*-
@current_dir = File.expand_path(File.dirname(__FILE__))
source 'https://supermarket.chef.io'
# source 'https://supermarket.yourorgz.co'
def internal_cookbook(name)
cookbook(name, git: sprintf('git@github.com:pantheon-cookbooks/%s', name))
end
aj@zeta  ~/workspace/pantheon-cookbooks/pantheon_package_repository   add-skel ●  make spec
chef exec rspec --format documentation --color test/spec
pantheon_package_repository::default
installs yum priority support (FAILED - 1)
configures yum priority plugin (FAILED - 2)
adds the pantheon packagecloud repos (FAILED - 3)
defines a runner method (FAILED - 4)
Failures:
NAME PROPERTY VALUE SOURCE
zroot compressratio 1.35x -
zroot/014a681ba012cd3e97aaa0302fcac20ccee14be1cc9cef9d9f36486a3de7fb1f compressratio 1.02x -
zroot/014a681ba012cd3e97aaa0302fcac20ccee14be1cc9cef9d9f36486a3de7fb1f@340179797 compressratio 2.01x -
zroot/061df1eba4a29eb8ced62d7dd71ecf0d1869d02ccf76ccdfa60678986ada5e34 compressratio 1.05x -
zroot/061df1eba4a29eb8ced62d7dd71ecf0d1869d02ccf76ccdfa60678986ada5e34@924601730 compressratio 2.01x -
zroot/1844e34ee499c36b69e4b59167e44fadc475a6a4daf0701a9df76751ea127c90 compressratio 1.40x -
zroot/1844e34ee499c36b69e4b59167e44fadc475a6a4daf0701a9df76751ea127c90@165693618 compressratio 1.94x -
zroot/1b26bcb2f271fb80d75ff662889f76019a40620685a77ef22b3f6bc361fca359