- 公式Webサイトのニュースから取得する (JSON)
GET https://kirarafantasia.com/wp-json/wp/v2/posts - アプリ内で表示されるニュースから取得する (RSS XML) - 2020/03/27以降未更新、追記参照
GET https://krr-prd-web.star-api.com/news/feed/
アプリ内ニュースはbrとかに揺れがある(,
, ,
)。また
で改行しているケースもある。
<?php | |
// https://tomachi.jpn.ph/blog/discordmessagesend/ | |
function DiscordMessageSend($channelid, $message, $embed = null){ | |
$token = "TOKEN"; | |
$data = array( | |
"content" => $message, | |
"embed" => $embed | |
); | |
$header = array( |
#!/bin/bash | |
# 特定ディレクトリ以下にある全てのPHPファイルのシンタックスチェックをする。 | |
# Check the syntax of all PHP files under a specific directory. | |
DIRPATH=/ | |
# 1 week | |
find $DIRPATH -name \*.php -daystart -mtime -6 -exec php -l {} \; > /dev/null 2> phplint.log | |
# full |
<?php | |
function sendDiscordWebhook($message) | |
{ | |
$url = "<DISCORD WEBHOOK URL>"; | |
$data = [ | |
"content" => $message | |
]; | |
$header = array( | |
"Content-Type: application/json", |
// ==UserScript== | |
// @name IT Passport Kakomon doujyo keyboard controller | |
// @namespace https://gist.github.com/book000 | |
// @version 0.0.1 | |
// @description ITパスポート試験ドットコム「ITパスポート過去問道場」をキーボード操作可能とするスクリプト | |
// @author book000 | |
// @match https://www.itpassportsiken.com/ipkakomon.php | |
// @grant none | |
// ==/UserScript== | |
/* |
<?php | |
function sendDiscordWebhook($message) | |
{ | |
$url = "<DISCORD WEBHOOK URL>"; | |
$data = [ | |
"content" => $message | |
]; | |
$header = array( | |
"Content-Type: application/json", |
<?php | |
function sendDiscordWebhook($message) | |
{ | |
$url = "<DISCORD WEBHOOK URL>"; | |
$data = [ | |
"content" => $message | |
]; | |
$header = array( | |
"Content-Type: application/json", |
アプリ内ニュースはbrとかに揺れがある(,
, ,
)。また
で改行しているケースもある。
sudo lsof -iTCP -sTCP:LISTEN -P | sed 's/NAME//g' | awk '{ print $9 }' | sed 's/localhost/*/g' | sed 's/*://g' | sort --numeric-sort | uniq |
// ==UserScript== | |
// @name GitHub Autoload Project New Activity | |
// @namespace https://tomacheese.com | |
// @version 0.1 | |
// @description GitHub Autoload Project New Activity | |
// @author Tomachi | |
// @match https://github.com/*/projects/* | |
// @icon https://www.google.com/s2/favicons?domain=github.com | |
// @updateURL https://gist.github.com/book000/b58447b7a6b4626af59dbb97bead8ab9/raw/github-autoload-project-new-activity.user.js | |
// @grant none |
/* ==UserStyle== | |
@name Resolve an issue with Chinese fonts being used on ticktick.com | |
@namespace tomacheese.com | |
@version 1.0.0 | |
@updateURL https://gist.github.com/book000/9913ba81d18ea9075c3bda70249a4178/raw/ticktick-japanese-font.user.css | |
@description ticktick.com で中華フォントが使われてしまう問題を解決する | |
@author Tomachi (book000) | |
==/UserStyle== */ | |
@-moz-document domain("ticktick.com") { | |
* { |