Skip to content

Instantly share code, notes, and snippets.

View rfilmyer's full-sized avatar
😌
Vibing

Roger Filmyer rfilmyer

😌
Vibing
View GitHub Profile
@rfilmyer
rfilmyer / .zeddrc
Created July 19, 2015 16:47
A sample .zeddrc configuration for use with zedd, the daemon that lets you remotely edit files with Zed.
{
"remote": true,
"user": "demonstration",
"pass": "how to fly",
"root": "Documents"
}
@rfilmyer
rfilmyer / org.zedapp.zedd.plist
Last active August 29, 2015 14:25
A sample LaunchAgent for zedd, with node installed through MacPorts. Change the path of node and of zedd to fit your installation.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.zedapp.zedd</string>
<key>ProgramArguments</key>
<array>
<string>/opt/local/bin/node</string>
<string>/opt/local/bin/zedd</string>
@rfilmyer
rfilmyer / zulip-install-dump
Created November 4, 2015 16:22
Logs from installing Zulip 1.3.7
[only dist-upgrade dumps before this line]
+ mkdir -p /etc/zulip
+ echo -e '[machine]\npuppet_classes = zulip::voyager\ndeploy_type = voyager'
+ /root/zulip/scripts/zulip-puppet-apply -f
Warning: Could not retrieve fact fqdn
Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
Notice: Compiled catalog for roger-virtualbox in environment production in 0.59 seconds
Notice: /Stage[main]/Zulip::Nginx/Package[nginx-full]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Zulip::Nginx/File[/etc/nginx/nginx.conf]/content: content changed '{md5}a85dcbc5367783f3d42d0b7eab22ea50' to '{md5}b89ac81eb60b5e363f9ecf9683599307'
@rfilmyer
rfilmyer / zulip-install-dump-2
Created November 12, 2015 03:01
Logs (round 2) from installing zulip
+ mkdir -p /etc/zulip
+ echo -e '[machine]\npuppet_classes = zulip::voyager\ndeploy_type = voyager'
+ /root/zulip/scripts/zulip-puppet-apply -f
Warning: Could not retrieve fact fqdn
Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
Notice: Compiled catalog for roger-virtualbox in environment production in 0.94 seconds
Notice: /Stage[main]/Zulip::Nginx/File[/etc/nginx/nginx.conf]/content: content changed '{md5}a85dcbc5367783f3d42d0b7eab22ea50' to '{md5}b89ac81eb60b5e363f9ecf9683599307'
Notice: /Stage[main]/Zulip::Postgres_common/Exec[disable_logrotate]/returns: executed successfully
Notice: /Stage[main]/Zulip::Nginx/File[/etc/nginx/sites-enabled/default]/ensure: removed
Notice: /Stage[main]/Zulip::Nginx/File[/etc/nginx/zulip-include/]/ensure: created
@rfilmyer
rfilmyer / kmesg_01-11
Created January 12, 2016 05:30
Kmesg dump following bug in cyanogenmod nightly 20160110
<6>[ 412.091956] PM: suspend entry 2016-01-12 05:23:12.675630599 UTC
<6>[ 412.092027] PM: Syncing filesystems ... done.
<7>[ 412.145548] PM: Preparing system for mem sleep
<4>[ 412.145635] Freezing user space processes ...
<6>[ 412.146645] active wakeup source: PowerManagerService.Display
<4>[ 412.146812]
<3>[ 412.146864] Freezing of tasks aborted after 0.001 seconds
<4>[ 412.146964] Restarting tasks ... done.
<6>[ 412.148284] Abort: Pending Wakeup Sources: PowerManagerService.Display
<6>[ 412.148347] PM: suspend exit 2016-01-12 05:23:12.732025183 UTC
@rfilmyer
rfilmyer / kmesg_01-12
Created January 13, 2016 07:02
Kmesg dump, 20160110, charging and checking a notification or setting
<3>[ 4069.993794] [22:15:37.659439] [000000123789925E] [wpa_s] wlan: [E :HDD] wlan_hdd_get_station_stats: SME timeout while retrieving statistics
<6>[ 4070.687089] wlan: disconnected
<6>[ 4070.687166] wlan(0) 00:00:00:00:00:00 Standalone
<3>[ 4070.815455] wlan: [2743:E :CTL] Error returned WDI_ProcessInitScanRspi:0 BMPS0
<3>[ 4071.663666] [22:15:39.329337] [000000123972CC9A] [MC_Th] wlan: [E :PMC] pmcTrafficTimerExpired: 1021: BMPS timer should not be running
<3>[ 4073.018456] wlan: [2743:E :CTL] Error returned WDI_ProcessInitScanRspi:0 BMPS0
<6>[ 4073.512669] bq24196_iusbmax_set mA:1500
<6>[ 4073.513548] bq24196_ibatmax_set chg_current:2496
<3>[ 4073.657970] qup_i2c f9928000.i2c: QUP: I2C status flags :0xc1343c8, irq:132
<3>[ 4073.658035] qup_i2c f9928000.i2c: I2C slave addr:0x28 not connected
@rfilmyer
rfilmyer / force.html
Last active July 26, 2016 22:44
D3 V4.0 Force Graph (using Canvas)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<canvas height="100%" width="100%"></canvas>
<script src="//d3js.org/d3.v4.min.js"></script>
<script>
var canvas = document.querySelector("canvas");
0
SECTION
2
HEADER
9
$ACADVER
1
AC1014
9
$HANDSEED
@rfilmyer
rfilmyer / sadCheck.js
Created August 18, 2016 00:31
Amazon Lambda function to post to Slack when Donald Trump tweets "Sad!" at something
'use strict';
const https = require('https');
const url = require('url');
const sadCheckVersion = '0.1.0';
/**
* Event options:
* twitterKey: the Twitter Application Key to be used
* twitterSecret: the Twitter Application Secret to be used
@rfilmyer
rfilmyer / README.md
Last active July 30, 2024 09:20 — forked from mourner/README.md
D3 Sun Heatmap example

This is a D3.js Heatmap example showing how the highest sun position of the day (which directly correlates with average temperature) changes over the year depending on the latitude of the place. The actual temperature chart would be shifted to the right a bit beacuse of thermal lag.

The data for the chart is calculated using SunCalc.