Skip to content

Instantly share code, notes, and snippets.

View reyo's full-sized avatar

reyo

  • Reiven Solutions
  • Estonia
  • 00:36 (UTC +02:00)
View GitHub Profile
@reyo
reyo / reset-mac.sh
Last active December 25, 2015 10:38
#!/bin/sh
rm -rf ~/Library/Preferences/WebIde*
rm -rf ~/Library/Preferences/WebStorm*
rm -rf ~/Library/Caches/WebIde*
rm -rf ~/Library/Caches/WebStorm*
rm -rf ~/Library/Application\ Support/WebIde*
rm -rf ~/Library/Application\ Support/WebStorm*
rm -rf ~/Library/Logs/WebIde*
rm -rf ~/Library/Logs/WebStorm*
@reyo
reyo / Quickly Add 5GB Swap File
Created March 24, 2018 09:03 — forked from jaredmichaelwilliams/Quickly Add 5GB Swap File
Quick Add 5GB Swap File, and add to fstab
dd if=/dev/zero of=/mnt/swap bs=1024 count=5242880;
mkswap /mnt/swap;
chown root:root /mnt/swap ;
chmod 0600 /mnt/swap ;
swapon /mnt/swap;
echo "/mnt/swap swap swap defaults 0 0" >> /etc/fstab;
@reyo
reyo / automations.yaml
Created December 26, 2024 17:42
Automatically extend LG WebOS Developer Mode with Home Assistant
- alias: Extend TV dev mode every night
trigger:
# Run this automation every night at 4 AM.
- platform: time
at: 04:00:00
condition:
# Run only if TV is off.
- condition: template
value_template: '{{ is_state("media_player.webos_tv", "off") }}'
action: