This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
sudo apt install git python-dev-is-python3 libssl-dev lld liblzma-dev python3-poetry | |
sudo apt install llvm clang lld | |
git clone https://github.com/GermanAizek/mongodb-without-avx | |
pushd mongodb-without-avx | |
pushd mongo | |
# Disable AVX requirements |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: ZHA - Moes Smart Knob for lights | |
description: | | |
Control lights with a Moes Smart Knob. | |
Rotating left/right will change the brightness smoothly of the selected light. | |
Inspired from https://gist.github.com/seamus65/939a147634942dd885c8704334627f93 | |
domain: automation | |
input: | |
remote: | |
name: Remote |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -Eeuo pipefail | |
HOSTS_TO_CHECK=( | |
127.0.0.1 | |
github.com | |
test_invalid.com | |
) | |
test_host() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import yargs from 'yargs' | |
import Engine, { formatValue } from 'publicodes' | |
import rules from 'modele-social' | |
// npm install publicodes modele-social yargs | |
// node ./modele.mjs --salaireBrut 2500 2>/dev/null | jq | |
// Définition des arguments en ligne de commande avec yargs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
credentials.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ram_usage() { | |
free -m | grep Mem | awk '{print $3}' | |
} | |
base=$(ram_usage) | |
max=0 | |
while true; do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import re | |
import json | |
import yaml | |
import psycopg2 | |
def connect_db(): | |
hostname = "localhost" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
import os | |
import signal | |
import threading | |
import subprocess | |
from typing import Optional | |
from pathlib import Path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file expects LOCAL_PREFIX to be an absolute path to the prefix (like /usr or $HOME/.local) | |
export PATH="${LOCAL_PREFIX}/bin:${PATH}" | |
# Used to detect the build dependencies | |
export PKG_CONFIG_PATH="${LOCAL_PREFIX}/lib/pkgconfig:${PKG_CONFIG_PATH}" | |
export PKG_CONFIG_PATH="${LOCAL_PREFIX}/lib64/pkgconfig:${PKG_CONFIG_PATH}" | |
export PKG_CONFIG_PATH="${LOCAL_PREFIX}/share/pkgconfig:${PKG_CONFIG_PATH}" | |
export PKG_CONFIG_PATH="${LOCAL_PREFIX}/lib/pkgconfig:${PKG_CONFIG_PATH}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Automatically generated file; DO NOT EDIT. | |
# crosstool-NG aca85cb Configuration | |
# | |
CT_CONFIGURE_has_static_link=y | |
CT_CONFIGURE_has_wget=y | |
CT_CONFIGURE_has_curl=y | |
CT_CONFIGURE_has_stat_flavor_GNU=y | |
CT_CONFIGURE_has_make_3_81_or_newer=y | |
CT_CONFIGURE_has_libtool_2_4_or_newer=y |
NewerOlder