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 / README.md
Last active June 23, 2023 12:40
Azure NodeJs upload to storage account
@frbayart
frbayart / Brewfile
Last active December 29, 2022 22:09
Reminder for Fresh Install
# https://github.com/Homebrew/homebrew-bundle
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-fonts"
tap "homebrew/core"
# set arguments for all 'brew install --cask' commands
cask_args appdir: "~/Applications", require_sha: true
# CASK
@frbayart
frbayart / subscriptions.opml
Created December 13, 2022 15:16
RSS Subscriptions
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.1">
<head>
<title>The Old Reader</title>
<dateCreated>Tue, 13 Dec 2022 15:13:31 GMT</dateCreated>
<dateModified>Tue, 13 Dec 2022 15:13:31 GMT</dateModified>
<ownerName>Francois Bayart</ownerName>
<ownerEmail>francois@f.com</ownerEmail>
</head>
<body>
@frbayart
frbayart / main.py
Created May 25, 2022 07:39
Probot settings.yaml generator
from github import Github
from jinja2 import Environment, FileSystemLoader
import os
import yaml
g = Github(os.environ['GITHUT_PAT'])
repo = g.get_repo("GH-ORG/REPONAME")
@frbayart
frbayart / go.mod
Created April 12, 2022 13:33
gh-to-jira-etl
module kensu.io/m/v2
go 1.16
require github.com/aws/aws-lambda-go v1.24.0
@frbayart
frbayart / README.md
Created January 23, 2022 17:38
Python Shebang with Pyenv

Detect which python3 to use based on .python-version file (created by pyenv) anf fallback to python3 in $PATH

ie if vault_save.py is in ~/bin/ try to get ~/bin/'python-version` if it exists if will be used to execute the current Python file.

So if your $PATH is PATH=~/bin:$PATH, you can run from anywhere vault_save.py and it will use the pyenv version defined in ~/bin

@frbayart
frbayart / gist:61ac332d98aa327cc263e1fb5d91c2f8
Created December 7, 2021 16:45
hashicorp/vault: no available releases match the given constraints
- Installed hashicorp/aws v3.56.0 (signed by HashiCorp)
│ Error: Failed to query available provider packages
│ Could not retrieve the list of available versions for provider hashicorp/vault: no available releases match the given constraints 2.23.0
cd .terraform.d
rm -rf ./plugins/registry.terraform.io/hashicorp/vault

Keybase proof

I hereby claim:

  • I am frbayart on github.
  • I am frbayart (https://keybase.io/frbayart) on keybase.
  • I have a public key ASBO-eyCp2U95B_VNM5Sgk_8OZhVgZ0-dBCRiaeEiHiVjwo

To claim this, I am signing this object:

@frbayart
frbayart / esxi-firewalling
Last active September 3, 2020 03:03
Generate OVA for with Packer
ESX Configuration for VNC during Packer configuration
[root@esxi:/etc/vmware/firewall] more vnc.xml
<ConfigRoot>
<service id='0200'>
<id>VNC</id>
<rule id='0000'>
<direction>inbound</direction>
<protocol>tcp</protocol>
<porttype>dst</porttype>
@frbayart
frbayart / blackbox.yml
Last active September 2, 2020 16:32
blackbox-exporter with custom CA version=0.17.0, branch=HEAD, revision=1bc768014cf6815f7e9d694e0292e77dd10f3235
modules:
icmp_ipv4:
prober: icmp
timeout: 5s
icmp:
preferred_ip_protocol: ip4
http_2xx:
prober: http
timeout: 5s