Skip to content

Instantly share code, notes, and snippets.

View miquelbotanch's full-sized avatar

miquel botanch miquelbotanch

  • Barcelona
View GitHub Profile
@mdeweerd
mdeweerd / automation1.yaml
Last active October 24, 2022 21:14
Quick implementation to call scripts from AppDaemon
---
alias: DemoScript1
description: ''
trigger:
- platform: time_pattern
minutes: '45'
hours: '1'
condition: []
action:
# Trigger script 1
@arfoll
arfoll / shelly_gen2_mqtt.yaml
Created December 5, 2021 14:13
shelly gen 2 mqtt
## configuration.yaml
automation: !include automation.yaml
switch: !include switches.yaml
binary_sensor: !include binary_sensors.yaml
sensor: !include sensors.yaml
## automation.yaml
- id: shellies_get_status
alias: Shellies Get Status
description: ''
@andrewmcodes
andrewmcodes / iOS Shortcuts Catalog.md
Created June 11, 2021 21:47 — forked from brucebentley/iOS Shortcuts Catalog.md
This is a public resource designed to help people get started with Siri Shortcuts & the Shortcuts app. It’s made up of the Shortcuts Library, a collection of over 125+ shortcuts grouped into folders, and the Action Directory, a documentation of 125+ of the actions in the Shortcuts app used to build shortcuts.

Bruce's iOS Shortcut Catalog

Hello and welcome to my Shortcuts Catalog!

This is a public resource designed to help people get started with Siri Shortcuts and the Shortcuts app.

It’s made up of the Shortcuts Library, a collection of over 125+ shortcuts grouped into folders, and the Action Directory, a documentation of 125+ of the actions in the Shortcuts app used to build shortcuts.

Enjoy!

@khongi
khongi / .zshrc
Created April 23, 2021 07:34
Unraid Zsh with persistent config
# This is your .zshrc, put it in /boot/config/extra/
export ZSH="/root/.oh-my-zsh"
ZSH_THEME="robbyrussell"
DISABLE_UPDATE_PROMPT="true"
plugins=(
zsh-autosuggestions
@juliowaissman
juliowaissman / .emacs
Last active January 13, 2020 00:37
Configuración de emacs que estoy usando en la Mac
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(custom-enabled-themes (quote (wombat)))
'(display-time-mode t)
'(package-selected-packages
(quote
(pc-bufsw perspective projectile org-bullets auctex org-gcal use-package magit elpy)))
@churro-s
churro-s / LetsEncrypt_HTTPS_plex.MD
Last active July 27, 2024 18:38
Setup Let's Encrypt certificate for use with Plex Media Server on Ubuntu
@spalladino
spalladino / mysql-docker.sh
Created December 22, 2015 13:47
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
@stevejenkins
stevejenkins / uap-reboot.sh
Last active July 7, 2021 19:51
Simple shell script to remotely reboot a Ubiquiti UBNT UniFi Access Point (UAP, UAP-PRO, UAP-AC, etc.)
#MOVED TO: https://github.com/stevejenkins/unifi-linux-utils
@ole
ole / update_storyboard_strings.sh
Last active April 4, 2022 06:11
Automatically extract translatable strings from Xcode storyboards and update .strings files. Original version by MacRumors forum user mikezang (http://forums.macrumors.com/showpost.php?p=16060008&postcount=4). Slightly updated by Ole Begemann. NOTE: this Gist moved to a regular repo at https://github.com/ole/Storyboard-Strings-Extraction.
# (File moved to https://github.com/ole/Storyboard-Strings-Extraction)
@matt-mcmahon
matt-mcmahon / gist:2396063
Created April 16, 2012 02:28
Stop Stupid VirtualBox piix4_smbus Error
Originally here: http://finster.co.uk/2010/11/16/virtualbox-piix4_smbus-error/
VirtualBox piix4_smbus Error
1. Check module is being loaded: -
lsmod | grep i2c_piix4
2. If so, blacklist it in /etc/modprobe.d/blacklist.conf, by adding the following to the end of the file :-