Skip to content

Instantly share code, notes, and snippets.

<VirtualHost *:80>
ServerAdmin eric.admin@example.com
ServerName tautulli.home.example.com
Redirect permanent / https://tautulli.home.example.com/
CustomLog ${APACHE_LOG_DIR}/tautulli.home.example.com.log vhost_combined
ErrorLog ${APACHE_LOG_DIR}/tautulli.home.example.com_error.log
</VirtualHost>
dev:122019-02-25 01:21:53.566 am errorgroovy.lang.MissingMethodException: No signature of method: dev15510452498581154469355.sendHubCommand() is applicable for argument types: (java.util.ArrayList) values: [[7004010100, delay 1000, 700501, delay 1000, 7004020100, delay 1000, ...]]
Possible solutions: sendHubCommand(hubitat.device.HubAction), sendHubCommand(hubitat.device.HubMultiAction) on line 225 (parse)
dev:122019-02-25 01:21:53.211 am debugsendResponse [7004010100, delay 1000, 700501, delay 1000, 7004020100, delay 1000, 700502, delay 1000, 700403013C, delay 1000, 700503, delay 1000, 7004040101, delay 1000, 700504, delay 1000, 7004050100, delay 1000, 700505, delay 1000, 8002, 8408]
dev:122019-02-25 01:21:53.114 am debugSending configuration to device.
dev:122019-02-25 01:21:53.071 am debugconfigure()
dev:122019-02-25 01:21:52.986 am debugparse description: zw device: 02, command: 8407, payload:
dev:122019-02-25 01:21:52.746 am debugCreating Event: [name:battery, value:70, displayed:false, isStateChange:fa
@edalquist
edalquist / TwinkleFOX.ino
Last active December 19, 2018 20:45 — forked from kriegsman/TwinkleFOX.ino
TwinkleFOX: Colored Twinkling Holiday Lights
/**
* Modified version of https://gist.github.com/edalquist/debd5c83f02e1a08e891678b33f07d00
* that compiles on particle.io hardware.
*/
#include <FastLED.h>
FASTLED_USING_NAMESPACE;
#define PARTICLE_NO_ARDUINO_COMPATIBILITY 1
#include "Particle.h"
#define FL_PROGMEM
// This #include statement was automatically added by the Particle IDE.
#include <FastLED.h>
FASTLED_USING_NAMESPACE
////////////////////////////////////////////////////////////////////////////////////////////////////
//
// RGB Calibration code
//
// Use this sketch to determine what the RGB ordering for your chipset should be. Steps for setting up to use:
battery.charge : 100
battery.charge.low : 10
battery.charge.warning : 50
battery.runtime : 10800
battery.runtime.low : 600
battery.type : PbAc
battery.voltage : 27.3
battery.voltage.nominal : 24.0
device.mfr : American Power Conversion
device.model : Smart-UPS C 1500
public class Test {
public static void main(String[] args) {
String b = "b";
System.out.println("A" + b + "C");
}
}
$ javap -c Test
Compiled from "Test.java"
public class Test {
public class Test {
public static void main(String[] args) {
System.out.println("A" + Data.B + "C");
}
}
public class Data {
public static final String B = "B";
}
We can make this file beautiful and searchable if this error is corrected: It looks like row 9 should actually have 13 columns, instead of 6. in line 8.
county_name,feat_class,feature_id,fips_class,fips_county_cd,full_county_name,url,name,primary_latitude,primary_longitude,state_abbreviation,state_name,
Wood,Populated Place,35073,C5,141,Wood County,http://vi.hewitt.wi.us/,Hewitt,44.64,-90.1,WI,Wisconsin,
Dane,Populated Place,35330,C5,25,Dane County,http://www.villageofmaplebluff.com/,Maple Bluff,43.11,-89.37,WI,Wisconsin,
Rock,Populated Place,34822,C5,105,Rock County,http://www.cityofedgerton.com/,Edgerton,42.83,-89.06,WI,Wisconsin,
Racine,Populated Place,34571,C5,101,Racine County,http://www.burlington-wi.gov/,Burlington,42.67,-88.27,WI,Wisconsin,
Milwaukee,Populated Place,36107,C5,79,Milwaukee County,http://www.ci.west-allis.wi.us/,West Allis,43.01,-88,WI,Wisconsin,
Washington,Populated Place,36109,C5,131,Washington County,http://www.ci.west-bend.wi.us/,West Bend,43.42,-88.18,WI,Wisconsin,
Milwaukee,Populated Place,35854,C5,79,Milwaukee County,http://www.villageofshorewood.org/,Shorewood,43.08,-87.88,WI,Wisconsin,
Dane,Populated Place,35855,C5,25,Dane Count
edalquist@apollo:~$ curl https://raw.githubusercontent.com/edalquist/syncplay_osx_install/master/install.sh | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 748 100 748 0 0 3401 0 --:--:-- --:--:-- --:--:-- 3777
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 19.6M 100 19.6M 0 0 3969k 0 0:00:05 0:00:05 --:--:-- 4337k
PREFIX=/Users/edalquist/miniconda2
installing: _cache-0.0-py27_x0 ...
installing: python-2.7.11-0 ...
#!/bin/bash
# Download & Install miniconda
curl -O https://repo.continuum.io/miniconda/Miniconda-latest-MacOSX-x86_64.sh
bash Miniconda-latest-MacOSX-x86_64.sh -bf
# Most macs use .profile not .bash_profile and having both breaks things
echo "" >> ~/.profile
echo "export PATH=\"/Users/$USER/miniconda2/bin:\$PATH\"" >> ~/.profile
. ~/.profile