Skip to content

Instantly share code, notes, and snippets.

View evandroflores's full-sized avatar
☁️
Building the Cloud

Evandro Flores evandroflores

☁️
Building the Cloud
  • Dublin, Ireland
  • 20:23 (UTC)
View GitHub Profile
@evandroflores
evandroflores / turn-power-led-off
Last active February 13, 2021 21:18
/etc/init.d/turn-power-led-off
#! /bin/sh
### BEGIN INIT INFO
# Provides: power-led
# Required-Start: $all
# Required-Stop:
# Default-Start: 2 3 5
# Default-Stop: 0 1 6
# Short-Description: Turn Power Led off
# description: Turn Netgear ReadyNAS Power Led off. Add this script to your init.d to turn the power button led off after startup. /etc/init.d/turn-power-led-off
### END INIT INFO
@evandroflores
evandroflores / notify.py
Created March 20, 2018 00:56 — forked from lukaszb/notify.py
Simple Python script to send notification to the OSX Notifications Center (requires OS X 10.8+). Tested with pyobjc 2.5.1
#!/usr/bin/env python
from Foundation import NSUserNotification
from Foundation import NSUserNotificationCenter
from Foundation import NSUserNotificationDefaultSoundName
from optparse import OptionParser
def main():
parser = OptionParser(usage='%prog -t TITLE -m MESSAGE')
Verifying that "evandroflores.id" is my Blockstack ID. https://onename.com/evandroflores