I hereby claim:
- I am imksoo on github.
- I am imksoo (https://keybase.io/imksoo) on keybase.
- I have a public key ASAkvvFy6mc7Xxso8nAjuIUJllIvVqXUcO-JSOC9s4Vf7wo
To claim this, I am signing this object:
#!/bin/bash | |
# NTT HGWのIPアドレス、ユーザ名、パスワードを設定 | |
HGW_ADDR=192.168.1.1 | |
USERNAME=user | |
PASSWORD=p@ssw0rd | |
mkdir -p logs | |
# NTT HGWのログを取得 |
{ | |
"mode": "Indexed", | |
"policyRule": { | |
"if": { | |
"allOf": [ | |
{ | |
"field": "type", | |
"equals": "Microsoft.Compute/virtualMachines" | |
}, | |
{ |
const EchonetLite = require('node-echonet-lite'); | |
const el = new EchonetLite({ type: 'lan' }); | |
el.init((err) => { | |
if (err) { | |
console.log(err); | |
process.exit(1); | |
} else { | |
getBatteryStatus(el); | |
} |
import "websocket-polyfill"; | |
import 'dotenv/config'; | |
import * as Nostr from "nostr-tools"; | |
import { RelayPool } from "nostr-relaypool"; | |
import { NostrFetcher } from "nostr-fetch"; | |
const SECKEY = process.env.SECKEY || ""; | |
if (!process.env.SECKEY) { | |
console.error("秘密鍵を環境変数か.envファイルにSECKEYとして定義してください") | |
process.exit(1); |
const fetch_count = 16; | |
const srcRelay = 'ws://localhost:8080' | |
const dstRelay = 'ws://localhost:8888' | |
let srcSocket; | |
let dstSocket; | |
let until = (new Date()) / 1000; | |
if (typeof (WebSocket) === 'undefined') { | |
const WebSocket = require('websocket').w3cwebsocket | |
srcSocket = new WebSocket(srcRelay) |
I hereby claim:
To claim this, I am signing this object:
const srcRelay = 'wss://relay.snort.social' | |
const dstRelay = 'wss://relay-jp.nostr.wirednet.jp' | |
const authors = ['634bd19e5c87db216555c814bf88e66ace175805291a6be90b15ac3b2247da9b'] | |
let srcSocket | |
let dstSocket | |
if (typeof (WebSocket) === 'undefined') { | |
const WebSocket = require('websocket').w3cwebsocket | |
srcSocket = new WebSocket(srcRelay) | |
dstSocket = new WebSocket(dstRelay) |
const relay = 'wss://relay-jp.nostr.wirednet.jp' | |
const authors = ['634bd19e5c87db216555c814bf88e66ace175805291a6be90b15ac3b2247da9b'] | |
function history (until = Math.floor(new Date() / 1000)) { | |
let socket | |
if (typeof (WebSocket) === 'undefined') { | |
const WebSocket = require('websocket').w3cwebsocket | |
socket = new WebSocket(relay) | |
} else { | |
socket = new WebSocket(relay) |
$certificatePassword = Read-Host -AsSecureString -Prompt 'Enter a password for the PFX file'
$signCert = New-SelfSignedCertificate -Subject 'CN=HGS Signing Certificate' -KeyUsage DataEncipherment, DigitalSignature Export-PfxCertificate -FilePath '.\signCert.pfx' -Password $certificatePassword -Cert $signCert
Remove-Item $signCert.PSPath
大まかな流れは、まおーさんの情報を参考にしてやってみました。 https://zenn.dev/yakumo/articles/c8f1b7bd8398414286a15da1cbcbe517
かつあい