This file contains hidden or 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
| #! /usr/bin/env node | |
| var Bleacon = require('bleacon'); | |
| var uuid = '842AF9C408F511E39282F23C91AEC05E'; | |
| var major = 65000; | |
| var measuredPower = -59; | |
| function myLoop(){ | |
| setTimeout(function () { | |
| Bleacon.stopAdvertising(); |
This file contains hidden or 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
| import SwiftUI | |
| struct ContentView: View { | |
| static var toggle = false | |
| static let settings: [Setting] = [ | |
| .push( | |
| label: "Embedded content", | |
| [ | |
| .text(label: "Deeper!", "Here is some embedded informational text") | |
| ] |
This file contains hidden or 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
| import time | |
| import sys | |
| import logging | |
| import pychromecast | |
| from scapy.all import * | |
| mac_address = '00:00:00:00:00:00' | |
| def arp_display(pkt): | |
| if pkt[ARP].op == 1: | |
| if pkt[ARP].hwsrc == mac_address: |
This used to be a draft of my blog post "Finding the SqueezeBox Radio Default SSH Password".
- Install a fresh image of Raspbian and boot the Pi
- Follow the installation guide if needed
- Go through the prompts to finish initial setup
- Open a Termial window
- Type
sudo apt-get install unclutter - Type
sudo raspi-config- Select
Boot Optionswith Enter- Select
Wait for Network at Bootwith Enter - Select
Yeswith Enter
- Select
- Select
- Type
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| # So I asked Greater Goods if they would point me in the direction of their API. So I could get data | |
| # from their WiFi scale without the limitations of their Weight Gurus app. They said they don't give | |
| # that out. So my options are to return the scale to Amazon because it is useless to me without an | |
| # API or I figure it out myself. Anyway, I figured it out so you don't have to return your scale. | |
| # This isn't an API but from here you can atleast access the data. | |
| # If you don't already have the scale you can find it on Amazon | |
| # UPC 875011003964 |
This file contains hidden or 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
| ######## Subject Line (50 characters) ############ | |
| # - Use the imperative mood (imagine the words "This will") | |
| # - Capitalize the first letter | |
| # - Limit to 50 characters | |
| # - Do not end the subject line with a period | |
| ######## The Body (72 characters per line) ############################# | |
| # - Add line breaks so each line is a maximum of 72 characters |
This file contains hidden or 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
| while true; do date; sleep 5; done |
This file contains hidden or 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
| a = int(input()) | |
| b = int(input()) | |
| c = int(input()) | |
| if a <= b and a <= c: | |
| print(a) | |
| elif b <= a and b <= c: | |
| print(b) | |
| else: | |
| print(c) |
OlderNewer