Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Bring system current
sudo apt-get update && sudo apt-get -y upgrade
# Install required pi-gen dependencies
sudo apt-get -y install coreutils quilt parted qemu-user-static debootstrap zerofree zip \
dosfstools bsdtar libcap2-bin grep rsync xz-utils file git curl bc
# Get pi-gen git repo
[CmdletBinding()]
PARAM(
[Parameter(Mandatory=$true)][String] $CredentialPath,
[Parameter(Mandatory=$true)][String] $Resource
)
try
{
$Token = $null
@kelixlabs
kelixlabs / qtrpi-cross-compile.md
Last active December 8, 2021 20:32
Cross-compiling Qt for HW accelerated OpenGL with eglfs on Raspbian and setting up Qt Creator

QT-Raspi Cross Compile

Prepare the Raspberry Pi:

Install raspbian

Get the latest raspbian image here

Enable deb-src repos

@LindaLawton
LindaLawton / GmailSendMail.psi
Last active December 6, 2021 05:18
Step by step guild to using power shell to get a Google access token.
clear-host;
#Remove-Variable * -ErrorAction SilentlyContinue
#get-item Variable:*
#Get-Variable | Select-Object -ExpandProperty Name
. C:\Users\linda_l\Desktop\PowerShell\GoogleOauth.ps1
Add-Type -Path "C:\Users\linda_l\Documents\visual studio 2015\Projects\TestingLibrary\packages\AE.Net.Mail.1.7.10.0\lib\net45\AE.Net.Mail.dll"
Add-Type -AssemblyName System.IO
Add-Type -AssemblyName System.Text.Encoding
@jn0
jn0 / rtsp-rtp-sample.py
Created December 2, 2016 08:43
Sample Python script to employ RTSP/RTP to play a stream from an IP-cam (from stackoverflow)
"""
http://stackoverflow.com/questions/28022432/receiving-rtp-packets-after-rtsp-setup
A demo python code that ..
1) Connects to an IP cam with RTSP
2) Draws RTP/NAL/H264 packets from the camera
3) Writes them to a file that can be read with any stock video player (say, mplayer, vlc & other ffmpeg based video-players)
Done for educative/demonstrative purposes, not for efficiency..!
@nixsiow
nixsiow / Auto_downloader.py
Last active January 24, 2024 14:08
Run this Python script to download all the MagPi issues to your current working directory. Customisable for other purpose of pdf file downloading.
## ======================================================== ##
## PDF files auto downloader. V0.1.4
## date: 16/10/2016
## MIT license (Free to use, just tell them I say hi)
## Build by Nix Siow
## Visit http://nixsiow.com
## Email: nixsiow@hotmail.com
## or @nixsiow on Github or Twitter
## ======================================================== ##
@asmagin
asmagin / GenerateSitecoreNugetPackages.ps1
Last active November 25, 2019 18:42
Powershell script to generate nuget packages with dependencies
param(
[string] $Major = "8",
[string] $Minor = "1",
[string] $Update = "0",
[string] $Date = "151003",
[string] $nugetPath = ".\tools\nuget.exe",
[string] $downloadsPath = ".\downloads",
[string] $nuspecTemplate = ".\tools\package.nuspec.xml",
[string] $apiKey,
[string] $nugetFeed = "http://use-your.own/nuget/Sitecore-Libs"
@matt2005
matt2005 / configuration
Created January 13, 2016 23:22 — forked from carmolim/configuration
My last configuration.yaml file for my Home Assistant setup (HA, HASS)
homeassistant:
# Name of the location where Home Assistant is running
name: Home
# Location required to calculate the time the sun rises and sets
latitude: ******
longitude: ******
# C for Celcius, F for Fahrenheit
temperature_unit: C
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: America/Sao_Paulo
homeassistant:
name: Home
latitude: <LATITUDE>
longitude: <LONGITUDE>
# C for Celcius, F for Fahrenheit
temperature_unit: C
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: Europe/Copenhagen
customize:
device_tracker.mads_desktop:
@tomduijf
tomduijf / configuration.yaml
Last active February 20, 2024 23:57
Home Assistant configuration
#################################################################
## Main and component setup
#################################################################
homeassistant:
# Name of the location where Home Assistant is running
name: Home
# Location required to calculate the time the sun rises and sets
latitude: [REDACTED]
longitude: [REDACTED]
# C for Celcius, F for Fahrenheit