Skip to content

Instantly share code, notes, and snippets.

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

mohemohe mohemohe

🍣
さーもん
View GitHub Profile
@mohemohe
mohemohe / override.user.css
Created November 22, 2017 08:29
overrides [Google - udscbt | Userstyles.org](https://userstyles.org/styles/138068/google-udscbt "Google - udscbt | Userstyles.org")
#rhs {
display: none !important;
}
#center_col {
min-width: calc(100vw - 320px) !important;
max-width: calc(100vw - 320px) !important;
}
#fbar {
@mohemohe
mohemohe / PKGBUILD
Created November 16, 2017 08:45
ttf-cica
# Maintainer: mohemohe <mohemohe(at)ghippos.net>
pkgname=ttf-cica
pkgver=2.0.4
pkgrel=1
pkgdesc="Composite font with Ubuntu Mono and Rounded Mgen+."
url="https://github.com/miiton/Cica"
license=('custom')
arch=('any')
depends=('fontconfig' 'xorg-font-utils')
@mohemohe
mohemohe / kokoro.io.js
Last active October 23, 2017 13:03
こぴぺした
function checkUnread() {
const unreadsArray = document.querySelectorAll('.channel_name .badge.pull-right');
let counter = 0;
unreadsArray.forEach((value, index, array) => {
const innterString = value.innerHTML;
const parseData = parseInt(innterString, 10);
if(!isNaN(parseData)) {
counter += parseData;
}
@mohemohe
mohemohe / LICENSE
Last active October 29, 2017 16:19
心.io | require: curl, jq
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2017 mohemohe <mohemohe@ghippos.net>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@mohemohe
mohemohe / arch2antergos.docker.sh
Last active September 24, 2017 17:06
arch2antergos.docker.sh
#!/bin/bash
curl https://www.archlinux.org/mirrorlist/all/ | grep .jp/ | cut -d'#' -f2 >| /etc/pacman.d/mirrorlist
cp /etc/pacman.conf /etc/pacman.conf.orig
cat <<EOS >> /etc/pacman.conf
[antergos]
SigLevel = Never
Server = http://mirror.antergos.jp/$repo/$arch
EOS
@mohemohe
mohemohe / anal.cpp
Created August 26, 2017 07:39
アナル
#include <iostream>
using namespace std;
int main(void){
for(char i = 65; i < 91; i++) {
string _(1, i);
cout << _ + "はアナルの" + _ + "!" << endl;
}
return 0;
}
@mohemohe
mohemohe / .zshrc
Created August 19, 2017 13:19
sshの接続先に応じてKDE Konsoleのプロファイルを変える
KONSOLE_PROFILE=
function precmd_preexec_ssh-iikanji() {
local CMD=${1}
local NEXT_PROFILE=
case "$CMD" in
*ssh*prd* ) {
NEXT_PROFILE=ArgonautRed
} ;;
@mohemohe
mohemohe / .zshrc
Created August 19, 2017 13:04
ArchLinuxのzshrc
INIT_VERBOSE=true
INDICATOR_MESSAGE=
INDICATOR_PID=
function indicator() {
trap "echo -en '\e[1A'; for ((i=0; i<`tput cols`; i++)); do { printf ' ' } done; kill $INDICATOR_PID &> /dev/null; exit 0" INT
while [[ 0 ]]
do {
eval 'echo -e " ⠋ $INDICATOR_MESSAGE\e[1A"'; sleep 0.05;
eval 'echo -e " ⠙ $INDICATOR_MESSAGE\e[1A"'; sleep 0.05;
@mohemohe
mohemohe / ssh-permission-fix.sh
Created August 1, 2017 02:17
SSHのパーミッションがぶっ壊れて辛かった
#!/bin/zsh
find ~/.ssh -type d -exec chmod 700 {} +
find ~/.ssh -type f -exec chmod 400 {} +
find ~/.ssh -name '*.sshconf' | xargs -I_ chmod 600 _
chmod 600 ~/.ssh/config
@mohemohe
mohemohe / github-pandoc.css
Created May 24, 2017 02:06 — forked from dashed/github-pandoc.css
GitHub-like CSS for pandoc standalone HTML files (perfect for HTML5 output). Based on Marked.app's GitHub CSS. Added normalize.css (v2.1.3) in the prior to GitHub css.
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
/**
* Correct `block` display not defined in IE 8/9.
*/