Skip to content

Instantly share code, notes, and snippets.

View maarteNNNN's full-sized avatar
🏠
Working from home

Maarten Coppens maarteNNNN

🏠
Working from home
  • Lokeren, Belgium
  • 08:24 (UTC +02:00)
View GitHub Profile
@maarteNNNN
maarteNNNN / README.md
Last active February 22, 2025 09:14
Convert Steam recordings to mp4 on Linux

Prerequisites

  • FFMPEG
  • The right codecs

Save the file in /usr/local/bin/<desiredname>

Change the user code see <code_change_this>

Make executable

@maarteNNNN
maarteNNNN / ComponentA.vue
Last active September 12, 2023 02:31
Handling Vue props
<template>
<!-- This is the parent, named ComponentA for example -->
<div>
ComponentA message state: {{ message }}
<!--
ComponentB is a child component of ComponentA
It will update the message value via two-way binding
See https://vuejs.org/guide/essentials/forms.html
Syntax sugar that way you don't have to always define model-value and @update:model-value
-->
@maarteNNNN
maarteNNNN / install.sh
Created August 8, 2021 20:25
Install kubectl and minikube for testing SocketCluster cli
# Install snap
sudo apt install snapd
sudo snap install kubectl --classic
# Check if it works
kubectl
# Install minikube
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube_latest_amd64.deb
sudo dpkg -i minikube_latest_amd64.deb
@maarteNNNN
maarteNNNN / test.html
Created June 2, 2021 18:25
Draggable scroll test
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=<device-width>, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<div class="flex">
@maarteNNNN
maarteNNNN / jwtRS256.sh
Created October 14, 2018 20:47 — forked from ygotthilf/jwtRS256.sh
How to generate JWT RS256 key
ssh-keygen -t rsa -b 4096 -f jwtRS256.key
# Don't add passphrase
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub
cat jwtRS256.key
cat jwtRS256.key.pub
@maarteNNNN
maarteNNNN / Image over Socket.IO.js
Created October 7, 2018 22:17 — forked from companje/Image over Socket.IO.js
Image over Socket.IO
//NodeJS
var express = require('express');
var app = express();
var http = require('http').Server(app);
var fs = require('fs');
var io = require('socket.io')(http);
app.use(express.static(__dirname, '/'));
io.on('connection', function(socket){