Skip to content

Instantly share code, notes, and snippets.

View 92bondstreet's full-sized avatar

Yassine A. 92bondstreet

  • 92 Bond Street
  • Paris
View GitHub Profile
@92bondstreet
92bondstreet / winston-elasticsearch.js
Created September 6, 2017 13:44
winston logs to elasticsearch
const winston = require('winston');
const Elasticsearch = require('winston-elasticsearch');
const esTransportOpts = () => {
return {
'indexPrefix': 'fifa',
'level': 'debug'
};
};
@92bondstreet
92bondstreet / my-ip.sh
Created February 13, 2017 10:43
Find my IP for wireless and ethernet
❯ ipconfig getifaddr en0 && ipconfig getifaddr en1
@92bondstreet
92bondstreet / docker-chromium
Created January 4, 2017 23:16
How to start chromium inside docker container hosted by mac os
# More details
# 1. Docker for Mac and GUI applications - https://fredrikaverpil.github.io/2016/07/31/docker-for-mac-and-gui-applications/
# 2. dockerfile-fedora-chromium - https://github.com/TomasTomecek/dockerfile-fedora-chromium
❯ brew cask install xquartz
❯ open -a XQuartz
❯ ip=$(ifconfig en0 | grep inet | awk '$1=="inet" {print $2}')
❯ xhost + $ip
❯ docker run \
--net host \
@92bondstreet
92bondstreet / docker-mac-os-x.sh
Last active September 24, 2016 09:34
Installation of Mac os Docker Beta
brew update && brew cleanup && brew prune
brew cask update && brew cask cleanup
brew install docker
brew cask install docker
open -a docker
@92bondstreet
92bondstreet / license.txt
Last active December 28, 2015 04:59
RealTweet is an algorithm to distinguish human and bot twitter users. The python script is based on Professor Marco Camisani Calzolari algorithm (www.camisanicalzolari.com/MCC-Twitter-ENG.pdf)
The MIT License (MIT)
Copyright (c) 2013 Yassine AZZOUT
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions: