Skip to content

Instantly share code, notes, and snippets.

View advancedbear's full-sized avatar

advanced bear advancedbear

View GitHub Profile
@advancedbear
advancedbear / ishikawa_pref_coupon_list.sh
Last active October 17, 2022 14:38
いしかわ旅行割のクーポンサイトをスクレイピングするシェルスクリプト
#!/bin/bash
URL="https://www.goto-ishikawa-campaign.com/?post_type=coupon&s&paged="
TEMP="/var/tmp/temp.out"
which flat 2>&1 1>/dev/null
if [ $? != 0 ]; then
echo "You need install 'egzact' command package."
echo "Please install from https://github.com/greymd/egzact"
exit 1
@advancedbear
advancedbear / gist:6579cb9259b0aa5af2e52898400d69e7
Created September 6, 2022 10:05
YouTubeの視聴履歴ページでホロライブJPメンバーの履歴を検索するブックマークレット
javascript: (function () {
titles = [];
members = {
"ときのそら": 0,
"ロボ子さん": 0,
"さくらみこ": 0,
"星街すいせい": 0,
"AZKi": 0,
"夜空メル": 0,
"アキ・ローゼンタール": 0,
@advancedbear
advancedbear / stdout
Last active July 12, 2018 12:51
mirakurun_stdout_2018-07-11_1500-1815
2018-07-11T15:00:20.212+09:00 info: EPG GC has queued
2018-07-11T15:00:20.247+09:00 info: EPG GC has finished and removed 22 events
2018-07-11T15:00:40.928+09:00 info: Program GC has finished and removed 16 programs
2018-07-11T15:00:43.925+09:00 info: save db `C:\Users\advanced_bear\AppData\Local\Mirakurun\programs.json`
127.0.0.1 - GET /api/services HTTP/1.1 200 - - 3.837 ms EPGStation/1.0.2 MirakurunClient/2.7.0 Node/v8.11.3 (win32)
127.0.0.1 - GET /api/programs HTTP/1.1 200 - - 187.954 ms EPGStation/1.0.2 MirakurunClient/2.7.0 Node/v8.11.3 (win32)
127.0.0.1 - GET /api/tuners HTTP/1.1 200 - - 0.852 ms EPGStation/1.0.2 MirakurunClient/2.7.0 Node/v8.11.3 (win32)
2018-07-11T15:15:20.247+09:00 info: EPG GC has queued
2018-07-11T15:15:20.280+09:00 info: EPG GC has finished and removed 6 events
2018-07-11T15:15:40.934+09:00 info: Program GC has finished and removed 14 programs
@advancedbear
advancedbear / main.js
Last active March 6, 2018 13:55
TvRockの録画情報をDiscordに投稿するWebhook BOT
const fs = require('fs');
const readline = require('readline');
const iconv = require('iconv-lite');
const exec = require('child_process').exec;
const execSync = require('child_process').execSync;
const Discord = require('discord.js');
const command_tscheck = 'tscheck.exe ';
const command_ffmpeg1 = 'ffmpeg.exe -ss ';
const command_ffmpeg2 = ' -i ';
const command_ffmpeg3 = ' -y -t 1 -r 1 -vf scale=640:360,tile=5x6 -loglevel fatal -f image2 ';
Images Gist.
/**
* @example TCPServer.ino
* @brief The TCPServer demo of library WeeESP8266.
* @author Wu Pengfei<pengfei.wu@itead.cc>
* @date 2015.02
*
* @par Copyright:
* Copyright (c) 2015 ITEAD Intelligent Systems Co., Ltd. \n\n
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as