Skip to content

Instantly share code, notes, and snippets.

View Luismcplopes's full-sized avatar
🙂
Learning new tools and new ways to do things

Luis MCP Lopes Luismcplopes

🙂
Learning new tools and new ways to do things
View GitHub Profile
@Luismcplopes
Luismcplopes / gitignore_template
Created August 13, 2019 20:11
Gitignore template when i start a new projects.
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@Luismcplopes
Luismcplopes / settings.json
Last active March 24, 2021 00:47
Transmission settings for OSMC
{
"alt-speed-down": 50,
"alt-speed-enabled": false,
"alt-speed-time-begin": 540,
"alt-speed-time-day": 127,
"alt-speed-time-enabled": false,
"alt-speed-time-end": 1020,
"alt-speed-up": 50,
"bind-address-ipv4": "0.0.0.0",
"bind-address-ipv6": "::",
# Description: Boxstarter Script
# Author: Luislopes
# note backup feedreader DB
# Run using: START http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/Luismcplopes/9607f171a3f95f4b81e901d1b2051bf4/raw/2979af4a33792223b524ee610d09cf5c07b2a4bd/teste.ps1
# http://boxstarter.org/package/url?https://gist.githubusercontent.com/Luismcplopes/9607f171a3f95f4b81e901d1b2051bf4/raw/2979af4a33792223b524ee610d09cf5c07b2a4bd/teste.ps1
# https://gist.github.com/Luismcplopes/9607f171a3f95f4b81e901d1b2051bf4
# Control Panel\Programs\Programs and Features
@Luismcplopes
Luismcplopes / teste.ps1
Last active November 24, 2020 22:05
For test windows first start automation with chocolatery and boxstarter
# Description: Boxstarter Script
# Author: Luislopes
# note backup feedreader DB
# Run using: START http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/Luismcplopes/9607f171a3f95f4b81e901d1b2051bf4/raw/2979af4a33792223b524ee610d09cf5c07b2a4bd/teste.ps1
# http://boxstarter.org/package/url?https://gist.githubusercontent.com/Luismcplopes/9607f171a3f95f4b81e901d1b2051bf4/raw/2979af4a33792223b524ee610d09cf5c07b2a4bd/teste.ps1
#--- PowerShell v2 ---
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
iex ((New-Object System.Net.WebClient).DownloadString('https://boxstarter.org/bootstrapper.ps1')); Get-Boxstarter -Force
#--- PowerShell v3+ ---

Requirement: node-red-dashboard. Obviously you will need a Raspberry Pi too!

This is a simple but very useful Actions buttons to control a Raspberry Pi it includes so far:

  • Actions: Shutdown and Reboot buttons restart some services
#!/bin/bash
########################################
#
# This script notifies slack
# when this machine starts up
#
########################################
#This reads in the webhook URL from a file
#just replace it with you actual webhook URL
@Luismcplopes
Luismcplopes / remove-completed-torrents.sh
Last active January 17, 2023 00:27
Transmission-Daemon: Remove or/and Move Completed Torrents
#!/bin/sh
# https://community.wd.com/t/guide-auto-removal-of-downloads-from-transmission-2-82/93156
# script to check for complete torrents in transmission folder, then stop and move them
# either hard-code the MOVEDIR variable here…
# MOVEDIR=/home/amhiserver/.box # the folder to move completed downloads to
# …or set MOVEDIR using the first command-line argument
# MOVEDIR=%1
#
# auth
# port, username, password
version: '3.1'
services:
wordpress:
image: wordpress
restart: always
ports:
- 8080:80
environment:
@Luismcplopes
Luismcplopes / docker-compose.yml
Last active September 24, 2018 16:50
test with node red
version: '3'
services:
wordpress:
image: wordpress:lastest
ports:
- "8080:80"
environment:
WORDPRESS_DB_HOST: mysql:3306
WORDPRESS_DB_PASSWORD: wordpress