Skip to content

Instantly share code, notes, and snippets.

View nrobinaubertin's full-sized avatar

Niels Robin-Aubertin nrobinaubertin

View GitHub Profile
@nrobinaubertin
nrobinaubertin / smtp_test.py
Created April 2, 2024 13:39
test script for emails sending
#!/usr/bin/env python3
import socket
import sys
from smtplib import SMTP, SMTPAuthenticationError, SMTPException, SMTP_SSL
smtp_address = "smtp-services.example.com"
# smtp_address = "service.smtp.example.com"
smtp_authentication = "login"
smtp_domain = "example.com"
smtp_password = "password"
@nrobinaubertin
nrobinaubertin / go.yml
Created February 7, 2024 00:18
Generic github pipeline for a go project
name: Build and unit test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
TINYGO_VERSION: '0.30.0'
@nrobinaubertin
nrobinaubertin / allow_egress_to_internal.yml
Created January 10, 2024 22:36
k8s network policy to only allow internal networking
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-egress-to-internal
spec:
podSelector: {}
policyTypes:
- Egress
egress:
- to:
@nrobinaubertin
nrobinaubertin / app.component.ts
Created January 17, 2017 13:36
Exemple of ngb-date-parser-formatter implementation (ng-bootstrap)
import { NgbDatepickerConfig, NgbDateParserFormatter } from '@ng-bootstrap/ng-bootstrap';
import { NgbDateFRParserFormatter } from "./ngb-date-fr-parser-formatter"
@Component({
providers: [{provide: NgbDateParserFormatter, useClass: NgbDateFRParserFormatter}]
})
export class AppComponent {}

Keybase proof

I hereby claim:

  • I am nrobinaubertin on github.
  • I am nrobinaubertin (https://keybase.io/nrobinaubertin) on keybase.
  • I have a public key whose fingerprint is 0D00 C7F2 4504 0BBB B0A2 4735 1F2E 1B74 3FBA EA5E

To claim this, I am signing this object:

#the most awful sed commands possible :
sed '/\//,/\//s,/,\,,g'<<<///
sed '\,\/,,\,\/,s,/,\,,g'<<<///