Skip to content

Instantly share code, notes, and snippets.

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

mohemohe mohemohe

🍣
さーもん
View GitHub Profile
@mohemohe
mohemohe / butimili.sh
Last active January 25, 2019 06:46
#!/bin/bash
CMDS='
curl
jq
'
for cmd in $CMDS; do {
if [[ ! $(command -v "$cmd") ]]; then {
echo "'$cmd' コマンドがありません" 1>&2
✘ mohemohe@Arietta  ~ 
❯ ping -4 -c 10 google.co.jp [23:23:09]
PING google.co.jp (172.217.26.3) 56(84) bytes of data.
64 bytes from nrt20s02-in-f3.1e100.net (172.217.26.3): icmp_seq=1 ttl=56 time=5.18 ms
64 bytes from nrt20s02-in-f3.1e100.net (172.217.26.3): icmp_seq=2 ttl=56 time=4.82 ms
64 bytes from nrt20s02-in-f3.1e100.net (172.217.26.3): icmp_seq=3 ttl=56 time=4.75 ms
64 bytes from nrt20s02-in-f3.1e100.net (172.217.26.3): icmp_seq=4 ttl=56 time=4.62 ms
64 bytes from nrt20s02-in-f3.1e100.net (172.217.26.3): icmp_seq=5 ttl=56 time=4.79 ms
64 bytes from nrt20s02-in-f3.1e100.net (172.217.26.3): icmp_seq=6 ttl=56 time=4.73 ms
64 bytes from nrt20s02-in-f3.1e100.net (172.217.26.3): icmp_seq=7 ttl=56 time=4.66 ms
✘ mohemohe@Arietta  ~ 
❯ ping -4 -c 10 google.co.jp [23:23:09]
PING google.co.jp (172.217.26.3) 56(84) bytes of data.
64 bytes from nrt20s02-in-f3.1e100.net (172.217.26.3): icmp_seq=1 ttl=56 time=5.18 ms
64 bytes from nrt20s02-in-f3.1e100.net (172.217.26.3): icmp_seq=2 ttl=56 time=4.82 ms
64 bytes from nrt20s02-in-f3.1e100.net (172.217.26.3): icmp_seq=3 ttl=56 time=4.75 ms
64 bytes from nrt20s02-in-f3.1e100.net (172.217.26.3): icmp_seq=4 ttl=56 time=4.62 ms
64 bytes from nrt20s02-in-f3.1e100.net (172.217.26.3): icmp_seq=5 ttl=56 time=4.79 ms
64 bytes from nrt20s02-in-f3.1e100.net (172.217.26.3): icmp_seq=6 ttl=56 time=4.73 ms
64 bytes from nrt20s02-in-f3.1e100.net (172.217.26.3): icmp_seq=7 ttl=56 time=4.66 ms
@mohemohe
mohemohe / soundcloud.nsfw.user.css
Created November 16, 2018 07:04
SoundCloud NSFW
.playableTile__artwork,
.selectionPlaylistBanner__artwork,
.soundBadge__artwork,
.userBadgeListItem__artwork,
.sound__artwork,
.userBadge__avatar,
.playbackSoundBadge__avatar,
.commentItem__avatar,
.usersList__item {
filter: blur(4px) grayscale(1);
@mohemohe
mohemohe / keybase.md
Created September 14, 2018 04:58
keybase.md

Keybase proof

I hereby claim:

  • I am mohemohe on github.
  • I am mohemohe (https://keybase.io/mohemohe) on keybase.
  • I have a public key whose fingerprint is 982B 99A0 AD7A F34A 522A E361 ABA4 B7AB 92DE 8243

To claim this, I am signing this object:

// ==UserScript==
// @name maud.io NSFW
// @namespace net.ghippos.hide.nsfw.io.maud.mstdn
// @version 1.1
// @description FUCK TWITTER
// @author mohemohe <mohemohe@ghippos.net>
// @match https://mstdn.maud.io/*
// @grant none
// ==/UserScript==
@mohemohe
mohemohe / プロモツイート非表示.user.js
Last active September 1, 2018 04:20
プロモツイート非表示 user js
// ==UserScript==
// @name プロモツイート非表示
// @namespace net.ghippos.delete.twitter.promo
// @version 1.1
// @description FUCK TWITTER
// @author mohemohe <mohemohe@ghippos.net>
// @match https://mobile.twitter.com/*
// @grant none
// ==/UserScript==
@mohemohe
mohemohe / install-pleiades.sh
Last active June 21, 2020 08:18
LinuxのJetbrains系らくらくPleiadesインストーラー
#!/bin/bash
set -xe;
TMP_DIR='/tmp/pleiades'
TARGET_DIR='/opt/src/pleiades'
APP_DIR="${HOME}/.local/share/JetBrains/Toolbox/apps"
rm -rf "${TMP_DIR}"
mkdir -p "${TMP_DIR}"
cd "${TMP_DIR}"
@mohemohe
mohemohe / mkalpinecontainer
Created April 10, 2018 01:46
Alpine Linuxをsystemd-nspawnで動かす
#!/bin/bash
MIRROR=http://ftp.tsukuba.wide.ad.jp/Linux/alpine
VERSION=edge
if [ $UID -ne 0 ]; then
echo "rootじゃなきゃやだ" >&2
exit 1
fi
@mohemohe
mohemohe / install_byobu_yum.sh
Created January 15, 2018 11:15 — forked from ikegami-yukino/install_byobu_yum.sh
Install byobu to CentOS and Amazon Linux
sudo yum install byobu -y --enablerepo=epel-testing