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
# 同内容TSファイルの重複を探す | |
# "タイトル_放送回_サブタイトル_日付.ts" 形式のTSファイルの | |
# タイトルと放送回が同じファイルが同フォルダ存在したら表示 | |
# | |
# Find-SimilarFiles.bat [Folder] | |
# | |
# 引数にフォルダを指定した場合、その配下を探す | |
# デフォルト対象フォルダ | |
$rootFolder = "D:\tv" |
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 | |
# find text from Layer_1 in SVG files. | |
svgpath='/svg/path' #svg path | |
svgname="*.svg" #svg extension | |
mtime=30 #search file only from 30days before (find -mtime -30) | |
targetstr='Tareget Text regexp' #serach target text in Perl Regexp | |
layername='Layer_1' #search target layer in Perl Regexp (grep -P) | |
find $svgpath -name $svgname -mtime -$mtime -exec grep -lP ">$targetstr</text" {} \; \ |
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
" Vim syntax file | |
" Language: txtjp | |
" Maintainer: NONE | |
" Fienames: *.txt | |
" Version: 1.0 | |
" Repository: NONE | |
" Note: 日本語テキストの色付 | |
" *.txtを全てtxtjpハイライトににする場合.vimrcに以下を設定 | |
" au BufRead,BufNewFile *.txt setfiletype txtjp | |
" モードラインでセットする場合ファイル先頭か最終行付近に以下を記述 |
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
# -*- coding: UTF-8 -*- | |
# | |
# get Nature Remo API Temperature and send to Slack. | |
# | |
import requests | |
import json | |
import slackweb | |
#slack post Webhook | |
slack = slackweb.Slack(url="https://hooks.slack.com/services/....................................") |
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
# coding: UTF-8 | |
# | |
# tenki.jpから指定場所(url)の明日の天気、最高気温、最低気温を取得し、Slackに投稿する | |
# cron等で定時起動 | |
# | |
import urllib.request | |
from bs4 import BeautifulSoup | |
from datetime import datetime | |
import slackweb |
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
# encoding: utf-8 | |
# | |
# Enjoy google home Japanese voice notifyer (via VoiceText https://cloud.voicetext.jp/webapi) | |
# Original script: https://code-life.hatenablog.com/entry/google-home-notifier-voicetextapi | |
# My env: | |
# Raspberry Pi Zero WH | |
# Google home mini. | |
# Slack(make something like #googlehome channel, create Incoming webhook and Outgoing webhook to this channel) | |
# python 3.7.0 | |
# |