This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
RESO=`/usr/bin/curl -sI https://www.drupal.org | head -n 1 | awk -F " " '{print $2}'` | |
if [ $RESO -eq 200 ] | |
then | |
echo "All is well!!!" | |
else | |
echo "Hey!!! get to work, immediately" | mail -s "Hey! your site is down; better get to work" [email protected] | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# Variables | |
rack_space_host=XXX.rackspaceclouddb.com | |
rack_space_user=abc | |
rack_space_pass=efg | |
rack_space_db=DB_Name | |
if [ -d $1 ] | |
then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# Variables | |
# Replace values with Rackspace credentials. | |
rack_space_host=XXX.rackspaceclouddb.com | |
rack_space_user=abc | |
rack_space_pass=efg | |
rack_space_db=DB_Name | |
# Pick current time. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# Few command to re-install fresh D8 after new changes pulled. | |
# Replace <sql_user> & <password>. | |
# @params $1 DB Name. | |
# Run this script within D8 root folder and with sudo permission | |
rm sites/default/settings.php; | |
cp sites/default/default.settings.php sites/default/settings.php; | |
chmod 777 sites/default/settings.php; | |
mysqladmin -u<sql_user> -p<password> drop -f $1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +crazyrohila is my openname (Bitcoin username). https://onename.com/crazyrohila |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: D8 custom theme | |
type: theme | |
description: 'D8 custom theme' | |
package: Custom | |
core: 8.x | |
stylesheets-remove: | |
- system.theme.css |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: D8 custom theme | |
type: theme | |
description: 'D8 custom theme' | |
package: Custom | |
core: 8.x | |
# Override core css files by adding css file with same name in our theme. | |
# user.icons.css file in css folder of this theme will override core user module's css. | |
stylesheets-override: | |
- css/user.icons.css |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: D8 custom theme | |
type: theme | |
description: 'D8 custom theme' | |
package: Custom | |
core: 8.x | |
# Define Regions | |
regions: | |
content: Content | |
header: 'Header' | |
sidebar_first: 'First sidebar' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# See https://gist.github.com/crazyrohila/03a3a1f065e78515a3b0 for other information about theme's info file | |
name: D8 custom theme | |
type: theme | |
description: 'D8 custom theme' | |
package: Custom | |
core: 8.x | |
# Add libraries/css/js | |
libraries: | |
- d8/themey |