Skip to content

Instantly share code, notes, and snippets.

View mohemohe's full-sized avatar
🍣
さーもん

mohemohe mohemohe

🍣
さーもん
View GitHub Profile
@mohemohe
mohemohe / startx
Created June 16, 2020 08:26
WSL2でxfceを使う
#!/bin/bash
cd "${HOME}"
if [ ! -z "$(pidof xfce4-session)" ]; then
exit 1
fi
export DISPLAY="$(cat /etc/resolv.conf | grep nameserver | awk '{print $2; exit;}'):0.0";
export LANG=ja_JP.UTF-8
;;
;; Emulate_Scrolling_Middle_Button.ahk
;; Author: Erik Elmore <erik@ironsavior.net>
;; Version: 1.1 (Aug 16, 2005)
;;
;; Enables you to use any key with cursor movement
;; to emulate a scrolling middle button. While
;; the TriggerKey is held down, you may move the
;; mouse cursor up and down to send scroll wheel
;; events. If the cursor does not move by the
Domain
shopingmall.srl Delete
104.27.172.201 (from shopingmall.srl) Delete
104.27.173.201 (from shopingmall.srl) Delete
2606:4700:3033::681b:adc9 (from shopingmall.srl) Delete
2606:4700:3033::681b:acc9 (from shopingmall.srl) Delete
fashion-buy.in.net Delete
104.18.58.207 (from fashion-buy.in.net) Delete
104.18.59.207 (from fashion-buy.in.net) Delete
2606:4700:3031::6812:3bcf (from fashion-buy.in.net) Delete
@mohemohe
mohemohe / say.sh
Last active February 21, 2022 06:25
voiceroid_daemon say
#!/bin/bash
BASE_URL=http://172.16.34.56:8080
#=====================================
function _exit() {
exit 1
}
@mohemohe
mohemohe / deny_pom.sh
Last active June 8, 2020 14:20
ユーザー作成スパムをsuspendする
#!/bin/bash
#### require
# curl
# jq
# seq
#### config
# 最後に/を含めない
MASTODON_BASE_URL=https://mstdn.plusminus.io
@mohemohe
mohemohe / custom.css
Last active July 28, 2020 02:01
mstdn.plusminus.ioのカスタムCSS
.video-player__volume {
display: inline-flex !important;
}
a[href*="/web/accounts"]::before {
content: attr(title);
font-weight: bold;
color: white;
}
@mohemohe
mohemohe / index.mongo.js
Last active January 30, 2020 16:43
kokorobot hubot -> lxbot マイグレ
function pad(n) {
return ("00" + n).slice(-2);
}
use lxbot;
db.brain.find({}).toArray().forEach(doc => {
let key = doc.key;
let value = doc.value;
// 社会
a[href*="/following"]::after {
content: "監視対象";
color: #9baec8;
}
a[href*="/follower"]::after {
content: "変態";
color: #9baec8;
}
@mohemohe
mohemohe / PKGBUILD
Created December 2, 2019 02:27
fcitx-mozc-neologd-ut+ut2 2019/12/02
# Maintainer: Yang Niao <ksmt4699 at gmail dot com>
# Contributor: MASAKI Haruka <yek at reasonset dot net>
# Contributor: UTUMI Hirosi <utuhiro78 att yahoo dott co dott jp>
# Contributor: Felix Yan <felixonmars@gmail.com>
# Contributor: ponsfoot <cabezon dot hashimoto at gmail dot com>
## Mozc compile option
_bldtype=Release
_mozcver=2.23.2815.102
@mohemohe
mohemohe / virtualbox.5s.sh
Last active November 15, 2019 07:09
VBoxManage bitbar or kargos
#!/bin/bash -e
PAUSE="/tmp/__bitbar_virtualbox_$(whoami)"
function start_watch() {
rm -f "$PAUSE"
exit $?
}
function pause_watch() {