Commands for controlling the Raspberry Pi 2 LEDs.
See rpi-leds for a node module that does this.
- OK (ACT) LED =
led0
- Power (PWR) LED =
led1
Allow access
Commands for controlling the Raspberry Pi 2 LEDs.
See rpi-leds for a node module that does this.
led0
led1
Allow access
#!/usr/bin/env bash | |
# Generate RSA private key | |
openssl genrsa -out private_key.pem 1024 |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
sass: { | |
options: { | |
includePaths: ['bower_components/foundation/scss'] | |
}, | |
dist: { | |
options: { |
<?php | |
/* | |
This code is used for get the keywords from the | |
Google HotTrens.U can use the grabtrends() to get | |
the curerent trends words. it return an array of keywords | |
u can change the $url to get coountry specific keywords | |
ex: $url = "<a class="linkclass" href="http://www.google.co.in/trends/hottrends">http://www.google.co.in/trends/hottrends</a>"; | |
gives the INDIAN keywords | |
*/ |
#!/bin/bash | |
function jsonval { | |
temp=`echo $json | sed 's/\\\\\//\//g' | sed 's/[{}]//g' | awk -v k="text" '{n=split($0,a,","); for (i=1; i<=n; i++) print a[i]}' | sed 's/\"\:\"/\|/g' | sed 's/[\,]/ /g' | sed 's/\"//g' | grep -w $prop` | |
echo ${temp##*|} | |
} | |
json=`curl -s -X GET http://twitter.com/users/show/$1.json` | |
prop='profile_image_url' | |
picurl=`jsonval` |
<?php | |
/** | |
* Returns all img tags in a HTML string with the option to include img tag attributes | |
* | |
* @author Joshua Baker | |
* | |
* @example $post_images[0]->html = <img src="example.jpg"> | |
* $post_images[0]->attr->width = 500 | |
* |