Skip to content

Instantly share code, notes, and snippets.

View mburns's full-sized avatar

Michael Burns mburns

View GitHub Profile
$ ipfs daemon
Initializing daemon...
go-ipfs version: 0.9.0
Repo version: 11
System version: amd64/darwin
Golang version: go1.16.5
Found outdated fs-repo, migrations need to be run.
Run migrations now? [y/N] y
Looking for suitable migration binaries.
Need 1 migrations, downloading.
http {
upstream backend {
server 127.0.0.1:8080;
keepalive 64;
}
}
# npm run bitcoin --scripts-prepend-node-path
> ion@1.0.1 bitcoin /usr/local/src/ion
> node dist/src/bitcoin.js
Environment variable ION_BITCOIN_CONFIG_FILE_PATH undefined, using default path ../json/testnet-bitcoin-config.json instead.
Environment variable ION_BITCOIN_VERSIONING_CONFIG_FILE_PATH undefined, using default ION bitcoin versioning config path ../json/testnet-bitcoin-versioning.json instead.
Creating bitcoin wallet using the import string passed in.
Sidetree bitcoin service configuration:
Collection 'service' found.
@mburns
mburns / gist:a8f033eaaf0d1537c9f51efe735883da
Created March 27, 2020 18:09
prod/collab-cluster $ terraform plan on master branch
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
module.collab_cluster_ams.data.template_file.user_data: Refreshing state...
module.collab_cluster_sjc.data.template_file.user_data: Refreshing state...
module.collab_cluster_ams.packet_bgp_session.bgp_ipv4: Refreshing state... [id=ed99ce72-3bb8-4051-aba7-83cfdbb2ef44]
module.collab_cluster_ams.packet_bgp_session.bgp_ipv6: Refreshing state... [id=9b7f7e57-19fd-46e4-a633-e873f8c44f86]
module.collab_cluster_sjc.packet_bgp_session.bgp_ipv4: Refreshing state... [id=b9f64a7e-af0c-4097-b9ab-fd548ddc2f2c]
module.collab_cluster_sjc.packet_bgp_session.bgp_ipv6: Refreshing state... [id=b3e3373c-d08c-42e9-bce2-a79e7cb26b1b]
@mburns
mburns / conf_d_default_conf
Last active September 15, 2020 11:36
There is a top-level `nginx.conf` and then in `conf.d`, we have a `default.conf` for HTTP and a `gateway.conf` for HTTPS. Removed some stanzas about domain-specific redirects and legacy rewrite rules.
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
add_header 'Access-Control-Allow-Origin' '*' always;
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always;
add_header 'Access-Control-Allow-Headers' 'X-Requested-With, Range, Content-Range, X-Chunked-Output, X-Stream-Output' always;
add_header 'Access-Control-Expose-Headers' 'Content-Range, X-Chunked-Output, X-Stream-Output' always;
@mburns
mburns / clean-up-boot-partition-ubuntu.md
Created January 15, 2018 07:22 — forked from ipbastola/clean-up-boot-partition-ubuntu.md
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64

Reference

Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r 
@mburns
mburns / gist:b11a6c8a61887e5f9a4a8fa65fd98883
Created May 29, 2016 08:55
rubocop auto_correct failure
-nodes.select { |x| x.has_key?(:services) and not x[:services].to_a.empty? }.each do |n|
+nodes.select { |x| x.has_key?(:services) and notx[:services].to_a.empty? }.each do |n|
@mburns
mburns / gist:c32dc969796efa9abe82
Created January 4, 2016 19:44
nagios plugin for treslek
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
description "newznab"
start on runlevel [2345]
stop on stopping networking or runlevel [016]
console log
respawn
respawn limit 10 5
setuid newznab
{
"normal": {
"java": {
"install_flavor": "openjdk"
}
},
"run_list": [
"role[dev]"
]
}