This guide has moved to a GitHub repository to enable collaboration and community input via pull-requests.
https://github.com/alexellis/k8s-on-raspbian
Alex
<?php | |
$provider = new stdClass; | |
$provider->disabled = FALSE; /* Edit this to true to make a default provider disabled initially */ | |
$provider->name = 'linkedin'; | |
$provider->title = 'LinkedIn'; | |
$provider->url = 'https://api.linkedin.com'; | |
$provider->consumer_advanced = array( | |
'signature method' => 'HMAC-SHA1', | |
'authentication realm' => '', | |
'request token endpoint' => '/uas/oauth/requestToken', |
#!/bin/bash | |
# Dashing service | |
# Add this file to /etc/init.d/ | |
# $ sudo cp dashboard /etc/init.d/ | |
# Update variables DASHING_DIR, GEM_HOME, & PATH to suit your installation | |
# $ sudo nano /etc/init.d/dashboard | |
# Make executable | |
# $ sudo chmod 755 /etc/init.d/dashboard | |
# Update rc.d | |
# $ sudo update-rc.d dashboard defaults |
// Support routines for automatically reporting user timing for common analytics platforms | |
// Currently supports Google Analytics, Boomerang and SOASTA mPulse | |
// In the case of boomerang, you will need to map the event names you want reported | |
// to timer names (for mPulse these need to be custom0, custom1, etc) using a global variable: | |
// rumMapping = {'aft': 'custom0'}; | |
(function() { | |
var wtt = function(n, t, b) { | |
t = Math.round(t); | |
if (t >= 0 && t < 3600000) { | |
// Google Analytics |
(function() { | |
var CSSCriticalPath = function(w, d, opts) { | |
var opt = opts || {}; | |
var css = {}; | |
var pushCSS = function(r) { | |
if(!!css[r.selectorText] === false) css[r.selectorText] = {}; | |
var styles = r.style.cssText.split(/;(?![A-Za-z0-9])/); | |
for(var i = 0; i < styles.length; i++) { | |
if(!!styles[i] === false) continue; | |
var pair = styles[i].split(": "); |
#!/bin/sh | |
# Settings for a PHP Project | |
# Using: | |
# * PHP Lint | |
# *- PHP CS | |
# *- PHP Analyzer | |
# *- EmptyLines Checker | |
# *- Scrutinizer | |
# * PHPCPD |
Terminal Commands: | |
One webcam: | |
ffmpeg -f alsa -ac 2 -i hw:1,0 -f v4l2 -s 1280x720 -r 10 -i /dev/video1 -vcodec libx264 -pix_fmt yuv420p -preset ultrafast -r 25 -g 20 -b:v 2500k -codec:a libmp3lame -ar 44100 -threads 6 -b:a 11025 -bufsize 512k -f flv rtmp://a.rtmp.youtube.com/live2/YOURSTREAMNAMEHERE | |
Two webcam overlay: | |
ffmpeg -f alsa -ac 2 -i hw:1,0 -f v4l2 -s 1280x720 -r 10 -i /dev/video1 -f v4l2 -s 320x240 -r 10 -i /dev/video0 -filter_complex "[1:v]setpts=PTS-STARTPTS[bg]; [2:v]setpts=PTS-STARTPTS[fg]; [bg][fg]overlay=shortest=1 [out]" -map "[out]" -map 0:a -vcodec libx264 -pix_fmt yuv420p -preset veryfast -r 25 -g 20 -b:v 2500k -codec:a libmp3lame -ar 44100 -threads 6 -b:a 11025 -bufsize 512k -f flv rtmp://a.rtmp.youtube.com/live2/YOURSTREAMNAMEHERE |
#!/usr/bin/perl | |
;;;;;; | |
;;;;;;;;;;; | |
;;;;;;;;;;;;;;; | |
;;;;;;;;;;;;;;;;; | |
;;;;;;;;;;;;;;;;;;; | |
;;;;;;;;;;;;;;;;;;;; | |
;;;;;;;;;;;;;;;;;;;;; | |
+$I=sub{+s+^+ ;;;;;;; ;;;;;;;;; | |
$"x$_[1]+gem;$/x$_# ;;;; ;;;;;;;; |
From ruby:2.3.1 | |
RUN apt-get update | |
RUN apt-get install build-essential chrpath libssl-dev libxft-dev -y \ | |
&& apt-get install libfreetype6 libfreetype6-dev -y \ | |
&& apt-get install libfontconfig1 libfontconfig1-dev -y | |
RUN set -xeu \ | |
\ |
#!/bin/sh | |
# SPDX-FileCopyrightText: 2017-2024 SanderTheDragon <[email protected]> | |
# | |
# SPDX-License-Identifier: MIT | |
arch=$(dpkg --print-architecture) | |
echo "Detected architecture: $arch" | |
case "$arch" in |
This guide has moved to a GitHub repository to enable collaboration and community input via pull-requests.
https://github.com/alexellis/k8s-on-raspbian
Alex