Skip to content

Instantly share code, notes, and snippets.

View omega8cc's full-sized avatar

BOA Dev Team omega8cc

View GitHub Profile
@omega8cc
omega8cc / backdrop.md
Created April 5, 2024 18:14
Aegir Leaves Drupal

Hello Drupalers,

The big news is that Aegir moves back — more precisely we leave Drupal 7 for Backdrop CMS.

We will cover several important topics in this update, beyond standard new BOA release details, so please read it carefully, because we normally don’t issue such important statements, and actually never announced anything like that since 2009.

It’s a long post, so let’s start with a little shorter version you can read in more detail further below.

We have good news for both latest Drupal 10.2 based sites and legacy Drupal 7 sites on Aegir. Your Aegir system now fully supports Drupal 10.2 and even Drupal 10.3

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.
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 April 25, 2018 16:13 — forked from jerbob92/drupal-PSA-003-check.sh
Check whether Drupal 7.59 and 8.5.3 are released
#!/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 April 15, 2017 13:30
Fix ProxySQL config
#!/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 February 14, 2017 20:49
BOA on Debian Lenny
---------- 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:
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 August 17, 2016 12:45 — forked from skwashd/README.md
Drupal git pre-commit hook

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 July 22, 2016 21:07 — 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/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
su -s /bin/bash - o1
drush @hm sqlq "UPDATE hosting_ssl_site SET ssl_enabled='0' WHERE nid='10'"
drush @hm provision-verify