Pen for the awesome tutorial on http://www.labnol.org/internet/light-youtube-embeds/27941/
A Pen by Saijo George on CodePen.
<?xml version="1.0" encoding="UTF-8"?> | |
<Response> | |
<!-- Forward to first number and if no answer, action URL points to second number to try --> | |
<Dial timeout="15" action="forward_to_second_number.xml"> | |
<Number url="whisper_instructions.xml">+15554441212</Number> | |
</Dial> | |
</Response> |
/* | |
Started with example code written by Nathan Seidle from SparkFun Electronics and added | |
LCD output with gram and ounce values. | |
Setup your scale and start the sketch WITHOUT a weight on the scale | |
Once readings are displayed place the weight on the scale | |
Press +/- or a/z to adjust the calibration_factor until the output readings match the known weight | |
Arduino pin 6 -> HX711 CLK | |
Arduino pin 5 -> HX711 DOUT |
Pen for the awesome tutorial on http://www.labnol.org/internet/light-youtube-embeds/27941/
A Pen by Saijo George on CodePen.
This tutorial walks through setting up AWS infrastructure for WordPress, starting at creating an AWS account. We'll manually provision a single EC2 instance (i.e an AWS virtual machine) to run WordPress using Nginx, PHP-FPM, and MySQL.
This tutorial assumes you're relatively comfortable on the command line and editing system configuration files. It is intended for folks who want a high-level of control and understanding of their infrastructure. It will take about half an hour if you don't Google away at some point.
If you experience any difficulties or have any feedback, leave a comment. 🐬
Coming soon: I'll write another tutorial on a high availability setup for WordPress on AWS, including load-balancing multiple application servers in an auto-scaling group and utilizing RDS.
// List of modules used. | |
var gulp = require('gulp'), | |
bump = require('gulp-bump'), // Generates new version. | |
argv = require('yargs') | |
.default('release', 'patch') | |
.argv, // CLI parser. | |
fs = require('fs'), // Used by bump. | |
semver = require('semver'), // Used by bump. | |
git = require('gulp-git'), // Git wrapper. | |
jshint = require('gulp-jshint'), // Lints JS. |
#!/bin/bash | |
# | |
# This script configures WordPress file permissions based on recommendations | |
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
# | |
# Author: Michael Conigliaro | |
# | |
WP_OWNER=changeme # <-- wordpress owner | |
WP_GROUP=changeme # <-- wordpress group | |
WP_ROOT=/home/changeme # <-- wordpress root directory |
Press minus + shift + s
and return
to chop/fold long lines!
<?php | |
/** | |
* Role Based Access Control : | |
* @link http://phpmaster.com/role-based-access-control-in-php/ Een uitgebrenamee versie van ACL | |
* Role Based Access List: de sql queries die in deze tutorial | |
* worden gebruikt zijn te ingewikkeld, 1 join voor 3 tabels ? | |
* Daarom heb ik een veel simpelere oplossing die minder elegant is maar | |
* veel dunameelijker. | |
* |
/* | |
Taken and cribbed from blog.datalicious.com/free-download-all-australian-postcodes-geocod | |
May contain errors where latitude and longitude are off. Use at own non-validated risk. | |
*/ | |
SET NAMES utf8; | |
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; | |
DROP TABLE IF EXISTS postcodes_geo; |
#include <SD.h> | |
/* | |
This script is a simple combination of two existing example files. | |
The goal is to measure water flow coming from a rain collection barrel | |
The project progress can be found at http://thomasloughlin.com/rain-water-collection/. | |
*/ | |
/********************************************************** | |
This is example code for using the Adafruit liquid flow meters. |