Skip to content

Instantly share code, notes, and snippets.

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

mohemohe mohemohe

🍣
さーもん
View GitHub Profile
@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() {
wait.....
fetch '@Naomii1@pawoo.net'
not found. skip.
wait.....
fetch '@Naomii2@pawoo.net'
not found. skip.
wait.....
fetch '@Naomii3@pawoo.net'
not found. skip.
wait.....
@mohemohe
mohemohe / Ubuntu18.04.sh
Last active July 30, 2019 04:26
ブチミリ標準StackScript
#!/bin/bash
TARGET_USER=mohemohe
groupadd -f wheel
useradd -G wheel -m -s /bin/bash ${TARGET_USER}
mkdir -p /home/${TARGET_USER}/.ssh
chmod 700 /home/${TARGET_USER}/.ssh
curl https://github.com/${TARGET_USER}.keys > /home/${TARGET_USER}/.ssh/authorized_keys
chmod 600 /home/${TARGET_USER}/.ssh/authorized_keys
chown ${TARGET_USER}: -R /home/${TARGET_USER}
// ==UserScript==
// @name Mastodon X Files
// @namespace mizle.net
// @description :thinking_face:
// @author Eai <eai@mizle.net>
// @license MIT
// @version 1.2.2
// @include https://*/web/*
// @grant GM.xmlHttpRequest
@mohemohe
mohemohe / mstdn.user.css
Last active April 4, 2019 06:27
Slack like Mastodon
/* ==UserStyle==
@name Slack like Mastodon
@namespace io.plusminus.mstdn.like.slack
@version 1.0.0
@description Slack like Mastodon
@author mohemohe
==/UserStyle== */
@-moz-document regexp("https://mstdn\\..*/web/?.*") {
@media(min-width:631px) {