Install
$ brew install npm
$ npm install -g tplink-smarthome-api
I want to USB power ON/OFF on Raspberry Pi 4.
Raspberry Pi 4でUSBパワーをON/OFFしたい。
Raspberry PiのUSBポートに直接LEDライトを接続してオンオフを試しました。
ここでは、https://github.com/mvp/uhubctl というユーティリティを使います。
https://github.com/codazoda/hub-ctrl.c も、だいたい同じことができるようですが、こちらの uhubctl の方が扱いやすそうだったので、こちらを選びました。
個別のUSBポートのパワーのON/OFFはできないようで、全てのUSBポートのパワーを一緒に操作しています。
<key>NSAppTransportSecurity</key> | |
<dict> | |
<key>NSExceptionDomains</key> | |
<dict> | |
<key>mydomain.com</key> | |
<dict> | |
<key>NSIncludesSubdomains</key> | |
<true/> | |
<key>NSExceptionRequiresForwardSecrecy</key> | |
<false/> |
server { | |
listen 80; | |
server_name localhost; | |
#charset koi8-r; | |
#access_log /var/log/nginx/log/host.access.log main; | |
if ($allowed_country = yes) { | |
set $exclusions 1; | |
} |
<?xml version="1.0" encoding="UTF-8"?> | |
<ChangeResourceRecordSetsRequest xmlns="https://route53.amazonaws.com/doc/2013-04-01/"> | |
<ChangeBatch> | |
<Changes> | |
<Change> | |
<Action>DELETE</Action> | |
<ResourceRecordSet> | |
<Name>test.hitokoto.co.</Name> | |
<Type>A</Type> | |
<TTL>300</TTL> |
# tail | |
<source> | |
type tail | |
format /^(?<date>\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2},\d{3}) (?<status>\S+) \[(?<role>\S+)\] (?<info>.*)$/ | |
path /tmp/application.log | |
pos_file /var/log/td-agent/myapp.application.pos | |
tag td.myapp.application | |
</source> | |
<match td.myapp.application> |
# /etc/nginx/conf.d/default.conf | |
server { | |
listen 8080; | |
server_name localhost; | |
root /usr/share/nginx/wordpress; | |
index index.php; | |
location ~ \.php$ { | |
fastcgi_pass 127.0.0.1:9000; | |
fastcgi_index index.php; |
server { | |
listen 80; | |
root /var/www/eccube/html; | |
index index.php index.html index.htm; | |
location / { | |
try_files $uri $uri/ /index.php?q=$uri&$args; | |
} | |
error_page 500 502 503 504 /50x.html; |
server { | |
listen 443; | |
server_name historia.hitokoto.co; | |
root /var/www/historia; | |
index index.php; | |
charset utf-8; | |
gzip on; | |
gzip_types text/css text/javascript application/json; | |
ssl on; |
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="test.admob.com.admobinterstitialtest"> | |
<!-- Include required permissions for Google Mobile Ads to run. --> | |
<uses-permission android:name="android.permission.INTERNET" /> | |
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | |
<application | |
android:allowBackup="true" |