Skip to content

Instantly share code, notes, and snippets.

View fyrz's full-sized avatar
😀
On flow

Jörg Maier fyrz

😀
On flow
View GitHub Profile
@fyrz
fyrz / apache-spark-dev-linux-ubuntu.sh
Last active August 29, 2015 14:17
Vagrant - Ubuntu 14.10 - Apache Spark - dev maschine
#!/usr/bin/env bash
# Ubuntu 14.10 Vagrant Dev machine for Apache Spark development
#
# $> vagrant box add Ubuntu14.10 https://cloud-images.ubuntu.com/vagrant/utopic/current/utopic-server-cloudimg-amd64-vagrant-disk1.box
# $> vagrant init Ubuntu14.10
# $> vagrant up
#
# - Increase RAM to 8048M
#
#
@fyrz
fyrz / using-http-proxies.md
Last active August 29, 2015 14:17
Using http proxy in different environments

Linux - bash

export http_proxy=http://192.168.56.1:9999
export https_proxy=http://192.168.56.1:9999

Windows - command shell

set HTTP_PROXY=http://192.168.56.1:9999
set HTTPS_PROXY=http://192.168.56.1:9999
@fyrz
fyrz / raspbian-autostart.md
Last active August 29, 2015 14:16
Raspbian autostart application

Raspbian: Autostart application after startup

Change to LXDE configuration folder:

cd /etc/xdg/lxsession/LXDE/
```

Add application to `autostart` file

@chromium --kiosk --incognito http://webhost:8080/

@fyrz
fyrz / raspbian-disable-screensaver.md
Last active April 12, 2019 13:14
Raspberry PI - Disable Screensaver in Raspbian

Raspberry PI - Disable Screensaver in Raspbian

Install xutils

sudo apt-get install xutils

Contents in /etc/xdg/lxsession/LXDE/autostart

Disable any previously listed commands and add the xset commands below

@fyrz
fyrz / rocksdb-linux-fyrz-dev-gcc49.sh
Last active October 10, 2019 12:07
Vagrant - Ubuntu 14.10 - RocksDB dev maschine
#!/usr/bin/env bash
# Ubuntu 14.10 Vagrant Dev machine for RocksDB development
#
# $> vagrant box add Ubuntu14.10 https://cloud-images.ubuntu.com/vagrant/utopic/current/utopic-server-cloudimg-amd64-vagrant-disk1.box
# $> vagrant init Ubuntu14.10
# $> vagrant up
#
# - Increase RAM to 8048M
#
#
@fyrz
fyrz / rocksdb_counter_example.cc
Created January 24, 2015 15:10
RocksDB counter example
// Copyright (c) 2013, Facebook, Inc. All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
#include <cstdio>
#include <string>
#include "rocksdb/db.h"
#include "rocksdb/slice.h"
#include "rocksdb/options.h"
@fyrz
fyrz / simple_example.cc
Created November 17, 2014 12:06
RocksDB - WriteBatchWithIndex BaseIterator example
// Copyright (c) 2013, Facebook, Inc. All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
#include <cstdio>
#include <string>
#include <iostream>
#include "rocksdb/db.h"
#include "rocksdb/slice.h"
#include <iostream>
#include <assert.h>
#include <string>
#include "rocksdb/db.h"
#include "rocksdb/comparator.h"
using namespace std;
using namespace rocksdb;
class ReverseKeyComparator : public rocksdb::Comparator {