Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
<html>
<head>
<meta charset="utf-8">
<style> /*! TACHYONS v4.12.0 | http://tachyons.io */
@glasser
glasser / .gitignore
Last active December 24, 2020 17:40
Test for not sending errors
node_modules
@glasser
glasser / .gitignore
Last active August 6, 2020 15:40
demo for jest and signals
node_modules
const pem = require('pem');
const fs = require('fs');
let pemFile = fs.readFileSync(process.argv[2], 'utf8');
pemFile = pemFile.replace(/BEGIN PRIVATE KEY/, 'BEGIN RSA PRIVATE KEY');
pemFile = pemFile.replace(/END PRIVATE KEY/, 'END RSA PRIVATE KEY');
pem.getPublicKey(pemFile, function (err, result) {
if (err) {
console.error("ERROR", err);
import { graphql } from "react-apollo";
import gql from "graphql-tag";
import { compose, withState, lifecycle } from "recompose";
const DEFAULT_INTERVAL = 30 * 1000;
const ACTIVE_INTERVAL = 500;
const withData = compose(
// Pass down two props to the nested component: `pollInterval`,
// which defaults to our normal slow poll, and `setPollInterval`,
diff -Nru systemd-229/debian/changelog systemd-229/debian/changelog
--- systemd-229/debian/changelog 2017-10-27 09:43:14.000000000 +0000
+++ systemd-229/debian/changelog 2017-11-16 23:38:35.000000000 +0000
@@ -1,3 +1,9 @@
+systemd (229-4ubuntu22) UNRELEASED; urgency=medium
+
+ * systemd-journald: don't reduce BurstRateLimit when disk space is low
+
+ -- Ubuntu <ubuntu@ip-10-0-2-135.ec2.internal> Thu, 16 Nov 2017 23:37:46 +0000
+
systemd 229
Nov 16 20:24:47 ip-10-0-1-225 systemd-journald[1094]: Suppressed 1355 messages from /system.slice/docker.service
ubuntu@ip-10-0-1-225[i-05add845efb29b6dd] 0 ~$ journalctl -S '20:24:30' -U '20:24:50' -u docker -o json | wc -l
27090
ubuntu@ip-10-0-1-225[i-05add845efb29b6dd] 0 ~$ cat /etc/systemd/journald.conf
[Journal]
# General options
@glasser
glasser / xxx
Created July 31, 2017 17:06
meteor bug: import from only-in-client package crashes isobuild
x
2017/04/26 17:34:57 [INFO] Terraform version: 0.9.3
2017/04/26 17:34:57 [INFO] Go runtime version: go1.8.1
2017/04/26 17:34:57 [INFO] CLI args: []string{"/usr/local/Cellar/terraform/0.9.3/bin/terraform", "apply"}
2017/04/26 17:34:57 [DEBUG] Detected home directory from env var: /Users/glasser
2017/04/26 17:34:57 [DEBUG] Detected home directory from env var: /Users/glasser
2017/04/26 17:34:57 [DEBUG] Attempting to open CLI config file: /Users/glasser/.terraformrc
2017/04/26 17:34:57 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2017/04/26 17:34:57 [INFO] CLI command args: []string{"apply"}
2017/04/26 17:34:57 [DEBUG] Detected home directory from env var: /Users/glasser
2017/04/26 17:34:57 [DEBUG] command: loading backend config file: /tmp/tfb