Skip to content

Instantly share code, notes, and snippets.

View jstangroome's full-sized avatar

Jason Stangroome jstangroome

View GitHub Profile
@jstangroome
jstangroome / 2017-06-02.desktop.production.log
Created June 2, 2017 01:36
GitHub Desktop in a tight loop of death after running GitHubDesktopSetup.exe and seeing splash screen
2017-06-02T01:27:08.469Z - error: Error: Cannot find module '../screen'
at Module._resolveFilename (module.js:470:15)
at Function.Module._resolveFilename (C:\Users\jason\AppData\Local\GitHubDesktop\app-0.5.9\resources\electron.asar\common\reset-search-paths.js:35:12)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object.get [as screen] (C:\Users\jason\AppData\Local\GitHubDesktop\app-0.5.9\resources\electron.asar\browser\api\exports\electron.js:11:16)
at o.exports (C:\Users\jason\AppData\Local\SquirrelTemp\webpack:\app\~\electron-window-state\index.js:19:1)
at new T (C:\Users\jason\AppData\Local\SquirrelTemp\webpack:\app\src\main-process\app-window.ts:42:13)
at S (C:\Users\jason\AppData\Local\SquirrelTemp\webpack:\app\src\main-process\main.ts:294:18)
@jstangroome
jstangroome / a-repro.sh
Created April 29, 2016 07:27
filebeat 1.2.2 reships rotated log files on restart due to omitted offset in registry
#!/usr/bin/env bash
set -o errexit -o xtrace
trap "echo Exited with \$?" EXIT
# confirm filebeat version
filebeat --version | grep --fixed-strings 1.2.2
# init workspace
mkdir --parents /tmp/filebeat-issue-repro/
@jstangroome
jstangroome / console.log
Last active March 30, 2016 03:22
Filebeat 1.1.2 does not persist correct inode for rotated logs on exit
+ trap 'echo Exited with $?' EXIT
+ filebeat --version
+ grep --fixed-strings 1.1.2
filebeat version 1.1.2 (amd64)
+ sleep_duration_seconds=10
++ dirname /vagrant/filebeat-issue-repro.sh
+ conf_file=/vagrant/filebeat-issue-repro.yml
+ mkdir --parents /tmp/filebeat-issue-repro/
+ cd /tmp/filebeat-issue-repro/
+ rm --force ./input ./input.1 ./registry ./shipped
+ trap 'echo Exited with $?' EXIT
+ filebeat --version
s 1.1.2
filebeat version 1.1.2 (amd64)
++ dirname /vagrant/filebeat-issue-repro.sh
+ conf_file=/vagrant/filebeat-issue-repro.yml
+ mkdir --parents /tmp/filebeat-issue-repro/
+ cd /tmp/filebeat-issue-repro/
+ rm --force ./input ./input.1 ./registry ./shipped
+ echo entry1
@jstangroome
jstangroome / packages.log
Created March 14, 2016 05:52
Default packages on ami-6c14310f (ubuntu-trusty-14.04-amd64-server-20160114.5)
$ dpkg --get-selections
accountsservice install
acpid install
adduser install
apparmor install
apport install
apport-symptoms install
apt install
apt-transport-https install
apt-utils install
@jstangroome
jstangroome / get-raw-blob.sh
Created September 27, 2015 00:15
See the original format of a git committed file, bypassing text conversion, etc
git cat-file -p $commit_id
git cat-file -p $tree_id
git cat-file -p $sub_tree_id
#git cat-file -p $sub_sub_tree_id
git cat-file blob $blob_id >rawblob
@jstangroome
jstangroome / init.pp
Last active September 12, 2015 05:37
file { '/opt/somedir':
source => 'puppet:///modules/mymodule/somedir',
recurse => true,
}
exec { 'runsomething':
command => '/opt/somedir/something.sh',
require => File['/opt/somedir'],
}
sub vcl_deliver {
set resp.http.Public-Key-Pins = {"pin-sha256="JcGyEMpuXl20IZG7NP8AFuLozlUZEoiENiuoelCVVaM="; pin-sha256="nh/TNmYDfa77LDPF0AfqxYcq0zLIgsIQSyGqj1MwzD4="; pin-sha256="cm5Kw3idmwUbZOGh20sAPAQq31Oyiaot7BJPH3iTN78="; max-age=5184000;"};
}
sub vcl_deliver {
set resp.http.Strict-Transport-Security = "max-age=31536000";
}