Skip to content

Instantly share code, notes, and snippets.

View iomonad's full-sized avatar
🍋
λ

iomonad iomonad

🍋
λ
  • 10:44 (UTC +03:00)
View GitHub Profile
@svngoku
svngoku / cri-o.md
Last active March 13, 2023 14:13
cri-o : un bon remplaçant à Docker ?

alt text

CRI-O est une implémentation de la CRI (interface conteneur) de Kubernetes pour permettre l'utilisation de runtimes compatibles avec OCI (Open Container Initiative). C'est une alternative légère à l'utilisation de Docker comme runtime pour kubernetes. Cela permet à Kubernetes d'utiliser n'importe quel runtime compatible OCI comme runtime de conteneur pour l'exécution de pods. Aujourd'hui, il prend en charge runc et Kata Containers en tant que runtimes de conteneur, mais tout runtime conforme à OCI peut être branché en principe.

CRI-O prend en charge les images de conteneur OCI et peut être extrait de tout registre de conteneurs. C'est une alternative légère à l'utilisation de Docker, Moby ou rkt comme runtime pour Kubernetes.

CRI-O fonctionne avec toute image respectant l'OCI. Il fonctionne avec tout registry de conteneur , aussi il fonctionne avec tout OCI Container Runtime : run , gvisor, crun .

>Il fonctionne uniquement avec kuberne

@Lysxia
Lysxia / cont.v
Last active October 28, 2019 09:50
Half-verify alternative version of monad laws
Parameter m : Type -> Type.
Notation c r a := ((a -> m r) -> m r).
Parameter lift : forall r a, m a -> c r a.
Arguments lift {r a}.
Parameter pure : forall a, a -> m a.
Arguments pure {a}.
Definition unlift {a} : c a a -> m a := fun u => u pure.
@iomonad
iomonad / stupid.cxx
Created October 15, 2019 15:14
sLiDeR iN CpLuSpLuS
while (x --\
\
\
\
> 0)
printf("%d ", x);
@sundowndev
sundowndev / GoogleDorking.md
Last active April 30, 2025 07:05
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
@vharmain
vharmain / core.cljs
Last active April 10, 2025 10:07
Reitit re-frame example
(ns frontend-re-frame.core
(:require
[re-frame.core :as re-frame]
[reagent.core :as reagent]
[reitit.core :as r]
[reitit.coercion :as rc]
[reitit.coercion.spec :as rss]
[reitit.frontend :as rf]
[reitit.frontend.controllers :as rfc]
[reitit.frontend.easy :as rfe]))
@souenzzo
souenzzo / deps.edn
Last active September 26, 2021 10:52
Clojure version of "java quickstart" from gsheets. https://developers.google.com/sheets/api/quickstart/java
;; run with
;; clj -Sdeps '{:deps {gdocs {:git/url "https://gist.github.com/souenzzo/df540002607b15378f8014237e499fdd" :sha "fee00617c75fc24c74931aa4200f74666c5b66b6"}}}' -m gdocs
{:paths ["."]
:deps {org.clojure/clojure {:mvn/version "1.10.0"}
com.google.api-client/google-api-client {:mvn/version "1.28.0"}
com.google.oauth-client/google-oauth-client-jetty {:mvn/version "1.28.0"}
com.google.apis/google-api-services-sheets {:mvn/version "v4-rev566-1.25.0"}}}
; =================================================
; Password protected x64 TCP Reverse Shell
; Author: Alan Vivona
; =================================================
global _start
; Syscall numbers
syscalls.socket equ 0x29
syscalls.bind equ 0x31
@leonoel
leonoel / deps.edn
Created February 18, 2019 20:17
happy eyeballs
{:paths ["."]
:deps {missionary {:mvn/version "a.3"}}}
@lion137
lion137 / optional.cpp
Last active October 30, 2019 08:54
Optional in C++ as Kleisli Category
#include <iostream>
#include <cmath>
#include <vector>
/* More info and explanation here: https://lion137.blogspot.com/2019/01/kleisli-category-by-example.html */
template<class A> class optional {
bool _isValid;
A _value;
public:
optional(): _isValid(false) {}
/**
* @note SourceShape Graph, runnable as Source.
*/
override def graph: Graph[SourceShape[FileMessage], NotUsed] = GraphDSL.create() { implicit b =>
import GraphDSL.Implicits._
val TCK = b.add(Source.tick[SmartjogClient]
(0.second, interval, client))