This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# remove any Debian stuff | |
for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do sudo apt-get remove $pkg; done | |
# Add Docker's official GPG key: | |
sudo apt-get update | |
sudo apt-get install ca-certificates curl gnupg | |
sudo install -m 0755 -d /etc/apt/keyrings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Number of platforms 1 | |
Platform Name AMD Accelerated Parallel Processing | |
Platform Vendor Advanced Micro Devices, Inc. | |
Platform Version OpenCL 2.0 AMD-APP (2482.3) | |
Platform Profile FULL_PROFILE | |
Platform Extensions cl_khr_icd cl_amd_event_callback cl_amd_offline_devices | |
Platform Extensions function suffix AMD | |
Platform Name AMD Accelerated Parallel Processing | |
Number of devices 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var resourceID = "VirtualTemperature74"; | |
var temperature; | |
var currentlyRaised = false; | |
function raiseAlert() { | |
dev$.alert('Temperature Too Low', 'warning', true, { | |
temp: temperature | |
}); | |
currentlyRaised = true; | |
log.info('Temperature Too Low, alert raised!!'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ( | |
"net/http" | |
"sync" | |
"fmt" | |
) | |
type logBuffer struct { | |
stuff string | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# You need Duplicati installed | |
# First on Ubuntu it uses mono :( unfortunately: | |
# apt-get install mono-runtime | |
# get the latest Duplicati 2.0 - go here--> http://www.duplicati.com/download | |
# wget https://updates.duplicati.com/experimental/duplicati_2.0.1.30-1_all.deb | |
# sudo dpkg -i duplicati_2.0.1.30-1_all.deb | |
# | |
# After install you will have a 'duplicati-cli' which is a script which runs the mono program: Duplicati.CommandLine.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
# | |
# WigWag LLC | |
# License: this script is public domain | |
# | |
# This will setup a shell to cross compile node.js (node 0.8 working for us) using cross tools | |
# Example uses a Freescale tool chain... | |
# Adjust vars below to your taste and good luck |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Originally at: | |
// http://bravenewmethod.wordpress.com/2011/03/30/callbacks-from-threaded-node-js-c-extension/ | |
#include <queue> | |
// node headers | |
#include <v8.h> | |
#include <node.h> | |
#include <ev.h> | |
#include <pthread.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://www.wigwag.com/devblog/using-icu4c-regex-test-program/ | |
// The following code is freeware: | |
// regextest.c | |
// Author: ed | |
// | |
// Simple test program for regex using ICU's regex matching. | |
#include <stdio.h> | |
#include <getopt.h> | |
#include <string.h> |