Skip to content

Instantly share code, notes, and snippets.

Setting top to : /tmp/tmpctNwIM
Setting out to : /tmp/tmpctNwIM/build
Checking for program gcc,cc : arm-none-eabi-gcc
Checking for program ar : arm-none-eabi-ar
Found Pebble SDK in : /app/sdk2/Pebble
'configure' finished successfully (0.052s)
Waf: Entering directory `/tmp/tmpctNwIM/build'
[ 1/29] appinfo.auto.c: appinfo.json -> build/appinfo.auto.c
[ 2/29] menu_icon.png.pbi: resources/images/menu_icon.png ../../app/sdk2/Pebble/tools/bitmapgen.py -> build/resources/images/menu_icon.png.pbi
[ 3/29] logo_splash.png.pbi: resources/images/logo_splash.png ../../app/sdk2/Pebble/tools/bitmapgen.py -> build/resources/images/logo_splash.png.pbi
@davidraviv
davidraviv / logstash.conf
Last active January 21, 2016 13:49
Basic logstash config file that reads a json log file into elasticsearch. *Install logstash on mac:* brew install logstash mkdir /usr/local/etc/logstash subl /usr/local/etc/logstash/logstach.conf *Test config file* cd /usr/local/Cellar/logstash/2.1.1 bin/logstash -f /usr/local/etc/logstash/logstash.conf --configtest
input {
file {
path => "/var/log/kwik/kwik.log"
codec => json
start_position => beginning
}
}
output {
elasticsearch {
hosts => "localhost:9200"
@davidraviv
davidraviv / nginx-configuration
Last active January 24, 2016 12:02
/etc/nginx/sites-available/default Set Ngnix as reverse proxy for Kibana
server {
listen 80;
server_name domain.com;
auth_basic "Restricted Access";
auth_basic_user_file /etc/nginx/htpasswd.users;
location / {
proxy_pass http://localhost:5601;
@davidraviv
davidraviv / semanticVersionComparator.js
Created February 3, 2016 09:03
Compare two version numbers that follows the semantic version standard
/**
* Created by david on 17/1/16.
*/
/**
* Compares two version numbers that follow the semantic version standard.
* Compares only the first 3 elements (major, minor and patch).
* Separator can be '.' or '-'.
* If a>b, returns 1
* If a<b, returns -1
@davidraviv
davidraviv / logstash.conf
Created February 17, 2016 14:02
Logstash configuration that accepts json file from filebeat. It overrides filebeat's additional fields and takes the type from the json rather than filebeat.
input {
beats {
port => 5044
}
}
filter {
if [type] == "beat" {
mutate {
remove_field => ["type", "beat", "input_type", "offset", "source", "fields"]
@davidraviv
davidraviv / timeout.js
Created February 15, 2017 09:14
Execute a Promise with a timeout. If the timeout occurs before completing the Promise, it should reject.
/**
* Accepts a promise and a timeout. If the timeout reached while the promise is stil pending, it rejects with a timeout.
* @param timeout in milli
* @param promise
*/
Promise.timeout = (timeout, promise) => {
let bombId;
Promise.race([
promise,
new Promise((resolve, reject) => {
@davidraviv
davidraviv / gist:f7e07c9d391c805e2659d6dd76983c18
Created February 15, 2022 06:33 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue: