設定方法
IFTTTの設定
- IFTTTで以下のレシピを作る。
Trigger: New liked tweet by you
Action: Add row to spreadsheet
Spreadsheet name: お好みで
Formatted row: {{LinkToTweet}}
Drive folder path: お好みで
<?php | |
if (function_exists('remove_variation_selector')) { | |
function remove_variation_selector(string $string): string | |
{ | |
return preg_replace("/[\u{FE00}-\u{FE0F}\u{E0100}-\u{E01EF}]/u", '', $string); | |
} | |
} |
<?php | |
declare(strict_types=1); | |
foreach (new DirectoryIterator('./') as $fileInfo) { | |
$filename = $fileInfo->getFilename(); | |
if ($fileInfo->isDot() || $fileInfo->isDir() || $filename === basename(__FILE__)) { | |
continue; | |
} |
ForegroundColour=220,223,228 | |
BackgroundColour=40,44,52 | |
CursorColor=0,0,0 | |
Black=40,44,52 | |
Red=224,108,117 | |
Green=152,195,121 | |
Yellow=229,192,123 | |
Blue=97,175,239 | |
Magenta=198,120,221 | |
Cyan=86,182,194 |
Screen.ColorTable=[[40,44,52],[224,108,117],[152,195,121],[229,192,123],[97,175,239],[198,120,221],[86,182,194],[220,223,228],[90, 99, 116],[224,108,117],[152,195,121],[229,192,123],[97,175,239],[198,120,221],[86,182,194],[220,223,228]]; |
# Requirement | |
# - [fzf](https://github.com/junegunn/fzf) | |
# | |
if [ "$ABDUCO_SESSION_NAME" = "" ]; then | |
export ABDUCO_SESSION_NAME="session_$(date +%s)" | |
SESSIONS="$(abduco | tail -n +2)" | |
if [ -z "$SESSIONS" ]; then | |
abduco -c "$ABDUCO_SESSION_NAME" "$SHELL" && exit | |
fi |
#!/bin/sh | |
QUERY=`printf "$1" | iconv -t UTF-16BE | xxd -ps` | |
open "http://textage.cc/score/index.html?r211B00_${QUERY}" |
// ブクログのアカウント情報 | |
var scriptProperties = PropertiesService.getScriptProperties(); | |
var ACCOUNT = scriptProperties.getProperty('BOOKLOG_ACCOUNT'); | |
var PASSWORD = scriptProperties.getProperty('BOOKLOG_PASSWORD'); | |
function AutoRegistToBooklog() { | |
// 受信トレイにある注文メールを検索 | |
var query = "from:digital-no-reply@amazon.co.jp in:inbox" | |
var threads = GmailApp.search(query); |
Add-Type -AssemblyName System.Web | |
$EncodedString = [System.Web.HttpUtility]::UrlEncode($Args[0], [System.Text.Encoding]::default) | |
start http://example.com?q=$EncodedString"&"param=hoge |
#!/bin/bash | |
CURL=/usr/bin/curl | |
IFTTT_EVENT="$1" | |
IFTTT_KEY="XXXXXXXXXXXXXXXXXXXXX" | |
IFTTT_URL="https://maker.ifttt.com/trigger/${IFTTT_EVENT}/with/key/${IFTTT_KEY}" | |
${CURL} -X POST \ | |
${IFTTT_URL} \ | |
--header "Content-Type: application/json" \ | |
--data-binary "{\"value1\": \"$2\",\"value2\": \"$3\",\"value3\": \"$4\"}" |