Skip to content

Instantly share code, notes, and snippets.

View chussenot's full-sized avatar

Clément Hussenot chussenot

View GitHub Profile
#!/bin/bash
set -e
function abort()
{
echo "$@"
exit 1
}
function cleanup()
@chussenot
chussenot / -
Created February 7, 2017 14:27
#!/bin/bash
if [[ -s //etc/profile ]]; then
source //etc/profile
fi
if [[ -s $HOME/.bash_profile ]] ; then
source $HOME/.bash_profile
fi
ANSI_RED="\033[31;1m"
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
product
10301934
10301938
10301943
10301944
10301945
10301955
10301965
10301972
10301970
@chussenot
chussenot / .tmux.conf
Created February 11, 2017 10:42 — forked from v-yarotsky/.tmux.conf
Mac OS X tmux config
### INSTALLATION NOTES ###
# 1. Install Homebrew (https://github.com/mxcl/homebrew)
# 2. brew install zsh
# 3. Install OhMyZsh (https://github.com/robbyrussell/oh-my-zsh)
# 4. brew install reattach-to-user-namespace --wrap-pbcopy-pbpaste && brew link reattach-to-user-namespace
# 5. Install iTerm2
# 6. In iTerm2 preferences for your profile set:
# Character Encoding: Unicode (UTF-8)
# Report Terminal Type: xterm-256color
# 7. Put itunesartist and itunestrack into PATH
@chussenot
chussenot / -
Created February 13, 2017 09:22
#!/bin/bash
if [[ -s //etc/profile ]]; then
source //etc/profile
fi
if [[ -s $HOME/.bash_profile ]] ; then
source $HOME/.bash_profile
fi
ANSI_RED="\033[31;1m"
# https://github.com/alex/ecs-terraform/blob/master/policies/ecs-service-role-policy.json
resource "aws_iam_role" "ecs_service_role" {
name = "ecs_service_role"
assume_role_policy = "${file("policies/ecs-role.json")}"
}
resource "aws_iam_role_policy" "ecs_service_role_policy" {
name = "ecs_service_role_policy"
policy = "${file("policies/ecs-service-role-policy.json")}"

Buffer API

API that delivers dnb JSON stream.

This API,

  • respect REST rules of use
  • is version controlled (not yet)
  • have coherent return HTTP codes (40x,50x,20x)
import logging
import os
import urllib2
import time
import json
from dnbdirect2 import DnBPlus
from cache import Cache
from parsers import ProfileParser
from errors import (
duns country_code
214567885 GB
231634267 GB
239337363 GB
241018923 CA
241019160 CA
241019210 CA
241019251 CA
241019293 CA
241019335 CA
FROM frekele/gradle:3.3-jdk8u121
RUN apt-get --quiet -y update
RUN apt-get -qq -y install git maven
RUN rm -rf /tmp/srfp-api && mkdir -p /tmp/srfp-api
ADD . /tmp/srfp-api
RUN cd /tmp && \