Skip to content

Instantly share code, notes, and snippets.

View anak10thn's full-sized avatar
🌴
Maaf gak di rumah

Ibnu Yahya (Eka) anak10thn

🌴
Maaf gak di rumah
View GitHub Profile
@anak10thn
anak10thn / .travis.yml
Created June 4, 2017 17:29 — forked from willprice/.travis.yml
How to set up TravisCI for projects that push back to github
# Ruby is our language as asciidoctor is a ruby gem.
lang: ruby
before_install:
- sudo apt-get install pandoc
- gem install asciidoctor
script:
- make
after_success:
- .travis/push.sh
env:
@anak10thn
anak10thn / riot-matrix-workshop.md
Created March 17, 2017 12:25 — forked from attacus/riot-matrix-workshop.md
Create your own encrypted chat server with Riot and Matrix

Running your own encrypted chat service with Matrix and Riot

Authors and Workshop Instructors:

This workshop is distributed under a CC BY-SA 4.0 license.

What are we doing here?

The goal of this workshop is to teach you how to configure and run your own Matrix/Riot service. By the end of the workshop, you should be able to log into secure chat rooms and invite others to the same server.

@anak10thn
anak10thn / eapi.rs
Created February 7, 2017 09:04 — forked from fredhsu/eapi.rs
Using Rust/Hyper to do a HTTP Post with JSON
extern crate hyper;
extern crate core;
use std::io::Read;
use hyper::Client;
use hyper::header::Connection;
use hyper::header::Basic;
use hyper::header::Headers;
use core::str::FromStr;
@anak10thn
anak10thn / bindings-cheat-sheet.md
Created February 2, 2017 18:55 — forked from eendeego/bindings-cheat-sheet.md
Node/V8 bindings cheat sheet
@anak10thn
anak10thn / topkeywords.js
Created October 1, 2016 19:36 — forked from elliotbonneville/topkeywords.js
Find top keywords associated with a Google search with this Node.js application.
var request = require("request"),
cheerio = require("cheerio"),
url = "https://www.google.com/search?q=data+mining",
corpus = {},
totalResults = 0,
resultsDownloaded = 0;
function callback () {
resultsDownloaded++;
@anak10thn
anak10thn / monit.myapp.conf
Created April 29, 2016 16:26 — forked from joeyimbasciano/monit.myapp.conf
Monit configuration file to check HTTP service listening on port 9009 and recovery from DNS failures
check host appsrv1 with address 127.0.0.1
start program = "/sbin/start myapp"
stop program = "/sbin/stop myapp"
alert [email protected] on {timeout,connection}
if failed port 9009 protocol HTTP
request /
with timeout 3 seconds
then restart
if 10 restarts within 10 cycles then timeout
if 10 restarts within 10 cycles then exec "/usr/bin/monit start aws-dns-healthcheck"
@anak10thn
anak10thn / System Design.md
Created April 18, 2016 17:53 — forked from vasanthk/System Design.md
System Design Cheatsheet

#System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

##Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@anak10thn
anak10thn / install-gradle-centos.sh
Created April 12, 2016 17:08 — forked from parzonka/install-gradle-centos.sh
Install gradle on redhat/centos linux
# installs to /opt/gradle
# existing versions are not overwritten/deleted
# seamless upgrades/downgrades
# $GRADLE_HOME points to latest *installed* (not released)
gradle_version=2.9
wget -N https://services.gradle.org/distributions/gradle-${gradle_version}-all.zip
sudo unzip -foq gradle-${gradle_version}-all.zip -d /opt/gradle
sudo ln -sfn gradle-${gradle_version} /opt/gradle/latest
sudo printf "export GRADLE_HOME=/opt/gradle/latest\nexport PATH=\$PATH:\$GRADLE_HOME/bin" > /etc/profile.d/gradle.sh
. /etc/profile.d/gradle.sh
@anak10thn
anak10thn / setting_virtualenv.md
Created March 31, 2016 14:49 — forked from dark-reiser/setting_virtualenv.md
Setting Backend Python

#Konfigurasi Virtual Environment

  1. Jalankan vagrant dan masuk
vagrant up
vagrant ssh
  1. Install virtualenv dengan perintah

pip install virtualenv

@anak10thn
anak10thn / mesos_arm.md
Created March 21, 2016 11:25 — forked from moderation/mesos_arm.md
Compile Apache Mesos 0.22 for Raspberry Pi 2

How to compile Mesos on your new Raspberry Pi 2 (which is amazing with 4 cores and 6x performance). Follows on from experiments in compiling for OS X

sudo apt-get install maven libsasl2-dev libapr1-dev libsvn-dev libcurl4-openssl-dev python-dev python-boto

export JAVA_HOME="/usr/lib/jvm/jdk-8-oracle-arm-vfp-hflt"
export PATH=$JAVA_HOME/bin:$PATH

http://likemagicappears.com/projects/raspberry-pi-cluster/mesos-on-raspbian/