Server側(リモートから再起動したいマシン)
- 管理者権限ありの PowerShell or CMD で下記コマンドを実行
- winrm qc
Client側 (リモートマシン)
- 管理者権限ありの PowerShell or CMD で下記コマンドを実行
- winrm set winrm/config/client @{TrustedHosts="<コンピューター名a>,<コンピューター名b>"}
// Original: https://gist.github.com/elifkus/09cd63b3cfbf4e070ecc83b4a4358eaa/281be3cc626dafeed767613ee5e3bad078268e38 | |
// TODO; 日単位で集計(加算)して、 | |
/** | |
* There is a write-up of how to get this code to run. https://elifk.us/en/retrieving-your-strava-data-with-google-app-scripts/ | |
*/ | |
var scriptProp = PropertiesService.getScriptProperties().getProperties(); |
cloud console | |
firebase の install , login 不要 | |
いきなり firebase init で可 | |
既存の firebase project に機能追加するのは firebase init functions (例) |
Server側(リモートから再起動したいマシン)
Client側 (リモートマシン)
#!/bin/sh | |
PROXY_USER=user | |
PROXY_PASS=password | |
PROXY_PORT=3128 | |
# Clear the repository index caches | |
yum clean all | |
# Update the operating system |
OSアップデートで設定がリセットされている。
/etc/apache2/httpd.conf で Include の WebDAV 1箇所と、LoadModuleのDav関係3つをアンコメント
/etc/apache2/extra/httpd-dav.conf を以下のように変更
DavLockDB "/tmp/DavLock"
# => /tmp/ のパーミッションに注意。/tmp/DavLock.dir /tmp/DavLock.pag が作られるはず
Alias /dav "/foo/bar/dav"
-- | |
-- open currently active Chrome tab with Safari | |
-- forked from https://gist.github.com/3151932 and https://gist.github.com/3153606 | |
-- | |
property theURL : "" | |
tell application "Google Chrome" | |
set theURL to URL of active tab of window 0 | |
end tell | |
if appIsRunning("Safari") then |
export HTTPS_PROXY=http//....:3128 | |
sudo -E add-apt-repository ppa:webupd8team/java | |
sudo apt-get update | |
sudo apt-get install oracle-java7-installer |