I hereby claim:
- I am alinefr on github.
- I am alinefr (https://keybase.io/alinefr) on keybase.
- I have a public key ASAgZPW-XDIlZtrGDIw4smgd9a-xH3Ea8omlDB2XF8yqvAo
To claim this, I am signing this object:
version: "3.4" | |
volumes: | |
volume_mysql_data: | |
services: | |
db: | |
image: alinefr/voos_eua_2016_mysql_sem_indices:latest | |
volumes: |
blueprint: | |
name: Low battery level detection & notification for all battery sensors | |
description: Regularly test all sensors with 'battery' device-class for crossing | |
a certain battery level threshold and if so execute an action. | |
domain: automation | |
input: | |
threshold: | |
name: Battery warning level threshold | |
description: Battery sensors below threshold are assumed to be low-battery (as | |
well as binary battery sensors with value 'on'). |
I hereby claim:
To claim this, I am signing this object:
O propósito aqui é de criar uma VM Azure usando chef em local-mode, ou seja a partir de uma máquina de trabalho.
Instalar ChefDK https://downloads.chef.io/chefdk
Instalar o plugin chef-provisioning-azurerm
Em qualquer terminal, seja num sistema Linux, Mac ou Windows Powershell o procedimento é o mesmo.
#!/bin/bash | |
# ------------------------------------------------------------------------- | |
# Script to generate mysqldump from wordpress running inside a container | |
# | |
# Copyright (C) 2016 Aline Freitas <[email protected]> | |
# | |
# It has two command line arguments: | |
# -c: the docker container name | |
# -d: the html volume in your host pointing to the root of your wordpress installation. | |
# It needs to be where exist the wp-config.php file. |
""" | |
This is the product of me spending a few minutes trying to | |
assess how much of my LastPass vault is potentially vulnerable | |
to the recent CloudFlare issue. | |
It's hacky, and probably broken in some way, but it's a start. | |
Gist comments with improvements very welcome. | |
""" |
#!/bin/sh | |
set -eu | |
# This script is intended to be run as the xautolock locker and notifier. | |
# It requires i3lock, and dunst is optional. | |
# Copy or link this script as /usr/bin/slock to let xfce4-session run it. | |
if [ "$(basename "$0")" = "slock" ]; then | |
cmd=lock |
#!/bin/sh | |
# | |
# Copyright (C) 1995 - 1998, Ian A. Murdock <[email protected]> | |
# Copyright (C) 1998, 1999, Guy Maor | |
# Copyright (C) 2002, Matthew Wilcox | |
# Copyright (C) 2002, 2004, 2005, 2007, 2009 Clint Adams | |
# Copyright (C) 2009 Manoj Srivasta | |
# Copyright (C) 2016 Aline Freitas | |
# | |
# This script is called from /usr/src/linux/arch/i386/boot/install.sh. |
As configured in my dotfiles.
start new:
tmux
start new with session name:
import os | |
import requests | |
token = '' # token needs delete_repo permission | |
organization = '' # or user | |
url = 'https://api.github.com/repos/{}'.format(organization) | |
headers = {'Accept': 'application/vnd.github.v3+json', | |
'Authorization': 'token {}'.format(token)} | |