Skip to content

Instantly share code, notes, and snippets.

View chussenot's full-sized avatar

Clément Hussenot chussenot

View GitHub Profile
@chussenot
chussenot / app-config.yaml
Created July 13, 2024 07:24 — forked from kjenney/app-config.yaml
Using Self-hosted Github instance with Backstage Scaffolder
app:
title: Test
baseUrl: http://localhost:3000
organization:
name: Test
backend:
# Used for enabling authentication, secret is shared by all backend plugins
# See https://backstage.io/docs/auth/service-to-service-auth for
@chussenot
chussenot / README.md
Created July 13, 2024 07:20 — forked from kirederik/README.md
Pushing Resource Requests to Bitbucket

Steps

  1. At the root of your backstage directory, run:
    yarn --cwd packages/backend add @backstage/plugin-scaffolder-node
    yarn --cwd packages/backend add zod
    yarn --cwd packages/backend add fs-extra @types/fs-extra
    yarn install
    
  2. Create a custom.ts file in packages/backend/src/plugins/actions/ with the contents of the custom.ts file below
# chussenot @ t495 in ~/Documents/believe/idp/developer-control-plane/asset-referential/collectors/sonarqube-collector
on git:PE-606 o [10:53:32]
$ ll
total 64K
drwxrwxr-x 2 chussenot chussenot 4,0K déc. 21 18:41 elements
drwxrwxr-x 51 chussenot chussenot 4,0K déc. 21 18:46 node_modules
-rw-rw-r-- 1 chussenot chussenot 516 déc. 21 18:46 package.json
-rw-rw-r-- 1 chussenot chussenot 22K déc. 21 18:46 package-lock.json
-rw-rw-r-- 1 chussenot chussenot 14K déc. 21 18:34 poetry.lock
-rw-rw-r-- 1 chussenot chussenot 336 déc. 21 18:34 pyproject.toml
package com.capitalone.dashboard.collector;
import com.capitalone.dashboard.client.RestOperationsSupplier;
import com.capitalone.dashboard.model.Collector;
import com.capitalone.dashboard.model.Epic;
import com.capitalone.dashboard.model.Feature;
import com.capitalone.dashboard.model.FeatureBoard;
import com.capitalone.dashboard.model.FeatureCollector;
import com.capitalone.dashboard.model.FeatureEpicResult;
import com.capitalone.dashboard.model.JiraMode;
2,10c2,9
< (derived) Always On: true
< (network policy) Switch Locked: false
< (network policy) Mode: WarpWithDnsOverHttps
< (default) Disabled for Wifi: false
< (default) Disabled for Ethernet: false
< (reg defaults) Resolve via: 1b3412163d23c8c697575a0a3e633422.cloudflare-gateway.com @ [162.159.36.1, 2606:4700:4700::
< 1111]
< (default) Onboarding: true
< (network policy) Include mode, with hosts/ips:
@chussenot
chussenot / sort_repos
Created September 19, 2023 07:58
Simple script to sort repos by the last commits
#!/bin/bash
folder_path="adeo"
cd "$folder_path" || exit 1
# Function to get the last commit date of a repository (directory)
get_last_commit_date() {
local directory="$1"
cd "$directory" || return 1
last_commit_date=$(git log -1 --format="%ci")
@chussenot
chussenot / .gitignore
Last active August 27, 2023 19:04
C++ project with meson, poetry, etc.
bin/*
build/*
# 20015441@hq.corp.leroymerlin.com @ X502501 in ~/Documents/datadog-agent on git:main o [10:42:45]
$ ag DD_APM_IGNORE_RESOURCES
cmd/trace-agent/config/config_test.go
631: {"DD_IGNORE_RESOURCE", "DD_APM_IGNORE_RESOURCES", "apm_config.ignore_resources"},
638: if tt.envNew == "DD_APM_IGNORE_RESOURCES" {
772: "DD_APM_IGNORE_RESOURCES",
pkg/config/apm.go
98: config.BindEnv("apm_config.ignore_resources", "DD_APM_IGNORE_RESOURCES", "DD_IGNORE_RESOURCE")
# Copyright (c) 2009 rupa deadwyler. Licensed under the WTFPL license, Version 2
# maintains a jump-list of the directories you actually use
#
# INSTALL:
# * put something like this in your .bashrc/.zshrc:
# . /path/to/z.sh
# * cd around for a while to build up the db
# * PROFIT!!
# * optionally:
#!/bin/bash
declare -A radios=(
["france_info"]="http://direct.franceinfo.fr/live/franceinfo-midfi.mp3"
["france_musique"]="http://direct.francemusique.fr/live/francemusique-midfi.mp3"
["france_inter"]="http://direct.franceinter.fr/live/franceinter-midfi.mp3"
["france_culture"]="http://direct.franceculture.fr/live/franceculture-midfi.mp3"
["fip"]="http://direct.fipradio.fr/live/fip-midfi.mp3"
["rtl2"]="http://streaming.radio.rtl.fr/rtl2-1-44-64.mp3"
["nova"]="http://broadcast.infomaniak.net/radionova-high.mp3"