Skip to content

Instantly share code, notes, and snippets.

View wdavidw's full-sized avatar

Worms David wdavidw

View GitHub Profile
https://drive.google.com/drive/folders/1emu8fnwYSLPIG44-RBU4dvwqn5I3P20t?usp=sharing
# brew bundle list --all
tap "homebrew/cask"
tap "homebrew/cask-fonts"
tap "homebrew/cask-versions"
brew "azure-cli"
brew "docker-machine"
'use strict';
/**
* Module dependencies
*/
// Public node modules.
const _ = require('lodash');
// Utils

Keybase proof

I hereby claim:

  • I am wdavidw on github.
  • I am wdavidw (https://keybase.io/wdavidw) on keybase.
  • I have a public key ASD2A24ClkW79dHU-BxnaIVnIhTaqbDulJWZKmLC1cDbmQo

To claim this, I am signing this object:

nikita.service.startup(options, [callback])

Activate or desactivate a service on startup.

Options

  • arch_chroot (boolean|string)
    Run this command inside a root directory with the arc-chroot command or any provided string, require the "rootdir" option if activated.

Twitter

Goal

This is a usecase I had a few years ago at EDF. The company wanted to fetch twitter information and do some analysis on it like sentimental analysis or finding the discussed topics.

The problem once you look at the [#edf Twitter tag][tag] is obvious: both the company and the French soccer team are discussed (EDF stands for Equipe De France).

@wdavidw
wdavidw / stdout
Last active December 18, 2015 11:38
[ '1',
'0--0----------------------------------------------------------0.RU',
'REGTIME-REG-RIPN',
'17.10.2012',
'17.10.2013',
'17.11.2013',
'1',
'1' ]
[ '2',
'0--0----------CHECKPARAMS-DOT-COM---BEST-DOMAINER-TOOL--------0.RU',
>> brew install mysql51
Warning: It appears you have MacPorts or Fink installed.
Software installed with other package managers causes known problems for
Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again.
==> Downloading http://mysql.mirrors.pair.com/Downloads/MySQL-5.1/mysql-5.1.58.tar.
Already downloaded: /Library/Caches/Homebrew/mysql51-5.1.58.tar.gz
==> Patching
patching file scripts/mysqld_safe.sh
Hunk #1 succeeded at 384 (offset 1 line).
patching file scripts/mysql_config.sh
@wdavidw
wdavidw / rc_lzo.sql
Created July 12, 2012 10:52
RCFile with LZO compression
USE `format`;
DROP TABLE rc_lzo;
CREATE TABLE rc_lzo
(
id BIGINT,
date1 INT,
date2 INT,
type STRING,
@wdavidw
wdavidw / hash_ring_js.js
Created April 26, 2011 15:32
HashRing native versus js
var HashRing = require('hashring'),
assert = require('assert');
var ring = new HashRing({
's1':10,
's2': 20,
'pro1':40,
'pro2': 30
});