Skip to content

Instantly share code, notes, and snippets.

View jadbox's full-sized avatar

Jonathan Rose Dunlap jadbox

View GitHub Profile
@jadbox
jadbox / ec2.list
Last active March 8, 2020 00:01
Node-red Abridged setup
ec2-52-91-29-182.compute-1.amazonaws.com
did:3:bafyreial4u4dfocow3yq4u5ock26uy6r4mdepfhvf4zqa5swlxxkihy7hm
@jadbox
jadbox / .conkyrc
Created September 24, 2019 18:17
conkyrc
######################
# - Conky settings - #
######################
update_interval 1
total_run_times 0
net_avg_samples 1
cpu_avg_samples 1
if_up_strictness link
imlib_cache_size 0
@jadbox
jadbox / gist:77408da2a657191e909d25b11b9f6e3d
Created July 15, 2019 20:34
Windows 10 Insider Preview 18936.1000 (rs_prerelease) - Error 0xc0000005
Windows 10 Insider Preview 18936.1000 (rs_prerelease) - Error 0xc0000005
sutuperr.log
2019-07-15 11:25:30, Error CONX 0xd0000034 Failed to add user mode driver [%SystemRoot%\system32\DRIVERS\UMDF\uicciso.dll]
2019-07-15 11:30:09, Error SP pSPRemoveUpgradeRegTree: failed to delete reg tree HKLM\SYSTEM\Setup\Upgrade[gle=0x00000005]
2019-07-15 11:30:19, Error MIG Ignoring replacement manifest with no settingsVersionRange or versionRange attribute in migration element: Microsoft-Windows-Container-Manager
2019-07-15 11:30:21, Error [0x080831] MIG CSIAgent: Invalid xml format: FormatException: "script" attribute is mandatory. class Mig::CMXEMerge *__cdecl Mig::CMXEMigrationXml::LoadMerge(class UnBCL::XmlNode *,int,class Mig::CMXEMigrationXml *,class Mig::CMXEXmlComponent *)
2019-07-15 11:30:22, Error [0x080831] MIG CSIAgent: Invalid xml format: FormatException: "script" attribute is mandatory. class Mig::CMXEMerge *__cdecl Mig::CMXEMigratio
var http = require("http");
var kmpp = require("kmpp");
// const skmeans = require("skmeans");
var pnts_old_test_case = [
[0, 1, 0],
[0, 1, 0],
[1, 0, 0],
[1, 0, 1],
[0, 0, 1],
/*
{
"menu": {
"drinks": [{name:"coke", price: 10}, {....}]
}]
}
*/
with open("data_file.json", "r") as read_file:
data = json.load(read_file)
1. Are all builds handled automatically by a Continuous Integration server?
2. Do you make and use daily builds?
3. Do you use an issue tracker?
4. Do you fix bugs before writing new code?
5. Do you have an up-to-date schedule?
6. Do you have up to date information on your products performance and usage?
7. Do you use the best tools money can buy?
8. Do you have a comprehensive test plan?
9. Do you have dedicated UI and UX designers?
10. Does all code go through code review?
@jadbox
jadbox / gist:b0712074b31da2840c8bf7026df46e63
Created November 2, 2018 17:59
Fedora 29 battle.net stall
------------------------------------------------------
Executing /home/jdunlap/.local/share/lutris/runners/wine/tkg-3.19-x86_64/bin/wine regedit /S C:\windows\Temp\_arial\_register-font.reg
000b:fixme:winediag:start_process Wine Staging 3.19 is a testing version containing experimental patches.
000b:fixme:winediag:start_process Please mention your exact version when filing bug reports on winehq.org.
wine: cannot find L"C:\\windows\\system32\\winemenubuilder.exe"
000b:err:wineboot:ProcessRunKeys Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -a -r" (2)
Executing /home/jdunlap/.local/share/lutris/runners/wine/tkg-3.19-x86_64/bin/wine64 regedit /S C:\windows\Temp\_arial\_register-font.reg
Executing cp /home/jdunlap/Games/overwatch/dosdevices/c:/windows/temp/_arial/_register-font.reg /tmp/winetricks.owWlRWVB/_reg_66d0267b_4755.reg
Executing /home/jdunlap/.local/share/lutris/runners/wine/tkg-3.19-x86_64/bin/wine regedit /S C:\windows\Temp\_arial\_register-font.reg
Executing /home/jdunlap/.local/sha
@jadbox
jadbox / gist:a5045b3f2ed1c30d559daaa821357d41
Created October 31, 2018 14:05
Fedora 29 battle.net installer error
I've installed a fresh copy of Fedora 29, installed wine-staging and other battle.net deps recommended for Fedora (see below).
However, when I try to install Battle.net (or Overwatch), I get the following logs before the battle.net installer crashes.
Installer failure image:
https://imgur.com/a/QfuCpPL
DEBUG 2018-10-31 06:26:18,888 [thread]:Processes monitored: Battle.net-Setu (5752:R), Battle.net-Setu (5752:R)
Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 6: invalid attribute 'version'
Fontconfig error: Cannot load default config file
//import and prepare iot for pubsub
const IotData = require("aws-sdk/clients/iotdata");
let iotData;
export default function getIotData() {
if (iotData) {
return iotData;
} else {
iotData = new IotData({
endpoint: process.env["AWS_IOT_ENDPOINT"],