Skip to content

Instantly share code, notes, and snippets.

View rokam's full-sized avatar

Lucas Mindêllo de Andrade rokam

View GitHub Profile
/*
Monitor ticket availability at Fifa.com Ticketing System site
Run this code at https://fwctickets.fifa.com/ticketingsystem.aspx?l=en#Tck2
(use the console available in any browser developer inspector)
- configure the timeout between refreshes and the matches you want to monitor
- when any available ticket is found a beep sound is played and the refresh stops
*/
function checkTicket() {
@rokam
rokam / sonoff-dw2wifi-lowbattery-notification.yaml
Last active June 25, 2021 19:25
Sends notification on low battery for SonOff DW2-Wifi
blueprint:
name: Sonoff DW2-Wifi low battery notification
description: Sends notification on low battery for DW2-Wifi
domain: automation
input:
door_sensor:
name: Door sensor
selector:
entity:
domain: binary_sensor
blueprint:
name: TTS on door opening with persons at home
description: Sends notification on low battery for DW2-Wifi
domain: automation
input:
door_sensors:
name: Door sensors
selector:
entity:
domain: binary_sensor
@rokam
rokam / tts-door-opening.yaml
Last active July 9, 2024 16:40
Send a greetings TTS message using tts.google_say service after opening the door, considering who arrived in the configured minutes.
blueprint:
name: TTS on door opening with persons at home
description: Sends TTS message to a media_player when door is oppened with the person
at home
domain: automation
input:
door_sensor:
name: Door sensor
selector:
entity:
@rokam
rokam / fix_fallguys.sh
Created March 30, 2022 03:21
Bash script to run the proton experimental fall guys fix
#!/bin/bash
STEAMAPPS_PATH=${1-~/.steam/steam/steamapps}
FALLGUYS_PATH=$STEAMAPPS_PATH/common/Fall\ Guys
if [ ! -d "$FALLGUYS_PATH" ]; then
echo Unable to find Fall Guys Path.
exit
fi
#Create symlink
ln -s "$FALLGUYS_PATH/EasyAntiCheat/easyanticheat_x64.so" "$FALLGUYS_PATH/FallGuys_client_game_Data/Plugins/x86_64/easyanticheat_x64.so"
@rokam
rokam / tts-motion.yaml
Last active August 9, 2022 16:40
Send a greetings TTS message using tts.google_say service after motion detected, considering who arrived in the configured minutes.
blueprint:
name: TTS on motion with persons at home
description: Sends TTS message to a media_player when motion is detected with the person
at home
domain: automation
input:
door_sensor:
name: Motion sensor
selector:
entity:
@rokam
rokam / gist:ec2dbd5d987a7ac32920966505ec7745
Created June 27, 2023 12:08
Running steam from console
$ steam
steam.sh[9073]: Running Steam on arch rolling 64-bit
steam.sh[9073]: STEAM_RUNTIME is enabled automatically
setup.sh[9148]: Steam runtime environment up-to-date!
steam.sh[9073]: Steam client's requirements are satisfied
06/27 08:32:40 Init: Installing breakpad exception handler for appid(steam)/version(1687563636)/tid(9208)
(process:9208): GLib-GObject-CRITICAL **: 08:32:41.300: g_object_ref: assertion 'G_IS_OBJECT (object)' failed
(process:9208): GLib-GObject-CRITICAL **: 08:32:41.300: g_object_unref: assertion 'G_IS_OBJECT (object)' failed