Skip to content

Instantly share code, notes, and snippets.

set -g mouse on
# set -g status-position top
set -g status-style bg=default
set -g status-left ""
set -g status-right "#[fg=grey]%Y-%m-%d %H:%M"
set -g window-status-current-format "#[fg=black,bg=white] #I:#W "
set -g window-status-format "#[fg=grey] #I:#W "
# set -g 'status-format[1]' ''
# set -g status 2
The aliens are here and they have trapped us in this bunker. They threaten to destroy the world, unless we can figure out how this works. We need to shred it down using any tool possible. They have our kids! they are both safe for now, but we are under a time limit.
package model
import (
"bytes"
"crypto/tls"
"crypto/x509"
"encoding/base64"
"encoding/json"
"fmt"
"github.com/mickael-kerjean/filestash-deploy/src/utils"
@mickael-kerjean
mickael-kerjean / Makefile
Created January 5, 2026 06:02
poc for wasm plugin in Filestash - to remove
.PHONY: all build plugin clean
all: build plugin
build:
go build -o wasm-http main.go
plugin:
cargo build --target wasm32-unknown-unknown --release
cp target/wasm32-unknown-unknown/release/plugin.wasm .
@mickael-kerjean
mickael-kerjean / desktop.css
Last active December 13, 2024 04:21
collabora theme
:root {
--color-box-shadow: rgba(0, 0, 0, 0.1);
--header-font-size: 13px;
--btn-size: 25px;
--color-border: #d1d1d1;
--color-primary: #2399f4;
--co-border-radius: 4px;
--color-main-background: #f5f5f5;
--color-background-dark: #f5f5f5;
--color-background-darker: #f5f5f5;
@mickael-kerjean
mickael-kerjean / dellosmaproxmox.sh
Last active March 4, 2024 10:51 — forked from jordantrizz/dellosmaproxmox.sh
Dell OSMA on Proxmox/Debian Buster
# Add Dell GPG key to apt
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 1285491434D8786F
echo "deb http://linux.dell.com/repo/community/openmanage/930/bionic bionic main" > /etc/apt/sources.list.d/linux.dell.com.sources.list
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/o/openwsman/libwsman-curl-client-transport1_2.6.5-0ubuntu3_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/o/openwsman/libwsman-client4_2.6.5-0ubuntu3_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/o/openwsman/libwsman1_2.6.5-0ubuntu3_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/o/openwsman/libwsman-server1_2.6.5-0ubuntu3_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/s/sblim-sfcc/libcimcclient0_2.2.8-0ubuntu2_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/o/openwsman/openwsman_2.6.5-0ubuntu3_amd64.deb
@mickael-kerjean
mickael-kerjean / main.c
Created November 9, 2023 12:50
bench thumbnail
#include <stdio.h>
#include "image_png.h"
// gcc -o main.bin main.c image_png.c -lwebp -lpng
int main(int argc, char **argv) {
FILE* input = fopen("/home/mickael/Downloads/tmp/test.png", "rb");
FILE* output = fopen("/home/mickael/Downloads/tmp/test_c.webp", "wb");
return png_to_webp(fileno(input), fileno(output), 250);
}
#include <string.h>
#include <png.h>
#include <stdlib.h>
#include "webp/encode.h"
#include "utils.h"
static int filestash_png_writer(const uint8_t* data, size_t data_size, const WebPPicture* const pic) {
FILE* const out = (FILE*)pic->custom_ptr;
return data_size ? (fwrite(data, data_size, 1, out) == 1) : 1;
}
https://qantas-qfa-dummy.s3.ca-central-1.amazonaws.com/swagger-ui/index.html
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
aws s3 ls qantas-qfa-dummy/specs/ > /tmp/tmp.dat
cat /tmp/tmp.dat | sed 1d | awk '{printf $1"."$4"\n"}' | awk -F "." 'BEGIN{print "<style>a{text-decoration:none;font-family:monospace;font-size:1rem;}</style>"} {printf("<a href=\"%s.%s\">%s %s</a><hr>\n",$2,$3,$1, $2)}'