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 / README.md
Created June 13, 2019 13:20
List of countries - Alphabetical list of countries 🏳️

Afghanistan Albania Algeria American Samoa Andorra Angola Anguilla Antarctica Antigua and Barbuda Argentina

@Remiii
Remiii / README.md
Created February 26, 2019 12:57
Force your site to load securely with an .htaccess file

Force your site to load securely with an .htaccess file

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
@Remiii
Remiii / README.md
Created January 23, 2019 17:05
Install Python, Python3 and PIP on Mac OSX

Install Python

  • Install Xcode
  • Install Homebrew (i.e. https://brew.sh)
  • brew update & brew upgrade
  • brew install python3
  • brew postinstall python3
@Remiii
Remiii / README.md
Last active November 13, 2018 14:20
Activation de la notification par email des messages reçu sur la boîte vocale Sosh / Orange ☎️🔌✉️

Timer

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

Cookie banner 🍪

Cookie banner/alert...

@Remiii
Remiii / README.md
Last active February 17, 2019 09:31
AWS RDS password expired 👹

AWS RDS password expired

If you use MySQL and especially AWS Relational Database Service (RDS) you have certainly a bomb in your App without any consciousness of this!

Since MySQL 5.7.4 a nice password expiring feature was introduced with 360 days default value. But this feature was enabled by default since 5.7.10. If you use AWS RDS you have set up your DB with the fancy setup pages with no warning or information about the ephemeral duration of your password. So if your database on AWS RDS is setup from 359 days go to your AWS console page and update your password quickly.

Mark : your root login is also set during the setup of your database…

Useful link :

@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 October 17, 2017 08:43
VPN (OpenVPN) server and clients setup 🚂🚇😀

VPN (OpenVPN) server and clients setup 🚂🚇😀

This gist give all the steps in order to build a VPN (OpenVPN) network with server and clients (automatic generation for clients certificates). 😀

  1. Server configuration
  2. Clients configuration
  3. Security
  4. Generate automatic certificates for clients

Server configuration

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: