This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
light: | |
- platform: esp32_rmt_led_strip | |
name: Status LED | |
pin: GPIO8 | |
rgb_order: RGB | |
num_leds: 1 | |
rmt_channel: 0 | |
chipset: ws2812 | |
entity_category: config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
security add-generic-password \ | |
-a my-github-login \ | |
-s github \ | |
-D "GitHub's OAuth2 Token" \ | |
-T "" \ | |
-w the-long-oauth-token |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Standard | |
make atmega1284p | |
# Who needs flashing LEDs? | |
make atmega1284p LED_START_FLASHES=0 | |
# Let's use RX1/TX1 | |
make atmega1284p UART=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Atmega chip detector. | |
Entered programming mode OK. | |
Signature = 1E 97 05 | |
Processor = ATmega1284P | |
Flash memory size = 131072 | |
LFuse = 62 | |
HFuse = 99 | |
EFuse = FF | |
Lock byte = FF | |
Clock calibration = 81 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Clone of "Arduino UNO", without bootloader | |
unowithoutbl.name=Arduino Uno (w/o bootloader) | |
unowithoutbl.upload.maximum_size=32768 | |
unowithoutbl.bootloader.low_fuses=0xff | |
unowithoutbl.bootloader.high_fuses=0xdf | |
unowithoutbl.bootloader.extended_fuses=0x05 | |
unowithoutbl.bootloader.unlock_bits=0x3F | |
unowithoutbl.bootloader.lock_bits=0x0F | |
unowithoutbl.build.mcu=atmega328p | |
unowithoutbl.build.f_cpu=16000000L |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'active_support/time' | |
require 'aws-sdk' | |
threshold = 2.months.ago | |
ec2 = AWS::EC2.new | |
ec2.shapshots.with_owner(:self). | |
select {|s| s.volume_id == 'vol-12345678' && s.start_time < threshold}. | |
each {|s| puts "Bye-bye #{s.description}"; s.delete} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'nokogiri' | |
require 'fileutils' | |
require 'date' | |
require 'uri' | |
# usage: ruby import.rb my-blog.xml | |
# my-blog.xml is a file from Settings -> Basic -> Export in blogger. | |
data = File.read ARGV[0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open /Applications/Install\ Xcode.app/Contents/Resources/Xcode.mpkg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# disable indexing on the backup disk | |
sudo mdutil -i off /Volume/MyBackupDisk | |
# delete Spotlight's indexes | |
sudo rm -rf /Volume/MyBackupDisk/.Spotlight-V100 | |
# re-enable indexing | |
sudo mdutil -i on /Volume/MyBackupDisk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location / { | |
root /my/web/site; | |
# Note (1) the '/' before $lang and (2) the lack of '/' before $uri (which | |
# already starts with '/'). | |
try_files /$lang$uri /$lang$uri.html /$lang$uri/ $uri $uri.html $uri/ =404; | |
} |
NewerOlder