Skip to content

Instantly share code, notes, and snippets.

View chrowe's full-sized avatar

Chris Rowe chrowe

View GitHub Profile
127.0.0.1 localhost
66.25.167.202 octopus.chr.dyndns.org aegir.octopus.chr.dyndns.org
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
@chrowe
chrowe / drush dq.txt
Last active December 16, 2015 23:59
My drush qd template
drush qd mahr-content-import admin_menu module_filter devel fpa views views_bulk_operations ctools features strongarm diff date entity entityreference feeds feeds_tamper job_scheduler extlink --yes
drush en module_filter fpa views_ui devel_generate admin_menu_toolbar extlink feeds_tamper feeds_ui features strongarm date diff --yes
drush dis toolbar overlay --yes
@chrowe
chrowe / gist:5623634
Created May 21, 2013 22:01
settings.local.php template
<?php
$databases = array (
'default' =>
array (
'default' =>
array (
'database' => '',
'username' => '',
'password' => '',
@chrowe
chrowe / README.md
Last active March 25, 2016 04:28
Scripts to set up a site on our dev server

Use the site.sh script to create create a directory, download a git repo, create a log directory, set up settings.local.php, create a database, chreate a vhost file, and import a db backup

The other scripts are called by site.sh

Usage: site.sh [subdomain] [git url] [New MySQL password for site] [Database backup path] [http/https]

Script asks for the MySQL Root password

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@chrowe
chrowe / manual_steps.md
Last active February 12, 2017 04:13
Pi Ansible
@chrowe
chrowe / README.md
Last active February 13, 2017 01:18
Node-red
## AWS
cd /var/lib/cassandra/
tar -czvf /home/ubuntu/aws-data.tgz data
scp /home/ubuntu/aws-data.tgz sw:~/
## SW
cd /var/lib/cassandra/
rm -rf ./data
tar -zxvf /root/aws-data.tgz
@chrowe
chrowe / README.md
Last active May 18, 2017 18:35
Ubuntu setup on Dell Inspiron 15 7559

h2. Done

@chrowe
chrowe / cr1000.py
Last active October 19, 2017 04:10
Campbell output
# Run on Windows with C:\Python27\python.exe Desktop/cr1000.py
import requests
import time
from BeautifulSoup import BeautifulSoup
url = "http://192.168.0.102/?command=dataquery&uri=dl:SOIL_MET&format=html&mode=most-recent&p1"
def getdata():
logger_data = [] # creat a variable to store data
response = requests.get(url) # bring the above url in to play