Skip to content

Instantly share code, notes, and snippets.

@hrsano645
hrsano645 / 2023-07-07.md
Last active August 8, 2023 05:20
fujishi-gender_kaigi_2022-2023

‎‎​

@hrsano645
hrsano645 / shizuhack2023.md
Last active June 4, 2023 09:45
shizuhack2023
marp
true

#Shizuhack 2023

2023-06-02 ~ 2023-06-04


@hrsano645
hrsano645 / 7zcmd.md
Last active May 1, 2023 07:58
7zコマンドでファイル解凍をする方法

7zで解凍するコマンド

条件としては、拡張子は関係ない、適当なディレクトリ名の中で解凍される

7z x -o<解凍先ディレクトリ> <解凍対象ファイル>

import asyncio
from pyppeteer import launch
from pathlib import Path
# ref:https://qiita.com/horikeso/items/69528c2b21ede15a56ee
download_path = Path("./download")
async def main():
import asyncio
from pyppeteer import launch
from pathlib import Path
import time
# ref:https://qiita.com/horikeso/items/69528c2b21ede15a56ee
download_path = "./download"
@hrsano645
hrsano645 / win32api_ShellExecute_print.py
Created July 2, 2015 12:43
Printing PDF File at windows and python. Use PyWin32 Package win32api.ShellExecute module
# coding: utf-8
from __future__ import division, print_function, absolute_import, unicode_literals
# ref: http://timgolden.me.uk/python/win32_how_do_i/print.html
# ref: http://docs.activestate.com/activepython/2.7/pywin32/win32api__ShellExecute_meth.html
import win32api
import sys
function createWebhook(){
// プロパティを設定してから必要な情報を取り出す
// 参考:https://qiita.com/0Delta/items/7d8303eebbff4062069e
var scriptProp = PropertiesService.getScriptProperties().getProperties();
var trelloKey = scriptProp.TRELLO_API_KEY;
var trelloToken = scriptProp.TRELLO_TOKEN;
// Trello WebhookへCallback URLを登録する手順
// 1. 登録用のURL生成のために、GASのWEBアプリケーションの公開を以下のように変更してURLを生成する
@hrsano645
hrsano645 / dyndns_route53.py
Created May 15, 2018 05:44 — forked from mariocesar/dyndns_route53.py
Update a Route53 Record if your public IP changes. Like DynDNS
"""
Requeriments:
$ sudo pip install boto dnspython
Edit ~/.boto to use your AWS credentials
"""
import time
import sys
#define BLYNK_USE_DIRECT_CONNECT
#define BLYNK_PRINT Serial
#include <BlynkSimpleSerialBLE.h>
#include <Adafruit_BLE.h>
#include <Adafruit_BluefruitLE_SPI.h>
#include <SPI.h>
#include <OneWire.h>
#include <DallasTemperature.h>
import subprocess
import datetime
from pprint import pprint
ROUTER = ""
NW = ""
RUN_COUNT = 2
speedtest_command = "speedtest-cli --server 15047".split(" ")