Skip to content

Instantly share code, notes, and snippets.

@syrm
syrm / ssj-pet.xml
Created August 17, 2023 13:11
ssj-pet.json
<?xml version="1.0"?>
<animations xmlns="https://esheep.petrucci.ch/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://esheep.petrucci.ch/ https://raw.githubusercontent.com/Adrianotiger/desktopPet/master/Resources/animations.xsd">
<header>
<author>RedSparr0w</author>
<title>SSJ Goku size x2</title>
<petname>Goku</petname>
<version>1.2.3</version>
<info>SSJ Goku will fly and walk around your screen occasionally shooting blast.</info>
<application>1</application>
<icon><![CDATA[
@syrm
syrm / config.toml
Created August 1, 2023 16:56
Helix (bépo)
theme = "bouh"
[editor]
line-number = "relative"
auto-save = true
auto-format = true
color-modes = true
#auto-pairs = true
rulers = [120]
idle-timeout = 5
@syrm
syrm / config.toml
Created January 15, 2023 21:46
Helix
theme = "catppuccin_mocha"
[editor]
line-number = "relative"
auto-save = true
true-color = true
color-modes = true
auto-pairs = true
rulers = [120]
idle-timeout = 5
@syrm
syrm / keymap.c
Last active January 9, 2024 09:09
Bépo preonic
/* Copyright 2015-2021 Jack Humbert
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@syrm
syrm / docker-compose.md
Created November 25, 2021 13:22
Docker Compose service depends

Alors par avance désolé si c’est connu de tous, je débarque sans doute mais bon. Pour ceux qui utilisent docker-compose vous devez avoir souvent rencontré un soucis de dépendance de démarrage des différents services. Par exemple vous avez un programme qui a besoin que la base de données soit disponible pour se connecter, il faut donc que le service de votre programme se lance après celui de la base de données.

La solution simple que l’on trouve partout est de mettre dans votre docker-compose l’instruction depends_on, ansi vous pouvez avoir quelque chose du genre :

services:
   program:
      build: .
 depends_on:
version: '3.9'
services:
elasticsearch:
image: "docker.elastic.co/elasticsearch/elasticsearch:7.13.0"
environment:
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
- "discovery.type=single-node"
ports:
- "9200:9200"
package logger
import "github.com/rs/zerolog"
type FilteredWriterAbove struct {
Writer zerolog.LevelWriter
Level zerolog.Level
}
func (w *FilteredWriterAbove) Write(p []byte) (n int, err error) {
@syrm
syrm / starship.toml
Last active April 12, 2024 09:59
starship
"$schema" = 'https://starship.rs/config-schema.json'
add_newline = false
[character]
success_symbol = '[➜](bold green) '
error_symbol = '[➜](bold red) '
[package]
disabled = true
@syrm
syrm / .zshrc
Created December 18, 2020 13:49
Zsh config with starship
export HISTFILE=~/.zsh_history
export HISTFILESIZE=1000000000
export HISTSIZE=1000000000
export HISTTIMEFORMAT="[%F %T] "
setopt INC_APPEND_HISTORY
setopt EXTENDED_HISTORY
setopt HIST_FIND_NO_DUPS
bindkey '^R' history-incremental-search-backward
@syrm
syrm / gist:d44663fa167d00ca79674388c72e0390
Created October 14, 2020 09:40
POE - Bouh - Storm Burst ES
eNrtXVtz2zqSfj7-FSxXzb4c2yFuJJhNZkryPfEtki_JeUmBJGgxpkiFpHzJ1u5v3wZJWaRMSpDmnJ152JmqHIlCA-ivG939gSD94R_P48h4lGkWJvHHbbRnbhsy9hI_jO8_bt9cH-3y7X_8fevDlchHl0F_Gkbql79v_fah-GxE8lFGH7dta9vIRXov89tZV-Q7dOWK2A_ziyQdC2h1kcRydu1cpl4YySybXfYikWUXYiw_bg9Hwk-etg2ReTL29-c_XKeh95DlMt02xiKMh4n3IPPjNJlOPm6zbWMi4nwkk_g8jJP0OPFnXb9eFz8a1x9D-XSe-NDx6fnV5eB6Nrf9dCpn0wVVf_twFYkXmQ5zkRsZ_PNxuweIiXt5EubQi4im0AUyTc72LMyxtf1uqdSBGMO_6wgOJ1L6rwJ8j_L_y5ZXqTwMAunl4aPcTwGekYi9-fwJ20Ndohs0P59GeTiJQmXkSgTv2U6XyMmbAQDPrsbXSS6ig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