Skip to content

Instantly share code, notes, and snippets.

View omega8cc's full-sized avatar

BOA Dev Team omega8cc

View GitHub Profile
@omega8cc
omega8cc / DigitalOcean.log
Last active May 24, 2016 19:53
@linode 4G/4C/$40 is 30% or 17 min faster than @digitalocean 8G/4C/$80 in parallel #BOA build test: 39 min vs 56 min
< 56 min
root@debian-8gb-fra1-01:~# boa in-head public server.ocean.o8.io omega8cc@gmail.com o1 mini php-5.6
BOA [14:46:10] ==> Skynet Agent v.BOA-3.1.0-dev welcomes you aboard!
BOA [14:46:13] ==> INFO: NORMAL INIT
BOA [14:46:13] ==> INFO: Public Setup Mode Active
BOA [14:46:13] ==> INFO: Creating your /root/.barracuda.cnf config file
root@debian-2gb-nyc2-01:~# boa in-stable public server.ocean.o8.io omega8cc@gmail.com o1 mini php-5.6
BOA [19:14:09] ==> Skynet Agent v.BOA-3.0.2 welcomes you aboard!
BOA [19:14:12] ==> INFO: NORMAL INIT
BOA [19:14:13] ==> INFO: Public Setup Mode Active
BOA [19:14:13] ==> INFO: Creating your /root/.barracuda.cnf config file
BOA [19:14:18] ==> Aegir on debian-2gb-nyc2-01 Debian/jessie x86_64 PHP 5.6
quad:~# boa in-octopus omega8cc@gmail.com ot13 mini stable M 1
BOA [22:56:58] ==> Skynet Agent v.BOA-3.0.2 welcomes you aboard!
BOA [22:57:01] ==> INFO: Creating your /root/.ot13.octopus.cnf config file
BOA [22:57:02] ==> New Octopus Setup on quad.tt.o8.io in progress...
* Your e-mail address is noc@omega8.cc
* Your client e-mail address is omega8cc@gmail.com
* Your Aegir control panel for this instance will be available at:
m3:/data/disk/o8/aegir/distro/001/sites/o8.m3.s9.ams.boa.io# drush8 status
Drupal version : 7.43
Site URI : http://o8.m3.s9.ams.boa.io
Database driver : mysql
Database hostname : localhost
Database port : 3306
Database username : o8m3s9amsboaio
Database name : o8m3s9amsboaio
PHP executable : /usr/bin/php-cli
PHP configuration : /opt/php56/lib/php.ini
@omega8cc
omega8cc / Howto convert a PFX to a seperate .key & .crt file
Created April 19, 2016 12:16 — forked from TemporaryJam/Howto convert a PFX to a seperate .key & .crt file
How to convert a .pfx SSL certificate to .crt/key (pem) formats. Useful for NGINX
source: http://www.markbrilman.nl/2011/08/howto-convert-a-pfx-to-a-seperate-key-crt-file/
`openssl pkcs12 -in [yourfile.pfx] -nocerts -out [keyfile-encrypted.key]`
What this command does is extract the private key from the .pfx file. Once entered you need to type in the importpassword of the .pfx file. This is the password that you used to protect your keypair when you created your .pfx file. If you cannot remember it anymore you can just throw your .pfx file away, cause you won’t be able to import it again, anywhere!. Once you entered the import password OpenSSL requests you to type in another password, twice!. This new password will protect your .key file.
Now let’s extract the certificate:
`openssl pkcs12 -in [yourfile.pfx] -clcerts -nokeys -out [certificate.crt]`
o1.ftp:~$ ?
1 drush git-upload-pack mkdir rvm true
bundle echo grep mv s3cmd unzip
bzr env guard mysql sass vi
cat exit gunzip mysqldump sass-convert vim
cd find gzip nano scp wget
chmod gem-dependency help openssl scss
clear gem-environment history passwd sed
compass gem-list less patch sqlmagic
composer gem-query lftp ping ssh
@omega8cc
omega8cc / gist:656fbca2800b34685c13
Last active March 2, 2016 13:33
How to get latest BOA-2.4.9 if your Aegir Octopus still needs PHP 5.3 ?
If your Aegir Octopus did not receive upgrade to 2.4.8 and 2.4.9, please read
the explanation posted in the changelog for BOA-2.4.8 and 2.4.9:
@=> Even if deprecated PHP versions are still included in this release,
any Octopus instance running PHP older than 5.5 will not be able to
receive upgrade to BOA-2.4.9, as announced before -- Please switch your
Octopus to PHP 5.6 or at least 5.5 to be able to upgrade not only
the Barracuda system part of BOA, but also Octopus Satellite --
The how-to can be found at: https://omega8.cc/node/330
/**
* Provision verify command
*
* Disable an enabled and installed site
*/
function drush_provision_drupal_provision_verify_validate() {
if (d()->type === 'site') {
drush_bootstrap(DRUSH_BOOTSTRAP_DRUPAL_SITE);
provision_prepare_environment();

Install multiple PHP instances on Linux

Install prerequisites for building PHP

Install the packages needed to build packages

apt-get install build-essential

Install PHP build dependencies

From https://www.drupal.org/node/2480327
>>>
Systems that use in-memory cache backends like redis / memcache
are more likely to be affected by this issue. This is due the
common strategy used to free cache space if the configured
memory limit of the cache is reached.
>>>
It is not clear and can't be assumed, because it doesn't explain