Skip to content

Instantly share code, notes, and snippets.

:root {
--nord0_rgb: #2e3440;
--nord0: 220, 16%, 22%;
--nord1_rgb: #3b4252;
--nord1: 222, 16%, 28%;
--nord2_rgb: #434c5e;
--nord2: 220, 17%, 32%;
@Jeremie-Chauvel
Jeremie-Chauvel / autodns.sh
Last active May 29, 2024 20:45
A basic script to run on your self hosted server to update DNS on porkbun
#!/bin/bash
# usage secretapikey=sk1_xxx apikey=pk1_xxx ./autodns.sh
set -eo pipefail
IFS=$'\n\t'
# passed as env var, see usage
readonly secretapikey=$secretapikey
readonly apikey=$apikey
set -u
MY_DOMAIN_NAME_RECORD='domainname.com/ID'
@Jeremie-Chauvel
Jeremie-Chauvel / settings.md
Last active October 15, 2022 20:42
Pikachu vscode

Pikachu vscode

Running Pikachu

Extension

Install the extension: hoovercj.vscode-power-mode

Configuration

Add the configuration:

 "powermode.explosions.enabled": true,
@Jeremie-Chauvel
Jeremie-Chauvel / Dark mode toggle bookmarklet.md
Created November 23, 2020 23:14
Dark mode toggle bookmarklet

Dark mode toggle bookmarklet

To use this simply create a new bookmark and copy past the code in the url field. Then you only need to click on the bookmark to execute the script.

javascript: (function () {
  if (document.children[0].style['filter']) {
    document.children[0].style['filter'] = ''
  } else {
    document.children[0].style['filter'] = 'invert(100%) hue-rotate(180deg)'
 }
{
"powermode.enabled": true,
"powermode.enableStatusBarComboTimer": false,
"powermode.enableShake": false,
"powermode.customExplosions": [
"https://i.imgur.com/iDcBoNm.gif",
],
"powermode.explosionOrder": "sequential",
"powermode.explosionSize": 19,
"powermode.explosionFrequency": 1,
@Jeremie-Chauvel
Jeremie-Chauvel / helper.js
Created May 7, 2020 20:27
node cli test helper
const path = require('path')
const exec = require('child_process').exec
exports.helpers = {
cli: (args = []) => {
return new Promise((resolve) => {
exec(
`node ${path.resolve('./src/app.js')} ${args.join(' ')}`,
{ cwd: '.' },
(error, stdout, stderr) => {
resolve({
@Jeremie-Chauvel
Jeremie-Chauvel / README.md
Last active March 31, 2020 08:09
Utilities to export as markdown your funretro board and clean it

Utilities to export as markdown your funretro board and clean it

Those two bookmarklet allows you to export the content of your funretro board as markdown and empty your board.

Bookmarklet version (non-tech friendly)

To use them simply create a new bookmark and copy past the code in the url field. Then you only need to click on the bookmark to execute the script.

export

javascript: !function(){const e=window.location.pathname.split("/")[3],t=e=>{let t,n="";Object.values(e).sort((e,t)=>e.type.id-t.type.id).map(e=>{t!==e.type.id&&(t=e.type.id,n+=`\n###Column ${e.type.id}:\n`),cardContent=e.text+` **+${(e=>e.votes?Object.values(e.votes).reduce((e,t)=>e+t):0)(e)}**`,n+=`- ${cardContent}\n`}),(e=>{const t=document.createElement("textarea"),n=document.getSelection();t.textContent=e,document.body.appendChild(t),n.removeAllRanges(),t.select(),document.execCommand("copy"),n.removeAllRanges(),document.body.removeChild(t)})(n)};(async()=>{t(await(async()=>(await firebase.database().ref(`/mess
.container {
margin: 0 auto;
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
}
.section {
<template>
<div class="container">
<logo />
<div v-for="section in sections" class="section">
<h1 class="title">
{{ section.title }}
</h1>
<h2 class="subtitle">
{{ section.paragraph }}