Skip to content

Instantly share code, notes, and snippets.

View trinitronx's full-sized avatar
⛩️
Zazen

James Cuzella trinitronx

⛩️
Zazen
View GitHub Profile
$ sudo journalctl -xn10 -u 'etcd*' -f
-- Logs begin at Thu 2017-06-01 07:59:46 UTC. --
Jun 03 00:15:32 ip-10-100-2-111.ec2.internal etcdadm[3504]: declare -x ETCDCTL_CERT_FILE="/etc/ssl/certs/etcd-client.pem"
Jun 03 00:15:32 ip-10-100-2-111.ec2.internal etcdadm[3504]: declare -x ETCDCTL_KEY="/etc/ssl/certs/etcd-client-key.pem"
Jun 03 00:15:32 ip-10-100-2-111.ec2.internal etcdadm[3504]: declare -x ETCDCTL_KEY_FILE="/etc/ssl/certs/etcd-client-key.pem"
Jun 03 00:15:32 ip-10-100-2-111.ec2.internal sudo[3510]: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/[ -w /var/run/coreos/etcdadm ]
Jun 03 00:15:32 ip-10-100-2-111.ec2.internal sudo[3510]: pam_unix(sudo:session): session opened for user root by (uid=0)
Jun 03 00:15:33 ip-10-100-2-111.ec2.internal sudo[3560]: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/[ -w /var/run/coreos/etcdadm/snapshots ]
Jun 03 00:15:33 ip-10-100-2-111.ec2.internal sudo[3560]: pam_unix(sudo:session): session opened for user root by (uid=0)
Jun 03 00:15:33 ip-10-100-
diff --git a/themes/base.theme.bash b/themes/base.theme.bash
index a376fff..3a14429 100644
--- a/themes/base.theme.bash
+++ b/themes/base.theme.bash
@@ -28,10 +28,11 @@ THEME_BATTERY_PERCENTAGE_CHECK=${THEME_BATTERY_PERCENTAGE_CHECK:=true}
SCM_GIT_SHOW_DETAILS=${SCM_GIT_SHOW_DETAILS:=true}
SCM_GIT_SHOW_REMOTE_INFO=${SCM_GIT_SHOW_REMOTE_INFO:=auto}
SCM_GIT_IGNORE_UNTRACKED=${SCM_GIT_IGNORE_UNTRACKED:=false}
+SCM_GIT_SHOW_STASH_INFO=${SCM_GIT_SHOW_STASH_INFO:=true}
SCM_GIT_SHOW_CURRENT_USER=${SCM_GIT_SHOW_CURRENT_USER:=false}
diff --git a/themes/base.theme.bash b/themes/base.theme.bash
index 6d32dc1..4ea508f 100644
--- a/themes/base.theme.bash
+++ b/themes/base.theme.bash
@@ -29,7 +29,7 @@ SCM_GIT_IGNORE_UNTRACKED=${SCM_GIT_IGNORE_UNTRACKED:=false}
SCM_GIT_SHOW_CURRENT_USER=${SCM_GIT_SHOW_CURRENT_USER:=false}
SCM_GIT_SHOW_MINIMAL_INFO=${SCM_GIT_SHOW_MINIMAL_INFO:=false}
-SCM_GIT='git'
+SCM_GIT='\git'
diff --git a/themes/base.theme.bash b/themes/base.theme.bash
index 6d32dc1..820eadd 100644
--- a/themes/base.theme.bash
+++ b/themes/base.theme.bash
@@ -29,7 +29,7 @@ SCM_GIT_IGNORE_UNTRACKED=${SCM_GIT_IGNORE_UNTRACKED:=false}
SCM_GIT_SHOW_CURRENT_USER=${SCM_GIT_SHOW_CURRENT_USER:=false}
SCM_GIT_SHOW_MINIMAL_INFO=${SCM_GIT_SHOW_MINIMAL_INFO:=false}
-SCM_GIT='git'
+SCM_GIT='command git'
diff --git a/themes/base.theme.bash b/themes/base.theme.bash
index 6d32dc1..679bb5c 100644
--- a/themes/base.theme.bash
+++ b/themes/base.theme.bash
@@ -29,7 +29,8 @@ SCM_GIT_IGNORE_UNTRACKED=${SCM_GIT_IGNORE_UNTRACKED:=false}
SCM_GIT_SHOW_CURRENT_USER=${SCM_GIT_SHOW_CURRENT_USER:=false}
SCM_GIT_SHOW_MINIMAL_INFO=${SCM_GIT_SHOW_MINIMAL_INFO:=false}
-SCM_GIT='git'
+#SCM_GIT='git'
May 30 21:35:58 ip-10-100-2-111.ec2.internal systemd[1]: Starting etcdadm reconfigure runner...
May 30 21:35:58 ip-10-100-2-111.ec2.internal systemctl[7975]: active
May 30 21:35:58 ip-10-100-2-111.ec2.internal etcdadm[7992]: declare -x ETCDCTL_CACERT="/etc/ssl/certs/ca.pem"
May 30 21:35:58 ip-10-100-2-111.ec2.internal etcdadm[7992]: declare -x ETCDCTL_CA_FILE="/etc/ssl/certs/ca.pem"
May 30 21:35:58 ip-10-100-2-111.ec2.internal etcdadm[7992]: declare -x ETCDCTL_CERT="/etc/ssl/certs/etcd-client.pem"
May 30 21:35:58 ip-10-100-2-111.ec2.internal etcdadm[7992]: declare -x ETCDCTL_CERT_FILE="/etc/ssl/certs/etcd-client.pem"
May 30 21:35:58 ip-10-100-2-111.ec2.internal etcdadm[7992]: declare -x ETCDCTL_KEY="/etc/ssl/certs/etcd-client-key.pem"
May 30 21:35:58 ip-10-100-2-111.ec2.internal etcdadm[7992]: declare -x ETCDCTL_KEY_FILE="/etc/ssl/certs/etcd-client-key.pem"
May 30 21:35:59 ip-10-100-2-111.ec2.internal sudo[8009]: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/[ -w /var/run/coreos/etcdadm ]
May 30 2
addons:
rescheduler:
enabled: false
clusterName: etcd-fail
controller:
autoScalingGroup:
maxSize: 3
minSize: 1
rollingUpdateMinInstancesInService: 2
count: 1
@trinitronx
trinitronx / blank-resin-data-hack.log
Last active March 12, 2017 04:10
ResinOS bitbake hack to get docker-custom-disk to build inside a docker-in-docker container (blank disk img)
bitbake@9854c74a3bbb:/src/resin-raspberrypi$ export WORKDIR=/src/resin-raspberrypi/build/tmp/work/raspberrypi3-poky-linux-gnueabi/docker-custom-disk/1.0-r0/
bitbake@9854c74a3bbb:/src/resin-raspberrypi$ export TARGET_REPOSITORY=${SUPERVISOR_REPOSITORY}
bitbake@9854c74a3bbb:/src/resin-raspberrypi$ export TARGET_TAG=v3.0.1
bitbake@9854c74a3bbb:/src/resin-raspberrypi$ export SUPERVISOR_REPOSITORY="resin/armv7hf-supervisor"
bitbake@9854c74a3bbb:/src/resin-raspberrypi$ export WORKDIR=/src/resin-raspberrypi/build/tmp/work/raspberrypi3-poky-linux-gnueabi/docker-custom-disk/1.0-r0/
bitbake@9854c74a3bbb:/src/resin-raspberrypi$ export SUPERVISOR_REPOSITORY="resin/armv7hf-supervisor"
bitbake@9854c74a3bbb:/src/resin-raspberrypi$ export TARGET_REPOSITORY=${SUPERVISOR_REPOSITORY}
bitbake@9854c74a3bbb:/src/resin-raspberrypi$ export TARGET_TAG=v3.0.1
bitbake@9854c74a3bbb:/src/resin-raspberrypi$ export PARTITION_SIZE="1024"
bitbake@9854c74a3bbb:/src/resin-raspberrypi$ cd $WORKDIR
Name: monitoring-influxdb-123456789-ab123
Namespace: kube-system
Node: ip-12-34-56-78.ec2.internal/12.34.56.78
Start Time: Thu, 02 Mar 2017 13:07:11 -0700
Labels: k8s-app=influxdb
pod-template-hash=123456789
task=monitoring
Status: Running
Controllers: ReplicaSet/monitoring-influxdb-123456789
@trinitronx
trinitronx / pip_list_available_package_versions.py
Created February 7, 2017 17:50
Pip list all versions of a package that are available
import json
import urllib2
from distutils.version import StrictVersion
from distutils.version import LooseVersion
def versions(package_name):
url = "https://pypi.python.org/pypi/%s/json" % (package_name,)
data = json.load(urllib2.urlopen(urllib2.Request(url)))
versions = data["releases"].keys()
try: