Skip to content

Instantly share code, notes, and snippets.

View christopherdro's full-sized avatar

Chris Dro christopherdro

View GitHub Profile
INFO [12-07|11:21:24] Starting peer-to-peer node instance=swarm/v1.7.3-stable/darwin-amd64/go1.8.3
INFO [12-07|11:21:24] connecting to SWAP API url=./geth.ipc
INFO [12-07|11:21:24] connecting to ENS API url=./geth.ipc
WARN [12-07|11:21:24] could not determine ENS contract address, using default "4E\:2?#
B??J?? err="unknown version and genesis hash: 322 U��ע��Pg�\\h�:�ͤ�+ʢY񘋐���"
INFO [12-07|11:21:25] Starting P2P networking
INFO [12-07|11:21:27] UDP listener up self=enode://80954fa3f711b97d455aa1b8621f49551b313874fd3b434d415bd0d841e6999fe0de3f8281a64475b2f1484db7a12b8d2e5b59d5058ffef46e80d94a686c6943@192.168.0.5:30399
INFO [12-07|11:21:27] RLPx listener up self=enode://80954fa3f711b97d455aa1b8621f49551b313874fd3b434d415bd0d841e6999fe0de3f8281a64475b2f1484db7a12b8d2e5b59d5058ffef46e80d94a686c6943@192.168.0.5:30399
INFO [12-07|
```
{"entries":[{"hash":"e57619a0be1101b948afc89dcfb9ce430f38fba9be19fd0a3ed7424d500340a4","path":"one.txt","contentType":"text/plain; charset=utf-8","mode":420,"size":4,"mod_time":"2017-12-01T15:34:25-08:00"},{"hash":"d6c57ee8ee12ad1eb24f05eeb7059469ed7474787e2141f0f7345b0166a28ab7","path":"t","contentType":"application/bzz-manifest+json","mod_time":"0001-01-01T00:00:00Z"}]}
```
@christopherdro
christopherdro / geth.service
Last active August 16, 2017 19:11
Example of systemd services for geth and swarm
[Unit]
Description=Ethereum go client
[Service]
Type=simple
ExecStart=/home/ubuntu/go/bin/geth --testnet --fast --datadir /home/ubuntu/myDataDir --keystore /home/ubuntu/myDataDir/keystore --rpc --shh
Restart=always
RestartSec=10
[Install]
pi@ttn-gateway:/opt/ttn-gateway/bin $ sudo ./start.sh
/opt/ttn-gateway/gateway-remote-config /opt/ttn-gateway/bin
error: object file .git/objects/9d/ffa57f73e322d9a60f0d47982795320bb24c0d is empty
error: object file .git/objects/9d/ffa57f73e322d9a60f0d47982795320bb24c0d is empty
fatal: loose object 9dffa57f73e322d9a60f0d47982795320bb24c0d (stored in .git/objects/9d/ffa57f73e322d9a60f0d47982795320bb24c0d) is corrupt
fatal: The remote end hung up unexpectedly
error: object file .git/objects/9d/ffa57f73e322d9a60f0d47982795320bb24c0d is empty
error: object file .git/objects/9d/ffa57f73e322d9a60f0d47982795320bb24c0d is empty
fatal: loose object 9dffa57f73e322d9a60f0d47982795320bb24c0d (stored in .git/objects/9d/ffa57f73e322d9a60f0d47982795320bb24c0d) is corrupt
/opt/ttn-gateway/bin
@christopherdro
christopherdro / .travis.yml
Created March 24, 2016 00:32 — forked from johanneswuerbach/.travis.yml
Deploy an iOS app to testflight using Travis CI
---
language: objective-c
before_script:
- ./scripts/travis/add-key.sh
after_script:
- ./scripts/travis/remove-key.sh
after_success:
- ./scripts/travis/testflight.sh
env:
global:
@christopherdro
christopherdro / websocket-nodejs-redis-server.js
Created January 27, 2016 04:58 — forked from bricecarpentier/websocket-nodejs-redis-server.js
This is a simple websocket server coded using nodejs and http://einaros.github.io/ws/ connecting to a redis pubsub channel and sending messages to selected clients
var ws = require('ws'),
nconf = require('nconf'),
redis = require('redis');
nconf.argv()
.env();
var server = new ws.Server({port: nconf.get('PORT')});
var sockets = {};
package com.mapbox.reactnativemapboxgl;
import android.graphics.Color;
import android.util.Log;
import android.os.StrictMode;
import android.location.Location;
import com.facebook.react.bridge.Arguments;
NSObject *convertObjectToPoint (NSObject *annotationObject)
{
NSString *title = @"";
if ([annotationObject valueForKey:@"title"]) {
title = [RCTConvert NSString:[annotationObject valueForKey:@"title"]];
}
NSString *subtitle = @"";
if ([annotationObject valueForKey:@"subtitle"]) {
subtitle = [RCTConvert NSString:[annotationObject valueForKey:@"subtitle"]];