View h801_flux_light.yml
esphome: | |
name: $device_name | |
platform: ESP8266 | |
board: esp01_1m | |
light: | |
- platform: cwww | |
id: light_1 | |
name: $human_name | |
cold_white: output_w1 |
View .zshrc
# Set env variables for Docker Machine | |
function dmenv() { | |
VM=${1} | |
# docker-machine start $VM | |
eval $(docker-machine env $VM) | |
} | |
# Dockers stats with container names | |
function dstats() { | |
docker stats $(docker ps --format '{{.Names}}') |
View commerce-order--pdf.html.twig
{# | |
/** | |
* @file | |
* Template for orders in the 'user' view mode. | |
* | |
* Available variables: | |
* - attributes: HTML attributes for the wrapper. | |
* - order: The rendered order fields. | |
* Use 'order' to print them all, or print a subset such as | |
* 'order.order_number'. Use the following code to exclude the |
View RegistrationProcessorWebformHandler.php
<?php | |
namespace Drupal\registrations_processor\Plugin\WebformHandler; | |
use Drupal; | |
use Drupal\commerce\PurchasableEntityInterface; | |
use Drupal\commerce_order\Adjustment; | |
use Drupal\commerce_order\Entity\OrderInterface; | |
use Drupal\commerce_price\Price; | |
use Drupal\Core\Form\FormStateInterface; |
View .bash_profile
# Open shell to a Docker Compose service container: | |
# use like: dsh # open shell to 'app' service (container name like project_app_1) | |
# dsh db # open shell to 'db' service | |
function dsh() { | |
DEFAULT_SERVICE=app | |
docker exec -it $(docker-compose ps -q ${1:-$DEFAULT_SERVICE}) sh | |
} |
View Vlasy.ino
#include <Wire.h> | |
#include <Ciao.h> | |
#define CONNECTOR "rest" | |
#define SERVER_ADDR "" // gateway from https://gist.github.com/jnv/27666983e88fb271e1528b5e538b2f2a | |
#define SMS_LOGIN "" | |
#define SMS_PASSWORD "" | |
#define TEL_NUM "" |
View .bash_profile
# Customize bash prompt to print current GIT branch and Docker Machine name. | |
export PSORIG="\u \W \$ " | |
function CUSTOMPROMPT() { | |
BRANCH="$(git branch 2>/dev/null | grep '*' | cut -d" " -f2-)" | |
if [ -n "$BRANCH" ] ; then | |
export PS1=$PSORIG$(echo -en "\[\033[01;33m\]$BRANCH > \[\033[00m\]") | |
else | |
export PS1="$PSORIG" | |
fi |
View install-composer.sh
cd $HOME | |
ln -s `which php55` ~/bin/php | |
export PATH=$HOME/bin:$PATH | |
curl -sS https://getcomposer.org/installer | php55 | |
echo -e "\n# Composer\nalias composer=\"php55 \$HOME/composer.phar\"" >> $HOME/.bash_profile | |
source $HOME/.bash_profile |
View family_names.txt
ADAMÍROVÁ | |
ANTONYOVÁ | |
BABINSKÁ | |
BAKOŠOVÁ | |
BALÁNOVÁ | |
BARTEL | |
BEKROVÁ | |
BIEDERMANN | |
BLUDSKÝ | |
BRABLÍKOVÁ |