Skip to content

Instantly share code, notes, and snippets.

View faddat's full-sized avatar

Jacob Gadikian faddat

View GitHub Profile
@faddat
faddat / Basic_H3_support.patch
Last active October 27, 2015 02:39 — forked from anonymous/Basic_H3_support.patch
big patch for orangepi h3
From ef1d1a9e7f26c477951e183649fae22716760ca2 Mon Sep 17 00:00:00 2001
From: Marco Franceschetti <vonfritz1@gmail.com>
Date: Sun, 25 Oct 2015 20:00:28 +0100
Subject: [PATCH] Add basic H3 support
---
Documentation/devicetree/bindings/clock/sunxi.txt | 2 +
.../bindings/pinctrl/allwinner,sunxi-pinctrl.txt | 1 +
.../bindings/reset/allwinner,sunxi-clock-reset.txt | 1 +
arch/arm/boot/dts/Makefile | 3 +-
@faddat
faddat / cloud-config.yaml
Created October 29, 2015 11:43 — forked from janeczku/cloud-config.yaml
RancherOS iPXE boot script and cloud-config. Ramdisk based deployment with persistent storage on disk. Configures private IP on eth1 from EC2 metadata.
#cloud-config
hostname: rancher-os
ssh_authorized_keys:
- ssh-rsa AAAABBBBBBCCCCCCC...
write_files:
- path: /opt/rancher/bin/start.sh
permissions: 0700
content: |
#!/bin/bash
# Configure private network on eth1
@faddat
faddat / gist:83281d0aa60a92dcb423
Created November 1, 2015 20:40
This was one of the times it didn't work
[rancher@rancher-os ~]$ weave status
Version: git-b37d428726b9
Service: router
Protocol: weave 1..2
Name: da:c2:05:51:0b:da(rancher-os)
Encryption: disabled
PeerDiscovery: enabled
Targets: 1
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
0eacf94f87a7 weaveworks/weaveexec:latest "/home/weave/sigproxy" 4 minutes ago Up 4 minutes nostalgic_lumiere
71b5f8f47592 weaveworks/scope:latest "/home/weave/entrypoi" 4 minutes ago Up 4 minutes weavescope
a899c577d80f weaveworks/weaveexec:latest "/home/weave/weavepro" 39 minutes ago Up 39 minutes weaveproxy
1162df989444 weaveworks/weave:latest "/home/weave/weaver -" 39 minutes ago Up 39 minutes weave
70f31183ab12 rancher/agent:v0.8.2 "/run.sh run" 2 hours ago Up About an hour rancher-agent
be28f733fee2 reactioncommerce/reaction:latest "/usr/bin/entrypoint." 3 days ago Up Abo
@faddat
faddat / Azure VM 1
Last active November 2, 2015 15:04
2 fresh azure vms, 1 empty scope as a result
The authenticity of host '207.46.231.141 (207.46.231.141)' can't be established.
ECDSA key fingerprint is SHA256:l3KGvn3JgijuQn51I+nwu8MLx8ec3sFQB9o0Zc2l484.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '207.46.231.141' (ECDSA) to the list of known hosts.
Welcome to Ubuntu 15.10 (GNU/Linux 4.2.0-16-generic x86_64)
* Documentation: https://help.ubuntu.com/
Get cloud support with Ubuntu Advantage Cloud Guest:
http://www.ubuntu.com/business/services/cloud
@faddat
faddat / clang
Created November 11, 2015 21:04
The way mesos died using gcc & clang on ubuntu 15.10
/usr/bin/cmake -E cmake_progress_report /root/cmaker/CMakeFiles 12
[ 14%] Performing build step for 'http_parser-1c3624a'
cd /root/cmaker/3rdparty/libprocess/3rdparty/http_parser-1c3624a/src/http_parser-1c3624a-build && make -C /root/cmaker/3rdparty/libprocess/3rdparty/http_parser-1c3624a/src/http_parser-1c3624a
make[3]: Entering directory '/root/cmaker/3rdparty/libprocess/3rdparty/http_parser-1c3624a/src/http_parser-1c3624a'
/usr/bin/clang -fPIC -O0 -g -Wall -Wextra -Werror -I. -c http_parser.c -o http_parser_g.o
http_parser.c:1464:15: error: comparison of constant -1 with expression of type 'char' is always false
[-Werror,-Wtautological-constant-out-of-range-compare]
if (c == -1) goto error;
~ ^ ~~
http_parser.c:1481:15: error: comparison of constant -1 with expression of type 'char' is always false
@faddat
faddat / output
Created November 12, 2015 01:09
Zenfone Z00A is this normal at the beginning of a build?
external/ffmpeg/libavcodec/../android/build.mk:87: warning: overriding recipe for target '/home/faddat/cyanogen-12.1/out/target/product/Z00A/obj/SHARED_LIBRARIES/libavcodec_intermediates/x86/ac3dsp.o'
external/ffmpeg/libavcodec/../android/build.mk:87: warning: ignoring old recipe for target '/home/faddat/cyanogen-12.1/out/target/product/Z00A/obj/SHARED_LIBRARIES/libavcodec_intermediates/x86/ac3dsp.o'
external/ffmpeg/libavcodec/../android/build.mk:87: warning: overriding recipe for target '/home/faddat/cyanogen-12.1/out/target/product/Z00A/obj/SHARED_LIBRARIES/libavcodec_intermediates/x86/audiodsp.o'
external/ffmpeg/libavcodec/../android/build.mk:87: warning: ignoring old recipe for target '/home/faddat/cyanogen-12.1/out/target/product/Z00A/obj/SHARED_LIBRARIES/libavcodec_intermediates/x86/audiodsp.o'
external/ffmpeg/libavcodec/../android/build.mk:87: warning: overriding recipe for target '/home/faddat/cyanogen-12.1/out/target/product/Z00A/obj/SHARED_LIBRARIES/libavcodec_intermediates/x86/blockdsp.o'
external/
@faddat
faddat / interfaces
Last active November 12, 2015 05:34
shell script and config files
iface eth0 inet manual
up ifconfig $IFACE 0.0.0.0 up
down ifconfig $IFACE down
iface eth1 inet manual
up ifconfig $IFACE 0.0.0.0 up
down ifconfig $IFACE down
@faddat
faddat / master-zk-mesos-marathon.sh
Last active November 12, 2015 15:25
build mesos
cd ~/
echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
apt-get update
apt-get install oracle-java9-installer apt-transport-https git build-essential autoconf dh-autoreconf libcurl curl autotools-dev automake libtool build-essential python-dev python-boto libcurl4-nss-dev libsasl2-dev maven libapr1-dev libsvn-dev sbt aptitude clang
git clone https://git-wip-us.apache.org/repos/asf/mesos.git
wget -q http://debian.freelan.org/debian.freelan.org.key -O- | apt-key add -
echo "deb http://debian.freelan.org/ jessie main" >> /etc/apt/sources.list
@faddat
faddat / console output
Created November 14, 2015 18:36
Cyanogenmod build error
Install: /home/faddat/cyanogen-12.1/out/target/product/Z00A/system/lib/liblog.so
Install: /home/faddat/cyanogen-12.1/out/target/product/Z00A/system/lib/libgccdemangle.so
Install: /home/faddat/cyanogen-12.1/out/target/product/Z00A/system/lib/libstlport.so
Install: /home/faddat/cyanogen-12.1/out/target/product/Z00A/system/lib/libunwind.so
Install: /home/faddat/cyanogen-12.1/out/target/product/Z00A/root/init
frameworks/testing/runner/src/main/java/android/support/test/internal/runner/ClassPathScanner.java:19: error: package android.support.annotation does not exist
import android.support.annotation.VisibleForTesting;
^
frameworks/testing/runner/src/main/java/android/support/test/internal/runner/ClassPathScanner.java:38: error: cannot find symbol
@VisibleForTesting