Skip to content

Instantly share code, notes, and snippets.

View iameli's full-sized avatar
💭
Beep boop

Eli Mallon iameli

💭
Beep boop
View GitHub Profile
@iameli
iameli / install-kube-system.service
Created January 13, 2017 20:11
install-kube-system problems
-- Logs begin at Fri 2017-01-13 19:55:37 UTC, end at Fri 2017-01-13 20:09:25 UTC. --
Jan 13 19:56:17 ip-10-25-10-81.us-west-2.compute.internal systemd[1]: Starting install-kube-system.service...
Jan 13 19:56:17 ip-10-25-10-81.us-west-2.compute.internal systemctl[1076]: activating
Jan 13 19:56:17 ip-10-25-10-81.us-west-2.compute.internal systemd[1]: install-kube-system.service: Control process exited, code=exited status=3
Jan 13 19:56:17 ip-10-25-10-81.us-west-2.compute.internal systemd[1]: Failed to start install-kube-system.service.
Jan 13 19:56:17 ip-10-25-10-81.us-west-2.compute.internal systemd[1]: install-kube-system.service: Unit entered failed state.
Jan 13 19:56:17 ip-10-25-10-81.us-west-2.compute.internal systemd[1]: install-kube-system.service: Failed with result 'exit-code'.
Jan 13 19:56:27 ip-10-25-10-81.us-west-2.compute.internal systemd[1]: install-kube-system.service: Service hold-off time over, scheduling restart.
Jan 13 19:56:27 ip-10-25-10-81.us-west-2.compute.internal systemd[1]: Stopped in
@iameli
iameli / slack-embed.css
Created January 23, 2017 00:50
User Stylesheet for embedding Slack chat in other things
/**
* I use these overrides when I'm embedding my Slack chat in my OBS stream to hide everything I don't like and blow
* out the margins a bit.
*/
.client_channels_list_container { display: none; }
body { min-width: 100% !important;}
#banner {display: none !important;}
#client_header {display: none !important;}
#footer_msgs {display: none !important;}
.client_container #messages_container {bottom: 0 !important;}
@iameli
iameli / 2017-06-05T21_00_06_697Z-debug.log
Created June 5, 2017 21:19
Cannot read property 'find' of undefined - Ubuntu 14.04
0 info it worked if it ends with ok
1 verbose cli [ '/home/csats/.nvm/versions/node/v6.3.1/bin/node',
1 verbose cli '/home/csats/.nvm/versions/node/v6.3.1/bin/npm',
1 verbose cli 'install' ]
2 info using npm@5.0.2
3 info using node@v6.3.1
4 silly install runPreinstallTopLevelLifecycles
5 silly preinstall mendoza@1.0.0
6 info lifecycle mendoza@1.0.0~preinstall: mendoza@1.0.0
7 silly lifecycle mendoza@1.0.0~preinstall: no script for preinstall, continuing
@iameli
iameli / ffmpeg-commands.sh
Last active August 11, 2017 05:40
Useful ffmpeg commands
# Generate a 1080p realtime test video with sine wave audio
ffmpeg -re -f lavfi -i 'testsrc=size=1920x1080:rate=30:duration=-1' -i 'sine=frequency=1000:duration=-1' -c:v libx264 -preset veryfast -c:a aac -f flv rtmp://localhost/stream/test
This file has been truncated, but you can view the full file.
-- Logs begin at Sun 2017-07-09 05:35:01 PDT, end at Sun 2017-07-09 14:19:35 PDT. --
Jul 09 14:19:27 skillet systemd[1]: Starting Localkube...
Jul 09 14:19:27 skillet localkube[9841]: name = kubeetcd
Jul 09 14:19:27 skillet localkube[9841]: data dir = /var/lib/localkube/etcd
Jul 09 14:19:27 skillet localkube[9841]: member dir = /var/lib/localkube/etcd/member
Jul 09 14:19:27 skillet localkube[9841]: heartbeat = 100ms
Jul 09 14:19:27 skillet localkube[9841]: election = 1000ms
Jul 09 14:19:27 skillet localkube[9841]: snapshot count = 10000
Jul 09 14:19:27 skillet localkube[9841]: advertise client URLs = http://0.0.0.0:2379
Jul 09 14:19:27 skillet localkube[9841]: restarting member fcf2ad36debdd5bb in cluster 7f055ae3b0912328 at commit index 7
@iameli
iameli / get-kube.sh
Last active August 8, 2017 02:45
Attempting to get kubeadm run on Docker for Mac
apk add socat ethtool ebtables iproute2 libc6-compat
ln -s /lib /lib64
curl -Lo /usr/bin/kubelet https://storage.googleapis.com/kubernetes-release/release/v1.7.3/bin/linux/amd64/kubelet
curl -Lo /usr/bin/kubeadm https://storage.googleapis.com/kubernetes-release/release/v1.7.3/bin/linux/amd64/kubeadm
curl -Lo /usr/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/v1.7.3/bin/linux/amd64/kubectl
chmod 755 /usr/bin/kube*
let inputString = `
{
"records": [
{
"id": "1Q3"
},
{
"id": "1D3"
},
{
@iameli
iameli / errors.txt
Last active January 30, 2019 23:51
livepeer-js prepush test errors
lerna ERR! test Errored while running script in '@livepeer/sdk'
lerna ERR! execute callback with error
lerna ERR! Error: Command failed: yarn run test
lerna ERR! 32 passed
lerna ERR! 53 rejections
lerna ERR!
lerna ERR! Unhandled Rejection
lerna ERR! ValidationError: transcoder must be a `string` type, but the final value was: `{
lerna ERR! Object.createError (/Users/iameli/code/livepeerjs/node_modules/yup/lib/util/createValidation.js:71:21)
@iameli
iameli / broadcaster.log
Created March 1, 2019 05:13
go-livepeer segfault
I0228 21:08:53.657697 1284 db.go:206] Initialized DB node
I0228 21:08:53.657729 1284 livepeer.go:241] ***Livepeer is in off-chain mode***
I0228 21:08:53.657764 1284 livepeer.go:441] Current ManifestID will be available over 127.0.0.1:8935
I0228 21:08:53.657778 1284 livepeer.go:479] ***Livepeer Running in Broadcaster Mode***
I0228 21:08:53.657782 1284 livepeer.go:480] Video Ingest Endpoint - rtmp://127.0.0.1:1935
I0228 21:08:53.657835 1284 mediaserver.go:121] Transcode Job Type: [{P240p30fps16x9 600k 30 426x240 16:9} {P360p30fps16x9 1200k 30 640x360 16:9}]
I0228 21:08:53.657887 1284 webserver.go:1092] CLI server listening on 127.0.0.1:7935
I0228 21:08:53.657936 1284 lpms.go:97] HTTP Server listening on http://127.0.0.1:8935
I0228 21:08:53.657946 1284 lpms.go:90] LPMS Server listening on rtmp://127.0.0.1:1935
I0228 21:09:04.814074 1284 listener.go:32] RTMP server got upstream: rtmp://127.0.0.1/movie/stream
docker build -f Dockerfile.debian -t livepeerbinary:debian .
Sending build context to Docker daemon 160.6MB
Step 1/45 : FROM debian:stretch as builder
---> d508d16c64cd
Step 2/45 : ENV PKG_CONFIG_PATH /root/compiled/lib/pkgconfig
---> Using cache
---> 228a1ad80a56
Step 3/45 : WORKDIR /root
---> Using cache
---> 924e4c689187