Skip to content

Instantly share code, notes, and snippets.

View jacques's full-sized avatar
🎯
Focusing

Jacques Marneweck jacques

🎯
Focusing
View GitHub Profile
@jacques
jacques / README.md
Last active August 29, 2015 14:09
Known Issues with SDC7

Known Issues with SDC7

Provisioning the UFSD zone fails causing smartdc/init to go into maintenance

Root cause is that Postgres is in read only mode (sdc-login manatee) to edit one of the node-manatee files to force not being in readonly mode. Quite a bit of hand holding required to get moray's db in place and set perms and create one table.

sdc-manatee-stat is missing (causes sdc-backup to fail)

Copy sdc-manatee-stat from Ryan Nelson to /opt/smartdc/bin/

@jacques
jacques / README.md
Last active August 29, 2015 14:06 — forked from mariocesar/README.md

Install

Create a websites user.

sudo adduser --disabled-password --home /src/websites websites

Login and install dropbox.

sudo -s su - websites

@jacques
jacques / fix-php-fcgi
Created May 7, 2014 07:02
Script which fixes users php fcgi wrapper scripts to use the correct php binary after webmin pulls the location to binary config out of who knows where (might be related to restored accounts but the binary path was the same previously).
#!/opt/local/bin/bash
#
# Script which fixes users php fcgi wrapper scripts to use the correct php binary.
#
# Copyright (c) 2014 Jacques Marneweck. All rights rserved.
# Copyright (c) 2014 Kaizen Garden. All rights reserved.
#
set -o errexit
set -o pipefail
@jacques
jacques / diffs.txt
Created January 30, 2014 17:41
Work on getting lang/spidermonkey to 1.8.5
diff --git a/lang/spidermonkey/Makefile b/lang/spidermonkey/Makefile
index 1f1315b..b9db45c 100644
--- a/lang/spidermonkey/Makefile
+++ b/lang/spidermonkey/Makefile
@@ -1,8 +1,8 @@
# $NetBSD: Makefile,v 1.27 2013/07/15 02:02:24 ryoon Exp $
-DISTNAME= js-1.8.0-rc1
-PKGNAME= spidermonkey-1.8.0rc1
-PKGREVISION= 4
== Rules ==
On Infrastructure
-----------------
There is one system, not a collection of systems.
The desired state of the system should be a known quantity.
The "known quantity" must be machine parseable.
The actual state of the system must self-correct to the desired state.
The only authoritative source for the actual state of the system is the system.
The entire system must be deployable using source media and text files.
# This document describes updating the SmartOS boot_archive and /usr volumes.
#
# The boot_archive effectively contains /. If you want to make changes to SMF
# or so forth, you need to update the boot_archive.
#
# If you want to add things to /usr, such as drivers, you will need to update
# usr.lgz. It is compressed, so note the lofiadm -U and -C calls below. Once
# you have updated usr.lgz you will need to copy it back to the mounted
# boot_arhive.
#
@jacques
jacques / use-ruby-187-with-rails
Last active December 11, 2015 22:49
Moving over to TextDrive v2 and need to use Ruby 1.8.7 with your ancient Ruby on Rails site? This script is run from your RAILS_ROOT/script directory and fixes the scripts to use the ruby18 binary and gets your pkg_alternatives files in place to use ruby 1.8.7 when using irb / ruby at the command line.
#!/opt/local/bin/bash
#
# Fixes ancient ruby on rails sites to use the ruby18 binary so they use 1.8.7.
#
pkg_alternatives manual ruby18-base
gsed -i'.bak' -e '/env ruby/s/\/usr\/bin\/env ruby/\/opt\/local\/bin\/ruby18/g' about breakpointer console destroy generate plugin runner server process/reaper process/spawner
@jacques
jacques / las-vegas-shared-hosts
Created December 4, 2012 17:19
textdrive.us ssh host keys
alder.textdrive.us ssh-dss AAAAB3NzaC1kc3MAAACBALNZXUSexDaomg4hbW77D+Xh99l4TAqs7FCiMVeRT7+jHP0EM3Xr2XOA4wfrT4lwLSQlq9yV3+Mjl/214ao+seKjtgwAfFCI5legkPVfXbyeIwOI54uwe+Jpr8SdSpVFHv1kBCF9k4YoYf25GkrmY56ghbv5liVKOe5WggieNx5nAAAAFQCsCc1q8XtfYFJqC+VYIimFOC9XPwAAAIEAmagXrZ+oFtm3oSDVEEx/qynrdKfCBvz2ROgDjiz2Xu9+kNyNoOmQVm17qP50zKtzpbHR93cyep7eZMv61R4r01BGYYNXXquDRe8gts1iwGpyLTTdL7+oZBwFz9Cap9to7UiNguF+dg4Wwo57LOHR8OKanNabGV65mLONcptShXcAAACANij9GWtTiWThEmqwuZy59QDK2KK4BoZaqcbFHByH+7kJNeScFKH7ovzqlOFtXJPJbSvASHXCf/zJP4JU9mbTiWgRdYqxkfQIWbuGiGxsCCAsNMoyBc+fKpUuv1J2x8VBB5Msyssm/LuHDDESoWzmH6ZgDHWkmy5uBUA6EteejkU=
alder.textdrive.us ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAmjpOOU/fShbHDAu52S6M67zoPd7zzH51ygXtK4fr4imOJ2kBfyTRifjuRhBxpWMIXX3MBS3tgYJsTihtxbU2iewGZezHFZnKDlbzUcsk7X7y6k2sXYbCAQZcJRxsmZ0lDAypScjK8EnM54nWvWfviv7WwPaSgNV66fHfOdxKEIyWMPXA834MkvMx7p7e96gOlGW3Ms2iBfngBUbFrF8zb7LveIgMCaYKv4pGCdyVJ0SKkIqH2H1m0TvkMlAAnyhUISP/5Ttal/8pmBqtFg2Q7ygArckLlhr/7Gp6XMqHpi8qJtPChEpxdvFDusT96SJMjOLqUg7b3iw7pzUrrlGQjQ==
alma.textdrive.u
@jacques
jacques / ohai_nodejs.patch
Created October 16, 2012 22:20
adds languages/nodejs to ohai plugins
diff --git a/lib/ohai/plugins/nodejs.rb b/lib/ohai/plugins/nodejs.rb
new file mode 100644
index 0000000..05acac0
--- /dev/null
+++ b/lib/ohai/plugins/nodejs.rb
@@ -0,0 +1,34 @@
+#
+# Author:: Jacques Marneweck (<[email protected]>)
+# Copyright:: Copyright (c) 2012 Jacques Marneweck. All rights reserved.
+# License:: Apache License, Version 2.0
fastcgi_param HTTP_ACCEPT_ENCODING "none";