Skip to content

Instantly share code, notes, and snippets.

View YuzuRyo61's full-sized avatar
🌲

YuzuRyo61

🌲
View GitHub Profile
@YuzuRyo61
YuzuRyo61 / Cargo.toml
Last active January 22, 2021 16:38
RSAキーペアを作ってそれをテキスト形式にするRustスクリプト
[package]
name = "rsa_pem_test"
version = "0.1.0"
authors = ["YuzuRyo61"]
edition = "2018"
[dependencies]
bcrypt = "*"
openssl = "*"
pem = "*"
@YuzuRyo61
YuzuRyo61 / config.toml
Created August 4, 2020 13:02
Zoomの待機室のようなやつをDiscordのBotで再現してみたかった(お遊びスクリプト。Discord.pyとtoml使用)
[wating_room]
wating_room_id = 741234567894561232 # 待機室のボイスチャンネルのID
main_room_id = 741234567894561232 # メインのボイスチャンネルのID
text_channel_id = 741234567894561232 # メインのテキストチャンネルのID
role_id = 7400000000000000 # 参加承認時に付与されるロールのID
@YuzuRyo61
YuzuRyo61 / thread-thread-timer.py
Created June 28, 2020 14:56
Research python scripts
import threading
import schedule
import time
# Thread-2 within required argument
def th2(txt):
print(txt)
print(1 + 2)
@YuzuRyo61
YuzuRyo61 / Mitsu.py
Created April 22, 2020 13:08
ただのネタスクリプトです。都知事、申し訳ありません。
#!/usr/bin/env python3
import re
if __name__ == "__main__":
text = input("何か入力> ")
search = re.search(r"[^\s]{2,}", text)
if search != None:
print("密です!")
else:
@YuzuRyo61
YuzuRyo61 / WebCamCaptureServer.py
Last active August 6, 2019 09:49
ウェブカメラの画像をキャプチャする簡易ウェブサーバー(Bottle.py、OpenCV使用)
#!/usr/bin/env python3
import cv2
import os
from bottle import route, run, static_file, abort
@route('/')
def capture():
cap = cv2.VideoCapture(0)
# 解像度は適宜変更してください
cap.set(cv2.CAP_PROP_FRAME_WIDTH, 1600)
@YuzuRyo61
YuzuRyo61 / account.json
Created July 19, 2019 11:32
よろしくお願いしまぁぁぁすっ!!ができる簡易スクリプト
[
{
"method": "mastodon",
"address": "example.com",
"token": "abcdefg1234567890"
},
{
"method": "misskey",
"address": "example.com",
"token": "abcdefg1234567890"
@YuzuRyo61
YuzuRyo61 / Environment.txt
Created April 6, 2019 14:51
Misskey PostgreSQL beta version report file (2019/04/06)
===========
Environment Information
===========
Base OS: Ubuntu 18.04 (Bionic Beaver) [Vagrant version]
Vagrant Box Information: https://app.vagrantup.com/ubuntu/boxes/bionic64
Package version:
nodejs: 11.13.0
npm: 6.7.0
yarn: 1.15.2
redis: 4.0.9
@YuzuRyo61
YuzuRyo61 / Environment.txt
Created April 4, 2019 08:50
Misskey PostgreSQL beta version report file
===========
Environment Information
===========
Base OS: Ubuntu 18.04 (Bionic Beaver) [Vagrant version]
Vagrant Box Information: https://app.vagrantup.com/ubuntu/boxes/bionic64
Package version:
nodejs: 11.13.0
npm: 6.7.0
yarn: 1.15.2
redis: 4.0.9
@YuzuRyo61
YuzuRyo61 / eclipse.desktop
Created January 22, 2019 12:53
Eclipseを公式経由でインストールしたときにデスクトップエントリ(ショートカット)をいつも忘れてしまうので備忘録として。
[Desktop Entry]
Name=Eclipse
Comment=Extensible Tool Platform and Java IDE
Exec=/usr/local/eclipse/eclipse
Path=/usr/local/eclipse
Terminal=false
Type=Application
StartupNotify=true
Icon=/usr/local/eclipse/icon.xpm
Categories=Development;TextEditor;Utility;
{"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36","environment":{"networkUserAgent":"Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3559.0 Mobile Safari/537.36","hostUserAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36","benchmarkIndex":407},"lighthouseVersion":"4.0.0-alpha.1","fetchTime":"2019-01-13T15:59:11.780Z","requestedUrl":"https://yuzulia.github.io/","finalUrl":"https://yuzulia.github.io/","runWarnings":["Chrome extensions negatively affected this page's load performance. Try auditing the page in incognito mode or from a Chrome profile without extensions."],"runtimeError":{"code":"NO_ERROR","message":""},"audits":{"is-on-https":{"id":"is-on-https","title":"Uses HTTPS","description":"All sites should be protected with HTTPS, even ones that don't handle sensitive data. HTTPS prevents intruder