Skip to content

Instantly share code, notes, and snippets.

View greut's full-sized avatar
:shipit:
moving slowly and breaking things

Yoan Blanc greut

:shipit:
moving slowly and breaking things
View GitHub Profile
@greut
greut / keybase.md
Created December 16, 2024 15:24
keybase.md

Keybase proof

I hereby claim:

  • I am greut on github.
  • I am greut (https://keybase.io/greut) on keybase.
  • I have a public key ASD24UHNoTAtonM28EqzcGTK8upmNi85RbraX60Qb_lE8Ao

To claim this, I am signing this object:

@greut
greut / github-notify-template.yaml
Last active October 23, 2024 10:55
GitHub commit statuses from Argo Workflow
---
apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
name: github-notify-template
spec:
arguments:
parameters:
- name: repository_full_name
- name: commit_sha
@greut
greut / colima.yaml
Created September 30, 2024 08:21
Colima started with: colima start --vm-type vz --kubernetes-version v1.29.8+k3s1 --disk 200 --memory 8 --network-address
# Number of CPUs to be allocated to the virtual machine.
# Default: 2
cpu: 2
# Size of the disk in GiB to be allocated to the virtual machine.
# NOTE: value can only be increased after virtual machine has been created.
#
# Default: 60
disk: 200
@greut
greut / run.php
Created April 30, 2011 18:18
A web server in pure PHP (non-concurrent and concurrent)
#!/usr/bin/env php
<?php
$app = function($request) {
$body = <<<EOS
<!DOCTYPE html>
<html>
<meta charset=utf-8>
<title>Hello World!</title>
@greut
greut / Main.java
Created May 29, 2017 07:37
TCP + UDP Java Echo Server.
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
@greut
greut / accesspoint.md
Last active February 10, 2021 23:32
Laptop Access-Point with monitoring

Access Point

Setup

  • hostapd
  • dnsmasq
  • ntop
  • iptables

NetworkManager

package main
import (
"fmt"
"github.com/sirupsen/logrus"
"github.com/hashicorp/go-retryablehttp"
)
type LeveledLogrus struct {
*logrus.Logger
@greut
greut / keybase.md
Created September 22, 2020 09:56
keybase.md

Keybase proof

I hereby claim:

  • I am greut on github.
  • I am yblanc (https://keybase.io/yblanc) on keybase.
  • I have a public key whose fingerprint is A2A7 E23A 88A2 1EA5 561E 581F 068A F996 C3F7 2ADA

To claim this, I am signing this object:

@greut
greut / api.py
Last active June 2, 2020 21:20
Revamped api.py (with test and 100% coverage)
"""
Slack Web API
=============
The `Slack Web API`_ let you communicate with Slack.
Usage:
------
The following example calls the ``api.test`` method which test whether your
Sourdough oatmeal chocolate chip cookies
1/2 cup discard sourdough
1/2 cup softened butter
1 egg
1/2 cup dark brown sugar