Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I may be slow to respond.

BOA Dev Team omega8cc

💭
I may be slow to respond.
View GitHub Profile
View gist:7c47bb2f620a743f8b4b50abe4c34040
o1@v1:~/static$ composer create-project goalgorilla/social_template:dev-master social-test --no-interaction
Installing goalgorilla/social_template (dev-master 3c3e25a8d4b13631f5a5bdb585dfa20d8cb74a50)
- Installing goalgorilla/social_template (dev-master 3c3e25a): Cloning 3c3e25a8d4 from cache
Created project in social-test
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 136 installs, 0 updates, 0 removals
- Installing composer/installers (v1.6.0): Loading from cache
- Installing cweagans/composer-patches (1.6.5): Loading from cache
No patches supplied.
View gist:47aa509e140a94f91116df7529547624
o1@v1:~/static$ composer create-project goalgorilla/social_template:dev-master social-test-nodev --no-dev --no-interaction
Installing goalgorilla/social_template (dev-master 3c3e25a8d4b13631f5a5bdb585dfa20d8cb74a50)
- Installing goalgorilla/social_template (dev-master 3c3e25a): Cloning 3c3e25a8d4 from cache
Created project in social-test-nodev
Loading composer repositories with package information
Installing dependencies from lock file
Package operations: 136 installs, 0 updates, 0 removals
- Installing composer/installers (v1.6.0): Loading from cache
- Installing cweagans/composer-patches (1.6.5): Loading from cache
No patches supplied.
@omega8cc
omega8cc / drupal-PSA-003-check.sh
Created Apr 25, 2018 — forked from jerbob92/drupal-PSA-003-check.sh
Check whether Drupal 7.59 and 8.5.3 are released
View drupal-PSA-003-check.sh
#!/bin/sh
url="https://ftp.drupal.org/files/projects/drupal-7.59.zip";
if curl --output /dev/null --silent --head --fail "$url"; then
echo "URL exists: $url";
else
echo "URL does not exist: $url";
fi;
url="https://ftp.drupal.org/files/projects/drupal-8.5.3.zip";
@omega8cc
omega8cc / fix_pxy.sh
Created Apr 15, 2017
Fix ProxySQL config
View fix_pxy.sh
#!/bin/bash
SHELL=/bin/bash
PATH=/usr/local/bin:/usr/local/sbin:/opt/local/bin:/usr/bin:/usr/sbin:/bin:/sbin
_NOSTRICT="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
###
### Avoid too many questions
###
@omega8cc
omega8cc / lenny.txt
Created Feb 14, 2017
BOA on Debian Lenny
View lenny.txt
---------- Forwarded message ----------
From: root <root@aegir.cam*****.org>
Date: Feb 14, 2017, 08:24 +0100
To: ****@gmail.com
Subject: Debian package updates on aegir.cam*****.org
apticron report [Tue, 14 Feb 2017 07:26:05 +0000]
========================================================================
apticron has detected that some packages need upgrading on:
View gist:50e0e7f006afe0dd6678a72c34363550
check_update_le_ssl() {
if [[ "${Dom}" =~ ^(a|b|c|d|e) ]]; then
runDay="1"
elif [[ "${Dom}" =~ ^(f|g|h|i) ]]; then
runDay="2"
elif [[ "${Dom}" =~ ^(j|k|l|m) ]]; then
runDay="3"
elif [[ "${Dom}" =~ ^(n|o|p|q) ]]; then
runDay="4"
elif [[ "${Dom}" =~ ^(r|s|t|u) ]]; then
@omega8cc
omega8cc / README.md
Created Aug 17, 2016 — forked from skwashd/README.md
Drupal git pre-commit hook
View README.md

This pre-commit hook is designed to be used for Drupal 7 and 8 sites.

Download the pre-commit file. Save it as .git/hook/pre-commit in your git repo. You need to ensure that the file is executable.

If you want this to be added to all new projects automatically, add it to your git init templates.

To install and PHP CodeSniffer for Drupal, please read the official documentation.

To see this working checking out this short YouTube video.

@omega8cc
omega8cc / nginx.conf
Created Jul 22, 2016 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
View nginx.conf
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
View gist:5b710e8dd886e9d43768f1aff29df245
su -s /bin/bash - o1
drush @hm sqlq "UPDATE hosting_ssl_site SET ssl_enabled='0' WHERE nid='10'"
drush @hm provision-verify
@omega8cc
omega8cc / DigitalOcean.log
Last active May 24, 2016
@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
View DigitalOcean.log
< 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