Skip to content

Instantly share code, notes, and snippets.

View Remiii's full-sized avatar
👨‍💻
remibarbe.fr

Rémi Barbe Remiii

👨‍💻
remibarbe.fr
View GitHub Profile
@Remiii
Remiii / xml-split.awk
Last active September 24, 2018 10:50
AWK - split XML subnodes into separate files
# This awk script splits an XML file and exports X nodes into separate file
# It doesn't work if the main node has an attribute
# It doesn't work if the main node contains a subnode with the same tagname, etc.
# Use at your own risk, think before using.
# Usage:
# - Replace "myNumberOfNodesByOutputFile" by your number of nodes by output file
# - Replace "myChildNode" by your tag
# - Replace "myParentNode" by your parent tag
# Run:
# $ awk -f xml-split.awk myXML.xml
@Remiii
Remiii / README.md
Last active August 13, 2018 00:33
Setup Vagrant box (Ubuntu 14.04)

Setup Vagrant box (Ubuntu 14.04)

Introduction

This file discribe all the steps in order to setup a Vagrant box (using the Ansible Ubuntu simple Symfony App config - please refer to this repository for more info).

Requirements

Timer

@Remiii
Remiii / README.md
Created June 14, 2018 13:57
Cookie banner 🍪

Cookie banner 🍪

Cookie banner/alert...

@Remiii
Remiii / README.md
Last active June 1, 2018 05:31
GitHub production pull (machine users)

GitHub production pull (machine users)

This README give steps in order to use GitHub machine users... 😎 In case of a first GitHub setup please refer to GitHub set up article.

/home/myuser/.ssh/
    |
    +-- config
    |
 +-- myusermachinekey
@Remiii
Remiii / text.md
Last active December 14, 2017 14:41
Acronyms Seriously Suck - Elon Musk

From time to time, Musk will send out an e-mail to the entire company to enforce a new policy or let them know about something that's bothering him. One of the more famous e-mails arrived in May 2010 with the subject line: Acronyms Seriously Suck:

There is a creeping tendency to use made up acronyms at SpaceX. Excessive use of made up acronyms is a significant impediment to communication and keeping communication good as we grow is incredibly important. Individually, a few acronyms here and there may not seem so bad, but if a thousand people are making these up, over time the result will be a huge glossary that we have to issue to new employees. No one can actually remember all these acronyms and people don't want to seem dumb in a meeting, so they just sit there in ignorance. This is particularly tough on new employees.

That needs to stop immediately or I will take drastic action - I have given enough warning over the years. Unless an acronym is approved by me, it should not enter the SpaceX glossary.

@Remiii
Remiii / README.md
Created August 19, 2015 15:31
Mac pfctl Port Forwarding for your VM/Docker

Mac pfctl Port Forwarding for your VM/Docker

Add rules

$ cat /etc/pf.anchors/remiii.forwarding
rdr pass on lo0 inet proto tcp from any to 127.0.0.1 port 80 -> 127.0.0.1 port 10080
rdr pass on lo0 inet proto tcp from any to 127.0.0.1 port 443 -> 127.0.0.1 port 10443

Enable rules

@Remiii
Remiii / key1.pgp
Last active April 27, 2017 10:13
My PGP Public Key1
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFj80rcBEADkNAuCPZevurJp5Z8qqv4lDX0XYUVhVFfI88tS0mTPYv0W7Oxx
jIKgYql/0NLh7iWGKaLeeYynRRadove9W5shBfzQVgBCAWsHaMsliv9DxM8jZoq3
eziHHvfLXPKhRKSSf0WQFyg2Lg5eAJw4zQTCR/QPSKZRKkgOY9JcGgedt+lIpkeV
rFydBIiLDUKdabhv6RlqIG5t1NIcU150iFA7SJfis2ee5bVTe46gS5Fr/YFvnK5P
j9kFx6CAfP6JYC2kLlbC8yYItzwflKefUnRNMUJfn4XRhIfCIaY4i34x7btgtr+4
wfNonba+zC9g07Ej6CiuA1GPg13/I6lBt5DkJNcPVqmk1Qjw3WbTBWMLpFMS821R
VG3nIwDCQu3Hz2q5bO+SIlPFBI6w5PhPiRvlV/D6QLFc9b2mJYnzPFuqBGfw9kUu
7OcQnEBUeZQ5cgWNw6pA8eBSn6T62sgQUjK4md9w7C2qNJK4a9kLOg4qB6FnxB9g

Keybase proof

I hereby claim:

  • I am Remiii on github.
  • I am remiii (https://keybase.io/remiii) on keybase.
  • I have a public key whose fingerprint is F90F FF89 373B 8073 F9EA DEC4 3977 789D 69EE 39B5

To claim this, I am signing this object:

@Remiii
Remiii / README.md
Last active March 12, 2017 09:06
Setup django-poc

Setup django-poc

Setup env

$ mkvirtualenv django-poc -p python3 -a pathToTheProject
$ pip install django
$ pip install -r requirements/local.txt

$ python -V