Skip to content

Instantly share code, notes, and snippets.

View lrivallain's full-sized avatar
🏠
Working from home

Ludovic Rivallain lrivallain

🏠
Working from home
View GitHub Profile
@lrivallain
lrivallain / vra75-fix-timeout-kb58708.yml
Last active January 7, 2020 08:03
Fix "Installation of a vRealize Automation 7.5 cluster fails during the join-va (join cluster) step" KB #58708
---
# Fix "Installation of a vRealize Automation 7.5 cluster fails during the join-va (join cluster) step"
# https://kb.vmware.com/s/article/58708
- hosts: vraappliances
gather_facts: no
remote_user: root
tasks:
- name: KB 58708 - vCAC setenv-tools
lineinfile:
path: /etc/vcac/setenv-tools
@lrivallain
lrivallain / sapin.md
Last active December 6, 2019 09:07
Home made Christmas Tree

Dimensions du sapin terminé: 1m * 64cm

Le gros avantage de ce sapin Home made c'est qu'il se range facilement une fois les fêtes terminées, en repliant les branches et éventuellement en dévissant son pied.

Matériaux:

  • 5 tasseaux 2,40m x21x21mm
  • 1 tige filetée ⌀8mm longueur 1m
  • 6 boulons ⌀8mm
  • 3 rondelles
  • Pied: 2 morceaux de bois: 35x70x300mm
@lrivallain
lrivallain / SetSmartCardAsDefaultLoginProviderOnWindows7.md
Last active September 25, 2018 07:32
Set smart card as default login provider on Windows 7

Run regedit.exe

Edit HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\SessionData\1 to set LastLoggedOnProvider to the following value: {8bf9a910-a8ff-457f-999f-a5ca10b4a885}

@lrivallain
lrivallain / back-userdata.sh
Last active June 12, 2019 14:48
A terraform sample to deploy a 2 tiers fake-app on OpenStack provider
#cloud-config
runcmd:
- touch /tmp/back.file
final_message: "The backend system is finally up, after $UPTIME seconds"
---
- name: Credentials for vCenter API
hosts:
- workers
- frontweb
gather_facts: no
vars_prompt:
- name: "vcenter_hostname_tmp"
prompt: "Enter vcenter hostname"
default: "vcsa01-rennes.lri.lcl"
@lrivallain
lrivallain / vpxa.log
Created February 9, 2018 11:30
vmware_guest - Unable to clone VM when adding additionnal vnics
2018-02-07T16:46:43.040Z verbose vpxa[9045B70] [Originator@6876 sub=PropertyProvider opID=11b4db5a-01-ab] RecordOp ASSIGN: info.state, task-249. Applied change to temp map.
2018-02-07T16:46:43.040Z verbose vpxa[9045B70] [Originator@6876 sub=PropertyProvider opID=11b4db5a-01-ab] RecordOp ASSIGN: info.cancelable, task-249. Applied change to temp map.
2018-02-07T16:46:43.040Z verbose vpxa[9045B70] [Originator@6876 sub=PropertyProvider opID=11b4db5a-01-ab] RecordOp ASSIGN: info.error, task-249. Applied change to temp map.
2018-02-07T16:46:43.040Z verbose vpxa[9045B70] [Originator@6876 sub=PropertyProvider opID=11b4db5a-01-ab] [CommitChangesAndNotify] Updating cached values
2018-02-07T16:46:43.040Z info vpxa[9045B70] [Originator@6876 sub=vpxLro opID=11b4db5a-01-ab] [VpxLRO] -- FINISH task-249
2018-02-07T16:46:43.040Z info vpxa[9045B70] [Originator@6876 sub=Default opID=11b4db5a-01-ab] [VpxLRO] -- ERROR task-249 -- vm-48 -- vim.VirtualMachine.reconfigure: vim.fault.InvalidDeviceBacking:
--> Result:
--> (vim.fault.I
@lrivallain
lrivallain / vra-import-package.sh
Created January 29, 2018 09:25
Import content package in vRealize Automation
#!/bin/bash
function helper {
echo "To use the script, ensure to configure environment variables with the credentials for your vRA account:
export VRA_SERVER='vra-server.domain.lcl'
export VRA_USERNAME='configurationadmin@vsphere.local'
export VRA_PASSWORD='VMware1!'
export VRA_TENANT='vsphere.local'"
}
@lrivallain
lrivallain / telnet.py
Last active March 5, 2025 15:04
A telnet replacement in python
#!/usr/bin/python
import socket
import sys
if len(sys.argv) != 3:
print("usage: telnet.py IPADDRESS PORT")
exit(-1)
print("Opening connection on %s port %s" % (sys.argv[1], sys.argv[2]))
@lrivallain
lrivallain / sniff.sh
Created August 21, 2017 12:42
Sniff HTTP(s) hosts on a gateway
#/bin/bash
#
# Use this script to sniff the HOST requested by a single IP for HTTP(s) requests
#
# Usage : ./sniff.sh XX.XX.XX.XX
#
tcpdump -Alfq -s 1024 "
(tcp dst port 443 or tcp dst port 80 or tcp dst port 8080)
@lrivallain
lrivallain / README.md
Last active August 18, 2017 07:13
Fake SMTP server

Run it

chmod +x fakeSMTPserver.py
sudo ./fakeSMTPserver.py

Change behavior

Print messages out to stdout