I hereby claim:
- I am michelbl on github.
- I am michelbl (https://keybase.io/michelbl) on keybase.
- I have a public key ASARCujZSGtNoYEHB-ddVUZtoUs3wkd1jbpLKlq8gQSdRgo
To claim this, I am signing this object:
acl localnet src 0.0.0.0/0 | |
http_access allow localhost | |
http_access allow localnet | |
http_port 9999 | |
forwarded_for off | |
request_header_access Allow allow all |
logoutput: /var/log/dante.log | |
errorlog: /var/log/dante.error.log | |
internal: 51.15.171.195 port = 7165 | |
external: 51.15.171.195 | |
socksmethod: none | |
clientmethod: none | |
user.privileged: root |
# See https://forums.meteor.com/t/acceptance-testing-on-circle-ci-2-0/37825/5 | |
version: 2 | |
jobs: | |
build: | |
working_directory: ~/app | |
docker: | |
- image: circleci/openjdk:8-jdk-browsers | |
environment: | |
# lang settings required for Meteor's Mongo |
""" | |
Inspired from http://stackp.online.fr/?p=25s | |
Create a file named "mail_config.py" containing : | |
HOST = 'mail.gandi.net' | |
PORT = 993 | |
USER = 'test@mydomain.net' | |
PASSWORD = '***' |
I hereby claim:
To claim this, I am signing this object:
# Beforehand, to make it work with SSH you'll have to: | |
# * install xsel and xauth on target host | |
# * set X11Forwarding=yes in /etc/ssh/sshd_config | |
# * connect with option "-X" | |
# * on Mac, install XQuartz | |
# | |
# Test with "echo $DISPLAY", that variable should be set on the server | |
# tmux version 1.6 |
/* | |
Several ways to make a HTTPS request using nodejs. | |
Going from the most simple ways to the most complicated ones. | |
See https://gist.github.com/mtigas/952344 to setup a test env | |
/* | |
/* |
I need to give access to a private dependency. It can happen for continuous integration or deployment.
Here we use python and github, using the services CircleCI and Heroku. However, the principles applies everywhere.
See https://developer.github.com/v3/guides/managing-deploy-keys/
There are 4 ways of granting access to a private dependency, but deploy keys are a good compromise in term of security and ease of use for projects that do not require too many dependencies (in that case, prefer a machine user). In any case, do not use username/password of a developer account or oauth token as they do not provide privilege limitation.
from google.cloud import speech | |
client = speech.SpeechClient() | |
audio = speech.RecognitionAudio(uri="gs://speech-data-895/source_2_flac.wav") | |
config = speech.RecognitionConfig( | |
language_code="fr-FR", | |
) |
#!/usr/bin/env python | |
''' | |
A Python class implementing KBHIT, the standard keyboard-interrupt poller. | |
Works transparently on Windows and Posix (Linux, Mac OS X). Doesn't work | |
with IDLE. | |
This program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU Lesser General Public License as | |
published by the Free Software Foundation, either version 3 of the | |
License, or (at your option) any later version. |