Skip to content

Instantly share code, notes, and snippets.

View lleixat's full-sized avatar
🎯
Focusing

Tom L. lleixat

🎯
Focusing
  • Suricats Consulting
  • Toulouse
  • 00:29 (UTC +01:00)
  • X @l3x_
View GitHub Profile
de
la
le
à
les
et
des
a
en
du
# Contrôle automatique des volets en fonction de la position du soleil et de la température extérieur
# First Author : Cyril Barthel
# Author : Thomas Lleixa
# Version : 3.0
blueprint:
name: sun protection 2
description: close cover when sun is shining and open when stops
domain: automation
source_url: https://gist.github.com/lleixat/15164d2f50a884208ba978915c70951e
input:
# Contrôle automatique des volets en fonction de la position du soleil et de la température extérieur
# Auteur : Cyril Barthel
# Version : 2.4
blueprint:
name: sun protection 2
description: close cover when sun is shining and open when stops
domain: automation
source_url: https://gist.github.com/lleixat/357d70e27ec220acc55bcac3171223f4
input:
cover_entity:
@lleixat
lleixat / GitConfigHttpProxy.md
Created May 9, 2020 08:19 — forked from evantoli/GitConfigHttpProxy.md
Configure Git to use a proxy

Configure Git to use a proxy

In Brief

You may need to configure a proxy server if you're having trouble cloning or fetching from a remote repository or getting an error like unable to access '...' Couldn't resolve host '...'.

Consider something like:

@lleixat
lleixat / tmux.conf
Created November 6, 2018 15:22 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000
@lleixat
lleixat / .tmux.conf
Last active October 29, 2018 08:04
Global tmux config
set -g default-terminal "screen-256color"
set-option -g default-shell /usr/bin/zsh
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# split panes using | and -
bind v split-window -h
@lleixat
lleixat / left-handed-password
Last active July 11, 2018 10:15
Generate left hand password for FR keyboard
#!/usr/bin/python
#
# Generate left hand password for FR keyboard
# Original found here : http://code.activestate.com/recipes/577930-left-handed-password-generator/
#
import argparse
import random
@lleixat
lleixat / arch-php-56-71-install.sh
Last active May 20, 2018 08:32
Archlinux PHP{71,56} install
#!/usr/bin/env bash
# src: https://aur.archlinux.org/packages/php71-fpm/
# https://aur.archlinux.org/packages/php56/
# https://raw.githubusercontent.com/Azero-NG/archlinux/master/freetype-config
echo '=> Install `freetype-config` script (unavailable since `freetype2` upgrade)'
wget https://raw.githubusercontent.com/Azero-NG/archlinux/master/freetype-config
chmod +x freetype-config && sudo mv freetype-config /usr/bin/
@lleixat
lleixat / openssh-7.5-xenial-install.sh
Last active January 25, 2018 08:04
Openssh 7.5p1 on xenial
wget https://launchpadlibrarian.net/335526589/openssh-client_7.5p1-10_amd64.deb
wget https://launchpadlibrarian.net/298453050/libgssapi-krb5-2_1.14.3+dfsg-2ubuntu1_amd64.deb
wget https://launchpadlibrarian.net/298453058/libkrb5-3_1.14.3+dfsg-2ubuntu1_amd64.deb
wget https://launchpadlibrarian.net/298453060/libkrb5support0_1.14.3+dfsg-2ubuntu1_amd64.deb
wget https://launchpadlibrarian.net/335526591/openssh-sftp-server_7.5p1-10_amd64.deb
wget https://launchpadlibrarian.net/335526590/openssh-server_7.5p1-10_amd64.deb
sudo dpkg -i libkrb5support0_1.14.3+dfsg-2ubuntu1_amd64.deb
sudo dpkg -i libkrb5-3_1.14.3+dfsg-2ubuntu1_amd64.deb
sudo dpkg -i libgssapi-krb5-2_1.14.3+dfsg-2ubuntu1_amd64.deb
#compdef openstack aodh barbican ceilometer cinder cloudkitty designate glance gnocchi heat ironic keystone magnum manila mistral monasca murano neutron nova sahara senlin swift trove
# https://wiki.openstack.org/wiki/OpenStackClients
# http://docs.openstack.org/user-guide/common/cli-install-openstack-command-line-clients.html
local curcontext="$curcontext" state line expl ret=1
local -a clnts_compl_new clnts_compl_old clnts_swift_like
#