Skip to content

Instantly share code, notes, and snippets.

Paul DeCarlo toolboc

Block or report user

Report or block toolboc

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@toolboc
toolboc / GWAB Denver
Last active Apr 26, 2019
Endpoint for connecting to shared input and output hubs
View GWAB Denver
Endpoint=sb://cloudcity-sharedeventhub.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=uk67xjrxsDtPIszaec0N5WROwX3q78U9YSZDDcRZIrE=;EntityPath=flysim-shared-input-hub
@toolboc
toolboc / AzureDevOpsAgent-NvidiaJetsonTX2.sh
Last active Apr 17, 2019
Script to allow for install of Azure Pipelines Agent on Nvidia JetsonTX2 with support for IoT Edge build tasks
View AzureDevOpsAgent-NvidiaJetsonTX2.sh
#!/bin/bash
#
# Setup Azure Dev-Ops ARM32
#
### update your system with the latest drivers
sudo apt-get update
### Install the ARM32 gcc toolchain
sudo apt-get -y install gcc-arm-linux-gnueabihf
@toolboc
toolboc / WebRadio.ino
Created Dec 29, 2018
Talking Web Radio with ESP8266 and Sony Spresense
View WebRadio.ino
/*
WebRadio Example
Very simple HTML app to control web streaming
Copyright (C) 2017 Earle F. Philhower, III
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
@toolboc
toolboc / audio_through_main.cxx
Created Dec 29, 2018
Audio Through for Sony Spresense I2S->Speaker
View audio_through_main.cxx
/****************************************************************************
* audio_through/audio_through_main.cxx
*
* Copyright 2018 Sony Semiconductor Solutions Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
@toolboc
toolboc / edgeProvision.sh
Last active May 2, 2019
Provision edge runtime for GPU / CPU platorms on Ubuntu 16.04 (Requires az-cli & jq)
View edgeProvision.sh
#!/bin/bash
usage(){
echo "***Azure IoT Edge GPU Provisioning Script***"
echo "Usage: ./edgeprovision.sh <iothub.name> <environment> <platform>”
}
provision(){
install_docker
if [ $platform == "gpu" ]
@toolboc
toolboc / sas.c
Last active Aug 31, 2018
SAS token generation in C; compile with `gcc -o sas sas.c -lm -lssl -lcrypto`
View sas.c
#include <openssl/bio.h>
#include <openssl/evp.h>
#include <openssl/hmac.h>
#include <openssl/crypto.h>
#include <time.h>
#include <string.h>
#include <openssl/buffer.h>
#include <stdint.h>
#include <ctype.h>
#include <math.h>
View IoT Edge Provision Script
#!/bin/bash
usage(){
echo "***Azure IoT Edge GPU Provisioning Script***"
echo "Usage: ./edgeprovision.sh <iothub.name> <environment> <platform> <acr.host> <acr.username> <acr.password>"
}
provision(){
install_docker
if [ $platform == "gpu" ]
@toolboc
toolboc / WordPress_Migration_Azure.md
Last active Oct 13, 2017
WordPress_Migration_Azure.md
View WordPress_Migration_Azure.md

Migrating WordPress to Ubuntu VM in Azure

Deploy Ubuntu VM

Take note of the ip address given to the VM

DNS

If you wish to use a custom domain, obtain your VM ip address from the Azure Portal and create an A record that points @ to the ip of the VM

@toolboc
toolboc / Exim_and_Dovecot_On_Ubuntu_On_Azure.md
Created Oct 6, 2017
Exim_and_Dovecot_On_Ubuntu_On_Azure.md
View Exim_and_Dovecot_On_Ubuntu_On_Azure.md

Exim and Dovecot on Ubuntu on Azure

Create MX Record in DNS

  • Create an A Record for 'mail' that point to the VM ip
  • Create an MX Record that points @ to mail.[sitename.TLD]

Confirm proper routing using:

dig mail.[sitename.TLD]

Install and Configure Exim

View backup.sh
#!/bin/bash
#set -e
BACKUPDIR="/backups"
BACKUPDEV="/dev/sdb1"
DATE=`date +%F`
CLEANDATE=`date +%F -d "1 month ago"`
#see if its mounted
You can’t perform that action at this time.