Skip to content

Instantly share code, notes, and snippets.

View sweshelo's full-sized avatar
👋

Sweshelo sweshelo

👋
View GitHub Profile
@sweshelo
sweshelo / hide-left-side-bar.js
Created November 18, 2024 13:37
Claudeの左サイドバーウザすぎ.js
// ==UserScript==
// @name Hide Left-side bar
// @namespace http://tampermonkey.net/
// @version 2024-11-18
// @description Claudeのウザすぎる左サイドバーを消す
// @author sweshelo
// @match https://claude.ai/chat/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=claude.ai
// @grant none
// ==/UserScript==
@sweshelo
sweshelo / free.js
Created August 30, 2024 04:30
freee人事労務 一括打刻
/** FREEE CLOCK IN
* @sweshelo
* 人事労務freeeの勤怠レコードを1ヶ月分(平日のみ)まとめて入力します
* ブラウザの開発者ツールに貼り付けて動かしてください
*/
/* 設定 ここから */
// 企業ID: 開発者ツールで正当なリクエストのヘッダ `X-Company-Id` を参照
const CompanyId = '0000000';
@sweshelo
sweshelo / main.js
Created March 9, 2023 09:45
KONAMIのゲーム稼働状況をCSVにする
var gameKey = 'CCJ' //ここに収集対象のゲームのキー名を入れる
var list = []
Promise.all([...Array(47).keys()]
.map(pref => fetch(`https://p.eagate.573.jp/game/facility/search/p/list.html?gkey=${gameKey}&paselif=false&area=AR-01&pref=JP-${(pref + 1).toString().padStart(2, '0')}&finder=area`)
.then(e => e.text())
.then(e => {
const dom = new DOMParser().parseFromString(e, "text/html")
list.push({id: pref+1, shops: [...dom.querySelectorAll('.cl_shop_bloc')].map((shop) => {
return {
@sweshelo
sweshelo / how-to.md
Created June 28, 2022 08:14
オレオレ認証局でSSL証明書に署名

CA

CAの秘密鍵 生成

以下のコマンドを実行し、CA用の秘密鍵を生成する

openssl genrsa -aes128 2048 > ca.key

パスフレーズのない鍵を生成するには、代わりに以下を利用する

openssl genrsa 2024 > ca.key
@sweshelo
sweshelo / env.ps1
Created January 14, 2022 12:55
Windows アプリケーションインストール
$BaseList = @(
@{
Name="Scoop"
Alias="scoop"
Source="web"
Command="iwr -useb get.scoop.sh | iex"
},
@{
Name="VisualStudio Code"
Alias="code"
@sweshelo
sweshelo / getImages.js
Last active October 28, 2021 16:47
でんこの立ち絵をダウンロードするスクリプト
const parseURL = (dencohName)=>{
const version = 'v=2021102601';
const wrapping = 'default';
const size = 'large';
const part = 'face';
const emotion = 'smile';
const domain = document.domain;
return "https://"+domain+"/"+version+"/img/partner/"+dencohName+"/"+wrapping+"/"+size+"/"+part+"_"+emotion+".png";
@sweshelo
sweshelo / hide.js
Created September 29, 2021 12:30
Hide IP
// ==UserScript==
// @name Hide IP
// @version 0.1
// @description Hide your IP address
// @author Sweshelo
// @match https://sns-sakura.jp/*
// @icon https://www.google.com/s2/favicons?domain=sns-sakura.jp
// @grant none
// ==/UserScript==
@sweshelo
sweshelo / .tmux.conf
Created May 14, 2021 07:10
my tmux config
# tmuxを256色表示できるようにする
set-option -g default-terminal screen-256color
set -g terminal-overrides 'xterm:colors=256'
# prefixキーをC-qに変更
set -g prefix C-q
# C-bのキーバインドを解除
unbind C-b
@sweshelo
sweshelo / EXECUTE.bat
Created March 4, 2021 05:26
自身のファイル名と同一のPowerShellOnelinerを実行するbat
rem 自身のファイル名と同一のPowerShellOnelinerを実行するbat
powershell -NoProfile -ExecutionPolicy Unrestricted %~dpn0.ps1