This file contains hidden or 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/bash | |
| num=${1:-217-263522} | |
| echo ${num} 1>&2 | |
| curl -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36" -s "https://www.tele.soumu.go.jp/giteki/list?SC=1&OF=2&DC=1&NUM=${num}" |
This file contains hidden or 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
| $coreutilsBinPath = 'C:\Program Files\coreutils\bin' | |
| if (Test-Path $coreutilsBinPath) { | |
| # 1. bin フォルダ内の .exe ファイル名(拡張子なし)をすべて取得 | |
| $coreutilsCmds = Get-ChildItem -Path $coreutilsBinPath -Filter *.exe | | |
| Select-Object -ExpandProperty BaseName | |
| # 2. 全ての PowerShell Alias をループ処理 | |
| foreach ($alias in Get-Alias) { | |
| # Alias 名が coreutils のコマンド名と一致するかチェック |
This file contains hidden or 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 -*- | |
| import tkinter as tk | |
| from PIL import Image, ImageTk | |
| from watchdog.observers import Observer | |
| from watchdog.events import FileSystemEventHandler | |
| import pystray | |
| from pystray import MenuItem as item | |
| import threading | |
| import os | |
| import time |
This file contains hidden or 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 -*- | |
| # | |
| # vvox.py: https://github.com/sharl/amedas/blob/e2a02ba028b1fbc71371b6894d18109513f148d2/vvox.py | |
| # pip install -U bs4 requests pyaudio | |
| # | |
| import sys | |
| import time | |
| from bs4 import BeautifulSoup | |
| from vvox import vvox |
This file contains hidden or 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 -*- | |
| import ctypes | |
| import logging | |
| import logging.handlers | |
| import os | |
| import re | |
| import sys | |
| import threading | |
| import time |
This file contains hidden or 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 -*- | |
| import json | |
| import requests | |
| import pyaudio | |
| host = '127.0.0.1' | |
| port = 50021 | |
| def vvox(text): |
This file contains hidden or 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/bash | |
| BASE=/sys/devices/platform/soc/soc:internal-regs/d0011000.i2c/i2c-0/0-003e/hwmon/hwmon0 | |
| target=${BASE}/fan1_target | |
| input=${BASE}/fan1_input | |
| if [ ! -z "$*" ]; then | |
| if [[ $1 =~ ^[0-9]+$ ]]; then | |
| echo $1 > ${target} | |
| fi |
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| # | |
| # つよさ予報からアストルティア防衛軍の全兵団襲撃を抽出 | |
| import requests | |
| from bs4 import BeautifulSoup | |
| base_url = 'https://hiroba.dqx.jp/sc/tokoyami/' | |
| r = requests.get(base_url, timeout=10) |
This file contains hidden or 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
| --js-runtimes deno:/home/linuxbrew/.linuxbrew/bin/deno | |
| -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio/best[ext=mp4]/best' | |
| -o ~/Downloads/%(title)s.%(ext)s |
This file contains hidden or 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
| --- a/ircbot.js | |
| +++ b/ircbot.js | |
| @@ -145,7 +145,7 @@ async function amedasget(posname) | |
| const day = ('0'+cur.getDate()).slice(-2); | |
| const hour = ('0'+cur.getHours()).slice(-2); | |
| const targetTime = `${year}${month}${day}_${hour}`; | |
| - // const targetIndex = `${year}${month}${day}${hour}0000`; | |
| + const targetBase = `${year}${month}${day}${hour}0000`; | |
| const responses = []; | |
| for ( key in point ) { |
NewerOlder