Skip to content

Instantly share code, notes, and snippets.

View frbayart's full-sized avatar
🐼
it's a raining day !

Francois BAYART frbayart

🐼
it's a raining day !
View GitHub Profile
@frbayart
frbayart / cpuinfo
Created September 16, 2015 14:51
rudder agent reinit on raspberry pi v1
root@pv2-4gxjg:~# cat /proc/cpuinfo
processor : 0
model name : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS : 2.00
Features : half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xb76
CPU revision : 7
@frbayart
frbayart / cpuinfo
Created September 16, 2015 14:56
rudder agent reinit raspberry pi v2
root@pv2-5vbxm:~# cat /proc/cpuinfo
processor : 0
model name : ARMv7 Processor rev 5 (v7l)
BogoMIPS : 67.20
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 5
@frbayart
frbayart / armv6l
Created September 18, 2015 11:46
Raspberry Pi v6 and v7 /proc/cpuinfo
processor : 0
model name : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS : 2.00
Features : half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xb76
CPU revision : 7
@frbayart
frbayart / rudder-agent_init_scriptv2.sh
Created October 5, 2015 09:15
rudder-agent init script with PID check, loop to force stop
#!/bin/bash
#====================================================================
# Start/stop script for CFEngine Community
# (http://www.cfengine.com).
#
# chkconfig: 2345 85 15
# description: CFEngine Community
#
### BEGIN INIT INFO
@frbayart
frbayart / README.md
Created November 10, 2015 14:48 — forked from renchap/README.md
One-line certificate generation/renews with Letsencrypt and nginx

Prerequisites : the letsencrypt CLI tool

This method allows your to generate and renew your Lets Encrypt certificates with 1 command. This is easily automatable to renew each 60 days, as advised.

You need nginx to answer on port 80 on all the domains you want a certificate for. Then you need to serve the challenge used by letsencrypt on /.well-known/acme-challenge. Then we invoke the letsencrypt command, telling the tool to write the challenge files in the directory we used as a root in the nginx configuration.

I redirect all HTTP requests on HTTPS, so my nginx config looks like :

server {
@frbayart
frbayart / notes.txt
Created March 16, 2016 09:06
Build Rudder Client on Raspberry Pi
apt-get update
apt-get install build-essential dh-autoreconf devscripts lintian diffutils patch patchutils git-core libssl-dev bison flex libtool libpcre3-dev libpam0g-dev
apt-get install fusioninventory-agent
git clone https://github.com/Normation/rudder-packages.git && cd rudder-packages && git checkout branches/rudder/3.0
git clone https://github.com/Normation/rudder-packages.git
Cloning into 'rudder-packages'...
remote: Counting objects: 11225, done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 11225 (delta 6), reused 0 (delta 0), pack-reused 11208
g6Rib2R5hqhkZXRhY2hlZMOpaGFzaF90eXBlCqNrZXnEIwEgLd4p58GTlOQhHmFHRE0g2NHZqmltm9p2RYXukBwouiwKp3BheWxvYWTFAux7ImJvZHkiOnsia2V5Ijp7ImVsZGVzdF9raWQiOiIwMTIwMmRkZTI5ZTdjMTkzOTRlNDIxMWU2MTQ3NDQ0ZDIwZDhkMWQ5YWE2OTZkOWJkYTc2NDU4NWVlOTAxYzI4YmEyYzBhIiwiaG9zdCI6ImtleWJhc2UuaW8iLCJraWQiOiIwMTIwMmRkZTI5ZTdjMTkzOTRlNDIxMWU2MTQ3NDQ0ZDIwZDhkMWQ5YWE2OTZkOWJkYTc2NDU4NWVlOTAxYzI4YmEyYzBhIiwidWlkIjoiZWVkODM4OTBiMDQ5ZjcwYmZkMDRjNDc1YmJlNDI5MTkiLCJ1c2VybmFtZSI6ImZyYmF5YXJ0In0sInNlcnZpY2UiOnsibmFtZSI6ImdpdGh1YiIsInVzZXJuYW1lIjoiZnJiYXlhcnQifSwidHlwZSI6IndlYl9zZXJ2aWNlX2JpbmRpbmciLCJ2ZXJzaW9uIjoxfSwiY2xpZW50Ijp7Im5hbWUiOiJrZXliYXNlLmlvIGdvIGNsaWVudCIsInZlcnNpb24iOiIxLjAuMTQifSwiY3RpbWUiOjE0NTkyMzk5ODAsImV4cGlyZV9pbiI6NTA0NTc2MDAwLCJtZXJrbGVfcm9vdCI6eyJjdGltZSI6MTQ1OTIzOTkzMCwiaGFzaCI6IjBiZmMyZTVkNjcxZDliZDgyMTMzNDgzZTg5YmMwOGJhMDExMTVlMThjYzNjMzI5NzVlY2NhZjFlN2M5OGVjN2Q5NjYzZmJiYzUyMzdlZDI3M2M5MDNkOGFmMzVkMzk5N2ZlNTQwNzQyMGFmYWFhYjkyNWQyZjdmYWY4NzQzYTUzIiwic2Vxbm8iOjQyNDE5MH0sInByZXYiOiIxMWYxNjYwNjdhMDdlNzdlNTM1YjJkYzAwZTVhYzYyMGI4
# HOWTO: Installing Vault On AWS with S3 backend
This is a HOWTO on installing [Vault](https://www.vaultproject.io/https://github.com/hashicorp/vault) on AWS with S3.
Components used:
* [Vault](https://www.vaultproject.io/https://github.com/hashicorp/vault)
* [AWS S3](https://aws.amazon.com/s3/)
* [AWS IAM](https://aws.amazon.com/iam/)
* [AWS EC2](https://aws.amazon.com/ec2/)
* [OpenSSL](https://www.openssl.org/)
@frbayart
frbayart / genesis_public_key
Created February 21, 2018 15:37
genesis_public_key
04961772bd0d83884f03b057328791fdd4b2551698340df663fd7bb9cec9969405277ccc7e5f3ab19cae487a57dc4b733de43dd4a0f9d138f9e963a5cb8e70fe32
@frbayart
frbayart / Brols.md
Last active September 12, 2023 16:14
Remote Working