Skip to content

Instantly share code, notes, and snippets.

@kconde2
kconde2 / .eslintrc.js
Created January 30, 2023 01:23 — forked from onlime/.eslintrc.js
Configure ESLint and Prettier for Vue/Nuxt.js project in VS Code
module.exports = {
root: true,
env: {
browser: true,
node: true,
},
parserOptions: {
parser: '@babel/eslint-parser',
requireConfigFile: false,
},
@kconde2
kconde2 / keybinding.json
Created December 22, 2022 16:18
toggle vscode diff editor inline<->side by side
{
"key": "cmd+i",
"command": "toggle.diff.renderSideBySide",
"when": "editorTextFocus && isInDiffEditor"
},
@kconde2
kconde2 / install.sh
Created November 26, 2022 15:28
Quickly install symfony latest version
docker run --rm --interactive --tty --volume $PWD/api:/app --user $(id -u):$(id -g) composer create-project symfony/skeleton .
@kconde2
kconde2 / iso-3166_country_french.json
Created October 22, 2022 16:24 — forked from lneveu/iso-3166_country_french.json
ISO-3166-1 (ALPHA 2) countries list french / liste des pays français
{
"AD" : "Andorre",
"AE" : "Émirats Arabes Unis",
"AF" : "Afghanistan",
"AG" : "Antigua-Et-Barbuda",
"AI" : "Anguilla",
"AL" : "Albanie",
"AM" : "Arménie",
"AO" : "Angola",
"AP" : "Région Asie/Pacifique",
@kconde2
kconde2 / NullableEmbeddableSubscriber.php
Last active October 22, 2022 08:33
nullable embeddable subscriber
<?php
/*
in config/services.yml
add # Doctrine listenes
App\EventSubscriber\NullableEmbeddableSubscriber:
tags:
- name: 'doctrine.event_subscriber'
@kconde2
kconde2 / Dockerfile
Created July 23, 2022 23:06 — forked from evansims/Dockerfile
Dockerfile: php-fpm 7.4-fpm alpine w/ gd bz2 intl mbstring redis mongodb xdebug opcache
FROM php:7.4-fpm-alpine
WORKDIR "/application"
# Install essential build tools
RUN apk add --no-cache \
git \
yarn \
autoconf \
g++ \
make \
@kconde2
kconde2 / Grafana-TelegramBot-HowTo.md
Created May 19, 2022 23:36 — forked from dl6nm/Grafana-TelegramBot-HowTo.md
How to create a Grafana bot for Telegram

Set up a Telegram Bot

  1. Go to Grafana > Alerting > Notification channels > New channel.
  2. Type: Telegram. It will ask you for a Bot API Token and a Chat ID.
  3. Open a chat with BotFather on Telegram.
  4. Type /newbot
  5. Type your bots name. F.e: Grafana Bot
  6. Type your bots username. F.e: a_new_grafana_bot
  7. You have your Bot API Token. Paste it on Grafana.
  8. Open this URL address, substituing YOUR_API_TOKEN_KEY with yours:
# Source: https://gist.github.com/48f44d3974db698d3127f52b6e7cd0d3
###########################################################
# Automation of Everything #
# How To Combine Argo Events, Workflows, CD, and Rollouts #
# https://youtu.be/XNXJtxkUKeY #
###########################################################
# Requirements:
# - k8s v1.19+ cluster with nginx Ingress
@kconde2
kconde2 / Makefile
Created October 8, 2020 09:38 — forked from sighingnow/Makefile
Detect operating system in Makefile.
# Detect operating system in Makefile.
# Author: He Tao
# Date: 2015-05-30
OSFLAG :=
ifeq ($(OS),Windows_NT)
OSFLAG += -D WIN32
ifeq ($(PROCESSOR_ARCHITECTURE),AMD64)
OSFLAG += -D AMD64
endif
@kconde2
kconde2 / multiple-repository-and-identities-git-configuration.md
Created October 6, 2020 15:34 — forked from bgauduch/multiple-repository-and-identities-git-configuration.md
Git config with multiple identities and multiple repositories

Setup multiple git identities & git user informations

/!\ Be very carrefull in your setup : any misconfiguration make all the git config to fail silently ! Go trought this guide step by step and it should be fine 😉

Setup multiple git ssh identities for git

  • Generate your SSH keys as per your git provider documentation.
  • Add each public SSH keys to your git providers acounts.
  • In your ~/.ssh/config, set each ssh key for each repository as in this exemple: