This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get update && apt-get install -y make cmake gcc g++ patch | |
curl -sSL https://github.com/protocolbuffers/protobuf/releases/download/v2.5.0/protobuf-2.5.0.tar.gz | tar zx -C /opt/ | |
cd /opt/protobuf-2.5.0 | |
curl -L -O https://gist.githubusercontent.com/liusheng/64aee1b27de037f8b9ccf1873b82c413/raw/118c2fce733a9a62a03281753572a45b6efb8639/protobuf-2.5.0-arm64.patch | |
patch -p1 < protobuf-2.5.0-arm64.patch | |
./configure --disable-shared | |
make | |
ls -l src/protoc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:bionic | |
SHELL ["/bin/bash", "-o", "pipefail", "-c"] | |
###### | |
# Install common dependencies from packages. Versions here are either | |
# sufficient or irrelevant. | |
# | |
# WARNING: DO NOT PUT JAVA APPS HERE! Otherwise they will install default | |
# Ubuntu Java. See Java section below! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// GNU GPL v3 | |
// Original source code in https://code.google.com/archive/p/multiwii/ | |
import controlP5.*; | |
import processing.serial.Serial; // serial library | |
import processing.opengl.*; | |
import java.lang.StringBuffer; // for efficient String concatemation | |
import javax.swing.SwingUtilities; // required for swing and EDT | |
import javax.swing.JFileChooser; // Saving dialogue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
storage.engine=com.srotya.sidewinder.core.storage.disk.DiskStorageEngine | |
data.dir= | |
index.dir= | |
default.bucket.size=40960000 | |
default.series.retention.hours=8952 | |
gc.enabled=false | |
malloc.file.max=1073741824 | |
malloc.buf.increment=8192 | |
malloc.file.increment=268435456 | |
malloc.ptrfile.increment=536870912 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.srotya.sidewinder.test; | |
import java.nio.charset.Charset; | |
public class SimpleStringCompression { | |
private static Charset UTF8 = Charset.forName("utf-8"); | |
private static Charset UTF16 = Charset.forName("utf-16"); | |
public static void main(String[] args) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Make a fresh clone of YOUR_REPO | |
git clone YOUR_REPO | |
cd YOUR_REPO | |
# Create tracking branches of all branches | |
for remote in `git branch -r | grep -v /HEAD`; do git checkout --track $remote ; done | |
# Remove DIRECTORY_NAME from all commits, then remove the refs to the old commits | |
# (repeat these two commands for as many directories that you want to remove) | |
git filter-branch --index-filter 'git rm -rf --cached --ignore-unmatch DIRECTORY_NAME/' --prune-empty --tag-name-filter cat -- --all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Visual Guide: | |
http://www.oracle.com/webfolder/technetwork/tutorials/obe/java/gc01/index.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Copyright 2017 Ambud Sharma | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Copyright 2017 Ambud Sharma | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rack="/default-rack" | |
i=0 | |
for host in params.all_hosts: | |
if host == params.hostname: | |
rack=params.all_racks[i] | |
break | |
i=i+1 | |
kafka_server_config['broker.rack']=rack |
NewerOlder