- Use
curl.exe
instead ofcurl
on Windows - Issuing an (Access Token): Settings - API
- (Post Mode):、
public
,home
,followers
orspecified
- (Instance Domain): example
misskey.io
View note-on-misskey-widget-aiscript-app.aiscript
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
// CC0 1.0 https://creativecommons.org/publicdomain/zero/1.0/deed | |
let button = `button name` | |
let result = `test` | |
Ui:render([ | |
Ui:C:container({ | |
children: [ | |
Ui:C:postFormButton({ | |
text: button |
View note-on-misskey-play.aiscript
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
// CC0 1.0 https://creativecommons.org/publicdomain/zero/1.0/deed | |
let result = `test` | |
Ui:render([ | |
Ui:C:container({ | |
children: [ | |
Ui:C:mfm({ text: result }) | |
Ui:C:postFormButton({ | |
text: "Note" |
View misskeyrelease.sh
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 | |
# crontab -e | |
# */5 * * * * ~~~/misskeyrelease.sh (5 分おき) | |
FEED_URL="https://github.com/misskey-dev/misskey/releases.atom" # 参照する Feed(ATOM) | |
TEMP_FILE="/home/ユーザー/~/misskeyrelease.txt" # 最新リンクを保存するファイル | |
MISSKEY_TOKEN="01234567890123456789012345678901" # アクセストークン (設定 - API から。「ノートを作成・削除する」を有効にする) | |
MISSKEY_INSTANCE="misskey.example.com" # インスタンス名 misskey.io など | |
MISSKEY_NOTEMODE="public" # 公開モード public local followers specified |
View misskey-times-bot.sh
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 | |
# crontab -e | |
# 0 * * * * ~~~/misskey-times-bot.sh (毎時 0 分) | |
# 0,30 * * * * ~~~/misskey-times-bot.sh (毎時 0 分・30 分) | |
MISSKEY_TOKEN="01234567890123456789012345678901" # アクセストークン (設定 - API から。「ノートを作成・削除する」を有効にする) | |
MISSKEY_INSTANCE="misskey.example.com" # インスタンス名 misskey.io など | |
MISSKEY_NOTEMODE="public" # 公開モード public local followers specified |
View README.md
View misskey.src
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
10 LD HL,GB0 | |
20 LD DE,0FF00H | |
30 LD C,6 | |
40_PSLP: | |
50 PUSH BC | |
60 LD A,D | |
70 ADD A,1 | |
80 LD D,A | |
90 LD E,0 | |
100 LD B,144 |
View Caddyfile
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
example.com | |
respond "410 Gone" 410 |
View phpinfo.php
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
<?php | |
function main(array $args) : array | |
{ | |
ob_start(); | |
phpinfo(); | |
$phpinfo = ob_get_contents(); | |
ob_end_clean(); | |
return [ | |
"headers" => ['Content-Type' => 'text/plain'], |
View README.md
ibmcloud fn action create <ACTION-NAME> --docker openwhisk/action-php-v8.0 FILE.php --web true
If you were already using the PHP 7.3 runtime, you can run ibmcloud fn action update
instead.
You can zip multiple files with .zip instead of FILE.php
and specify it.
The source will work almost in common with the PHP 7.3 runtime.
This operation requires CLI to edit the source. (Cannot be edited from the console)
NewerOlder