One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Apply this checklist on release candidate | |
[ ] create release branch | |
[ ] bump version | |
[ ] apply fix (if exist) |
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import asyncio | |
async def init_socket (loop): | |
reader, writer = await asyncio.open_connection('127.0.0.1', 3000, loop=loop) | |
return reader, writer |
curl https://herve.beraud.io/ 2>/dev/null | sed -n '/d/s/.*name="description"\s\+content="\([^"]\+\).*/\1/p' |
:34,65 s/./#&/ |
# Use those functions to enumerate all interfaces available on the system using Python. | |
# found on <http://code.activestate.com/recipes/439093/#c1> | |
import socket | |
import fcntl | |
import struct | |
import array | |
def all_interfaces(): | |
max_possible = 128 # arbitrary. raise if needed. |
import random | |
choices = range(48, 57) | |
choices.extend(range(65, 90)) | |
choices.extend(range(97, 122)) | |
chr_identifier = "" | |
int_identifier = "" | |
for el in range(0, 6): | |
chr_identifier += chr(random.choice(choices)) | |
int_identifier += str(random.choice(choices)) | |
print(chr_identifier) |
# /path/to/your/file.yaml | |
project: | |
meta: | |
name: my-project | |
foo: bar | |
list-items: | |
- item1 | |
- item2 | |
- item3 |
{ | |
"project": { | |
"meta": { | |
"name": "my-project" | |
} | |
}, | |
"foo": "bar", | |
"list-items": [ | |
"item1", | |
"item2", |
git rebase -i --root | |
# edit on the root commit | |
git commit --amend --no-edit # per example | |
# or change the commit date | |
git commit --amend --date="Wed Feb 16 14:00 2011 +0100" | |
# or change the commit author | |
git commit --amend --author="Hervé Beraud" | |
git rebase --continue |