Skip to content

Instantly share code, notes, and snippets.

View AurelienLoyer's full-sized avatar
🔥
👨🏻‍💻

Aurélien Loyer AurelienLoyer

🔥
👨🏻‍💻
View GitHub Profile
@AurelienLoyer
AurelienLoyer / raspbee-pi-3-howto.md
Created November 2, 2023 20:27 — forked from cgcostume/raspbee-pi-3-howto.md
Configuration of a Raspbee (with deCONZ/phoscon) and node-RED server using docker and docker-compose on a Raspberry Pi 3

Raspbee on Raspberry Pi 3

Preparations

The following steps describe the prerequisites for the actual raspbee setup (deCONZ/phoscon and node-RED):

  1. Flash (e.g., using Etcher) raspbian-buster-lite onto SD card (e.g., 16GB).

  2. Create an empty ssh file on the SD card's boot partition.

[
{
"props": {
"src": "https://user-images.githubusercontent.com/3717296/142225807-6ea086ea-8e76-4f35-8f47-a684a949efb5.png",
"width": "55vw",
"top": "10%"
},
"content": "image",
"headlineFirstLine": "Around the world",
"headlineSecondLine": "35 offices / 85 countries",
@AurelienLoyer
AurelienLoyer / .gitconfig
Created September 13, 2021 15:01
Git alias
s = status -s
dammit = !BRANCH=$(git rev-parse --abbrev-ref HEAD) \
&& git fetch origin $BRANCH \
&& git reset --hard origin/$BRANCH
find-branch = !sh -c \"git branch -a | grep -v remotes | grep $1 | head -n 1 | xargs git checkout\"
pushf = push --force-with-lease
@AurelienLoyer
AurelienLoyer / jira-tech-tasks-counter.js
Last active November 23, 2020 15:22
JIRA - Total of technical tasks
let total = 0;
Array.from(
document.getElementsByClassName('ghx-backlog-container ghx-everything-else')[0].getElementsByClassName('aui-badge ghx-statistic-badge')
).forEach(item => {
let content = item.textContent;
if(content === '-') {
return;
} else if(content.endsWith('d')) {
total += parseInt(content.replace('d', ''));
} else if(content.endsWith('w')) {
@AurelienLoyer
AurelienLoyer / BUILD.BAZEL
Last active March 3, 2020 12:19
Bazel demo LIVE CODING !
load("@build_bazel_rules_nodejs//:defs.bzl", "http_server", "rollup_bundle")
load("@build_bazel_rules_nodejs//internal/web_package:web_package.bzl", "web_package")
load("@npm_bazel_typescript//:index.bzl", "ts_library")
exports_files(["tsconfig.json"])
# compile
ts_library(
name = "app",
srcs = glob(["*.ts","**/*.tsx"]),
@AurelienLoyer
AurelienLoyer / random-emoji-zshrc.sh
Last active August 7, 2019 11:29
Hey Terminal ! Display me random emoji "🐧" "🦄" "🔥" "🐷" "🐱" "🐘"
# Agnoster prompt customization
prompt_context() {
EMOJIS=("🐧" "🦄" "🔥" "🐷" "🐱" "🐘")
RANDOM=$$$(date +%s)
prompt_segment black black "${EMOJIS[$RANDOM % ${#EMOJIS[@]}]}"
}
[
{
"headlineFirstLine": "Coding",
"headlineSecondLine": "the World",
"isHeadlineVisible": true,
"sublineFirstLine": "",
"sublineSecondLine": "",
"bgImg": "https://images.unsplash.com/photo-1475274047050-1d0c0975c63e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2252&q=80",
"rectImg": "https://images.unsplash.com/photo-1475274047050-1d0c0975c63e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2252&q=80",
"logoImg": "https://www.zenika.com/static/logos/logo.png",
[
{
"headlineFirstLine": "Demoooo",
"headlineSecondLine": "Image",
"sublineFirstLine": "Led by passion",
"sublineSecondLine": " Zenika",
"bgImg": "./img/sw2.png",
"rectImg": "./img/sw2.png",
"content": "image",
"props": {