Skip to content

Instantly share code, notes, and snippets.

View tleyden's full-sized avatar

Traun Leyden tleyden

  • Indie Hacker (formerly Databricks)
  • Munich, Germany
  • X @tleydn
View GitHub Profile
@tleyden
tleyden / gist:d9b3d352e36841555412
Created January 13, 2015 23:58
logs after updating local object
01-13 23:55:39.248 W/genymotion_audio( 163): out_write() limiting sleep time 116462 to 39909
01-13 23:55:39.288 W/genymotion_audio( 163): out_write() limiting sleep time 89977 to 39909
01-13 23:55:39.328 W/genymotion_audio( 163): out_write() limiting sleep time 75102 to 39909
01-13 23:55:39.368 W/genymotion_audio( 163): out_write() limiting sleep time 48616 to 39909
01-13 23:55:40.524 D/dalvikvm( 3829): GC_FOR_ALLOC freed 1390K, 30% free 6658K/9396K, paused 5ms, total 10ms
01-13 23:55:40.528 I/InputDispatcher( 488): Dropping event because there is no touchable window at (321, -14).
01-13 23:55:41.100 I/InputDispatcher( 488): Dropping event because there is no touchable window at (321, -14).
01-13 23:55:45.196 W/genymotion_audio( 163): out_write() limiting sleep time 116462 to 39909
01-13 23:55:45.236 W/genymotion_audio( 163): out_write() limiting sleep time 78367 to 39909
01-13 23:55:45.240 D/Query ( 3829): com.couchbase.lite.LiveQuery@52859fec: start() called
Started by user anonymous
Building in workspace /var/lib/jenkins/jobs/couchbase-lite-java-build/workspace
Cloning the remote Git repository
Cloning repository https://github.com/couchbase/couchbase-lite-android.git
> git init /var/lib/jenkins/jobs/couchbase-lite-java-build/workspace # timeout=10
Fetching upstream changes from https://github.com/couchbase/couchbase-lite-android.git
> git --version # timeout=10
> git fetch --tags --progress https://github.com/couchbase/couchbase-lite-android.git +refs/heads/*:refs/remotes/origin/*
> git config remote.origin.url https://github.com/couchbase/couchbase-lite-android.git # timeout=10
> git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
@tleyden
tleyden / gist:a6a2a3a2963c733f5f1c
Created January 12, 2015 20:53
etcd logs on core-01 machine, where fleetctl list-machines fails
core@core-01 ~ $ journalctl -u etcd
-- Logs begin at Tue 2014-12-16 16:24:47 UTC, end at Mon 2015-01-12 20:52:06 UTC. --
Dec 16 16:24:55 core-01 systemd[1]: Starting etcd...
Dec 16 16:24:55 core-01 systemd[1]: Started etcd.
Dec 16 16:24:55 core-01 etcd[833]: [etcd] Dec 16 16:24:55.533 INFO | The path /var/lib/etcd/log is in btrfs
Dec 16 16:24:55 core-01 etcd[833]: [etcd] Dec 16 16:24:55.534 INFO | Set NOCOW to path /var/lib/etcd/log succeeded
Dec 16 16:24:55 core-01 etcd[833]: [etcd] Dec 16 16:24:55.535 INFO | Discovery via https://discovery.etcd.io using prefix /6b8801383f271ad52e9
Dec 16 16:24:55 core-01 etcd[833]: [etcd] Dec 16 16:24:55.809 INFO | Discovery _state was empty, so this machine is the initial leader.
Dec 16 16:24:55 core-01 etcd[833]: [etcd] Dec 16 16:24:55.809 INFO | Discovery fetched back peer list: []
Dec 16 16:24:55 core-01 etcd[833]: [etcd] Dec 16 16:24:55.810 INFO | 0f26e50a64dd4941b622e7f0bdc82929 is starting a new cluster
@tleyden
tleyden / vagrant box update
Created January 12, 2015 20:50
vagrant update
$ vagrant box update
==> core-01: Checking for updates to 'coreos-stable'
core-01: Latest installed version: 494.4.0
core-01: Version constraints: >= 308.0.1
core-01: Provider: virtualbox
==> core-01: Updating 'coreos-stable' with provider 'virtualbox' from version
==> core-01: '494.4.0' to '522.4.0'...
==> core-01: Loading metadata for box 'http://stable.release.core-os.net/amd64-usr/current/coreos_production_vagrant.json'
==> core-01: Adding box 'coreos-stable' (v522.4.0) for provider: virtualbox
core-01: Downloading: http://stable.release.core-os.net/amd64-usr/522.4.0/coreos_production_vagrant.box
export MAVEN_UPLOAD_REPO_URL="http://files.couchbase.com/maven2/"
export MAVEN_UPLOAD_VERSION=${VERSION}-${BLD_NUM}
export buildJavaWithArtifacts=True
echo "will use fresh git clone..."
rm -rf *
rm -rf .g*
ls -la
git clone https://github.com/couchbase/couchbase-lite-java.git
core@core-03 ~ $ fleetctl list-machines
MACHINE IP METADATA
900b519c... 172.17.8.103 -
b43a0698... 172.17.8.102 -
core@core-03 ~ $ systemctl status etcd
● etcd.service - etcd
Loaded: loaded (/usr/lib64/systemd/system/etcd.service; static)
Drop-In: /run/systemd/system/etcd.service.d
└─20-cloudinit.conf
Active: active (running) since Sat 2015-01-10 23:13:53 UTC; 9min ago
core@core-02 ~ $ fleetctl list-machines
MACHINE IP METADATA
900b519c... 172.17.8.103 -
b43a0698... 172.17.8.102 -
core@core-02 ~ $ systemctl status etcd
● etcd.service - etcd
Loaded: loaded (/usr/lib64/systemd/system/etcd.service; static)
Drop-In: /run/systemd/system/etcd.service.d
└─20-cloudinit.conf
Active: active (running) since Sat 2015-01-10 23:13:26 UTC; 9min ago
@tleyden
tleyden / gist:a9bd816876f55440b40e
Created January 10, 2015 23:21
vagrant boot output
$ vagrant halt && vagrant up
==> core-03: Attempting graceful shutdown of VM...
==> core-02: Attempting graceful shutdown of VM...
==> core-01: Attempting graceful shutdown of VM...
Bringing machine 'core-01' up with 'virtualbox' provider...
Bringing machine 'core-02' up with 'virtualbox' provider...
Bringing machine 'core-03' up with 'virtualbox' provider...
==> core-01: Checking if box 'coreos-stable' is up to date...
==> core-01: A newer version of the box 'coreos-stable' is available! You currently
==> core-01: have version '494.4.0'. The latest is version '522.4.0'. Run
Jan 04 04:24:54 ip-10-69-144-155.ec2.internal bash[10485]: 2015/01/04 04:24:54 go-couchbase: Error connecting to tap feed of 10.51.182.3:11210: MCResponse status=0x20, opcode=SASL_AUTH, opaque=0, msg: Auth failure
Jan 04 04:24:54 ip-10-69-144-155.ec2.internal bash[10485]: 2015/01/04 04:24:54 go-couchbase: TAP connection lost; reconnecting to bucket "hack1" in 30s
Jan 04 04:24:57 ip-10-69-144-155.ec2.internal bash[10485]: 2015/01/04 04:24:57 go-couchbase: Error connecting to tap feed of 10.51.182.3:11210: MCResponse status=0x20, opcode=SASL_AUTH, opaque=0, msg: Auth failure
Jan 04 04:24:57 ip-10-69-144-155.ec2.internal bash[10485]: 2015/01/04 04:24:57 go-couchbase: TAP connection lost; reconnecting to bucket "hack2" in 30s
@tleyden
tleyden / sync_gw_config.json
Last active August 29, 2015 14:12
sync gw config
{
"log": ["CRUD", "REST+", "Access"],
"facebook": { "register": true },
"adminInterface": ":4985",
"databases": {
"todos": {
"server":"http://127.0.0.1:8091",
"bucket":"todos",
"users": {
"GUEST": {"disabled": true}