Skip to content

Instantly share code, notes, and snippets.

View lleixat's full-sized avatar
🎯
Focusing

Tom L. lleixat

🎯
Focusing
  • Suricats Consulting
  • Toulouse
  • 17:28 (UTC +01:00)
  • X @l3x_
View GitHub Profile
# 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 / bash_to_zsh_history.rb
Created October 12, 2016 07:59 — forked from goyalankit/bash_to_zsh_history.rb
Import bash history to zsh history.
#################################################################
# = This script transfers bash history to zsh history
# = Change bash and zsh history files, if you don't use defaults
#
# = Usage: ruby bash_to_zsh_history.rb
#
# = Author: Ankit Goyal
#################################################################
# change if you don't use default values
@lleixat
lleixat / gitflow-breakdown.md
Created June 9, 2016 07:32 — forked from JamesMGreene/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
git commit --allow-empty -m "Initial commit"
git checkout -b develop master

Connect to the remote repository

// si tu as une div #twitage et que tu mets ton nom twitter
// la ou il faut et que tu as chargée la lib jQuery qui va
// bien ca marche tout seul...
// [a améliorer]
var moulinette = {
sortie : '',
nettoyage: function(chaine) {
this.sortie = this.parse_liens(chaine);
this.sortie = this.parse_listes(this.sortie);
<!DOCTYPE html>
<!-- Helpful things to keep in your <head/>
// Brian Blakely, 360i
// http://twitter.com/brianblakely/
-->
<head>
<!-- Disable automatic DNS prefetching.
@lleixat
lleixat / gpt.2012.1.7.js
Created March 1, 2012 15:29
Google Plus Toolkit
/*
Google Plus Toolkit
Kevin Wang (kevixw'At'gmail.com)
Copyright (c) 2012 . All rights reserved.
Based on :
1. Google+ Stream API => An unofficial API to get Google+ streams.
https://gist.github.com/1554435
Copyright (C) 2012 Jingqin Lynn