Skip to content

Instantly share code, notes, and snippets.

View book000's full-sized avatar
👀
record User(String nickName, String screenName, Location country){}

Tomachi book000

👀
record User(String nickName, String screenName, Location country){}
View GitHub Profile
NOW_PROCESS=`ps aux | grep $PPID | grep sshd | awk '{ print $11 }'`
if [ "$NOW_PROCESS" = sshd: ]; then
mkdir -p /var/log/scripts/`whoami`/
ttyName=`tty | sed -e 's/\/dev\///g'`
ipAddress=`w -i | grep $ttyName | awk '{ print $3; }'`
todayDate=`date '+%Y%m%d'`
script -afq /var/log/scripts/`whoami`/${ipAddress}_${todayDate}.log
exit
fi
@book000
book000 / ci.yml
Created June 25, 2021 14:23
個人用 Python 3.9 GitHub Actions CI
name: Python
on: [push, pull_request]
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

Pixivの公開ブックマークを全部プライベートに変更する

setInterval(() => {
    setTimeout(() => {document.querySelector(".sc-1dg0za1-0").click()}, 100)
    setTimeout(() => {document.querySelector(".sc-13ywrd6-6").click()}, 500)
    setTimeout(() => {document.querySelector("div.sc-1ij5ui8-0:nth-child(4) > div:nth-child(1) > div:nth-child(1)").click()}, 1000)
}, 2000)
/*
MIT License
Copyright (c) 2021 Tomachi
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@book000
book000 / Package build.run.xml
Last active May 18, 2021 04:56
IntelliJでSpigotの開発環境を作る実行構成(すべてのファイルを .run ディレクトリに配置, buildAndTest.batをShiftJIS,CRLFにするのを忘れずに)
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Package build" type="MavenRunConfiguration" factoryName="Maven">
<MavenSettings>
<option name="myGeneralSettings" />
<option name="myRunnerSettings" />
<option name="myRunnerParameters">
<MavenRunnerParameters>
<option name="profiles">
<set />
</option>
@book000
book000 / ticktick-japanese-font.user.css
Created April 8, 2021 22:53
ticktick.com で中華フォントが使われてしまう問題を解決する
/* ==UserStyle==
@name Resolve an issue with Chinese fonts being used on ticktick.com
@namespace tomacheese.com
@version 1.0.0
@updateURL https://gist.github.com/book000/9913ba81d18ea9075c3bda70249a4178/raw/ticktick-japanese-font.user.css
@description ticktick.com で中華フォントが使われてしまう問題を解決する
@author Tomachi (book000)
==/UserStyle== */
@-moz-document domain("ticktick.com") {
* {
@book000
book000 / github-autoload-project-new-activity.user.js
Last active March 31, 2021 07:21
GitHub Autoload Project New Activity
// ==UserScript==
// @name GitHub Autoload Project New Activity
// @namespace https://tomacheese.com
// @version 0.1
// @description GitHub Autoload Project New Activity
// @author Tomachi
// @match https://github.com/*/projects/*
// @icon https://www.google.com/s2/favicons?domain=github.com
// @updateURL https://gist.github.com/book000/b58447b7a6b4626af59dbb97bead8ab9/raw/github-autoload-project-new-activity.user.js
// @grant none
@book000
book000 / using_ports.sh
Last active February 21, 2021 18:21
使用しているポート一覧を表示するワンライナーコード
sudo lsof -iTCP -sTCP:LISTEN -P | sed 's/NAME//g' | awk '{ print $9 }' | sed 's/localhost/*/g' | sed 's/*://g' | sort --numeric-sort | uniq
@book000
book000 / google.com-hideAddress.user.css
Last active March 7, 2023 09:12
Chrome/Firefoxの拡張機能であるStylusを使用して、google.comの検索ページに表示される住所情報を表示させないCSS
/* ==UserStyle==
@name Delete "Address" from google.com
@namespace tomacheese.com
@version 1.0.0
@updateURL https://gist.github.com/book000/9c07fe6c13d32427dd482a9554234c6a/raw/google.com-hideAddress.user.css
@description Chrome/Firefoxの拡張機能であるStylusを使用して、google.comの検索ページ末尾に表示される住所情報を表示させないCSS
@author Tomachi (book000)
==/UserStyle== */
@-moz-document domain("google.com") {
#swml {
@book000
book000 / amazon.co.jp-stylus.user.css
Last active August 12, 2021 00:49
Chrome/Firefoxの拡張機能であるStylusを使用して、Amazon上に表示される「住所情報」と「登録名情報」を表示させないCSS
/* ==UserStyle==
@name Delete "Address" and "Name" from Amazon.co.jp
@namespace tomacheese.com
@version 1.0.2
@updateURL https://gist.github.com/book000/37d74006dbffc88f69cd87a8c686518b/raw/amazon.co.jp-stylus.user.css
@description Chrome/Firefoxの拡張機能であるStylusを使用して、Amazon上に表示される「住所情報」と「登録名情報」を表示させないCSS
@author Tomachi (book000)
==/UserStyle== */
@-moz-document domain("amazon.co.jp") {
#nav-global-location-slot {