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
""" | |
Copyright 2019 Jason Hu <awaregit at gmail.com> | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software |
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
""" | |
Copyright 2019 Jason Hu <awaregit at gmail.com> | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software |
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
// Must disable logging if using logging in main.cpp or in other custom components for the | |
// __c causes a section type conflict with __c thingy | |
// you can enable logging and use it if you enable this in logger: | |
/* | |
logger: | |
level: DEBUG | |
esp8266_store_log_strings_in_flash: False | |
*/ | |
//#define APE_LOGGING |
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
/* | |
Project: WOOF | |
Date: 20171228 | |
Hardware | |
FTDI for Pro Mini | |
https://www.banggood.com/FT232RL-FTDI-USB-To-TTL-Serial-Converter-Adapter-Module-For-Arduino-p-917226.html?rmmds=search&cur_warehouse=CN | |
Arduino Pro Mini or Micro |
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
#!/bin/sh | |
# | |
# Bacula interface to FreeBSD chio autoloader command with | |
# multiple drive support | |
# (By Lars K�ller, [email protected], 2004) | |
# | |
# If you set in your Device resource | |
# | |
# Changer Command = "path-to-this-script/chio-bacula" %c %o %S %a | |
# you will have the following input to this script: |
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
#!/bin/bash | |
## | |
## Authenticate with Google Voice | |
## | |
USAGE="`basename $0` {auth|refresh|token} ctx" | |
CTX_DIR=$HOME/.gvauth | |
CLIENT_ID="YOUR_CLIENTID_FROM_GOOGLE_DEVELOPER_CONSOLE" | |
CLIENT_SECRET="YOUR_CLIENTSECRET_FROM_GOOGLE_DEVELOPER_CONSOLE" | |
SCOPE="https://www.googleapis.com/auth/googletalk%20https://www.googleapis.com/auth/userinfo.email%20https://www.googleapis.com/auth/userinfo.profile" |
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
#!/bin/sh | |
read -d '' vlannetwork <<- EOF | |
[Match] | |
Name=eno1 | |
[Network] | |
VLAN=eno1.100 | |
VLAN=eno1.200 | |
VLAN=eno1.300 | |
VLAN=eno1.400 |
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
#!/bin/bash | |
# | |
BACKUPDEST="$1" | |
DOMAIN="$2" | |
MAXBACKUPS="$3" | |
if [ -z "$BACKUPDEST" -o -z "$DOMAIN" ]; then | |
echo "Usage: ./vm-backup <backup-folder> <domain> [max-backups]" | |
exit 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
//****************************************************************************************** | |
//* Esp_radio -- Webradio receiver for ESP8266, 1.8 color display and VS1053 MP3 module, * | |
//* by Ed Smallenburg ([email protected]) * | |
//* With ESP8266 running at 80 MHz, it is capable of handling up to 256 kb bitrate. * | |
//* With ESP8266 running at 160 MHz, it is capable of handling up to 320 kb bitrate. * | |
//****************************************************************************************** | |
// ESP8266 libraries used: | |
// - ESP8266WiFi - Part of ESP8266 Arduino default libraries. | |
// - SPI - Part of Arduino default libraries. | |
// - Adafruit_GFX - https://github.com/adafruit/Adafruit-GFX-Library |
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
//http://playerservices.streamtheworld.com/api/livestream?version=1.5&mount=CIMXFMAAC&lang=en | |
#include <ESP8266WiFi.h> | |
#include <TinyXML.h> | |
const char* ssid = "SSID"; | |
const char* password = "PASSWORD"; | |
const char* host = "playerservices.streamtheworld.com"; | |
const char* apiVersion = "1.5"; | |
const char* mountPoint = "CIMXFMAAC"; |
NewerOlder