Skip to content

Instantly share code, notes, and snippets.

@abyssluke
abyssluke / base64kana.php
Last active Feb 7, 2021
Base64を適当にひらがなに置き換えてしまうやーつ
View base64kana.php
<?php
class base64kana {
const CNV_TABLE = array(
"A" => "あ", "B" => "い", "C" => "う", "D" => "え", "E" => "お",
"F" => "か", "G" => "き", "H" => "く", "I" => "け", "J" => "こ",
"K" => "さ", "L" => "し", "M" => "す", "N" => "せ", "O" => "そ",
"P" => "た", "Q" => "ち", "R" => "つ", "S" => "て", "T" => "と",
"U" => "な", "V" => "に", "W" => "ぬ", "X" => "ね", "Y" => "の",
"Z" => "は", "a" => "ひ", "b" => "ふ", "c" => "へ", "d" => "ほ",
"e" => "ま", "f" => "み", "g" => "む", "h" => "め", "i" => "も",
@abyssluke
abyssluke / fxxkingreen.js
Created Jan 15, 2021
あー一面のクソミドリ(ヤホーシブトク専用)
View fxxkingreen.js
if(document.location.href.indexOf("https://toku.yahoo.co.jp/history")===0){
var res=document.getElementsByClassName("result");
for(i=0;i < res.length;i++){
var rsr=res[i].innerHTML;
rsr=rsr.replace("はずれ","クソミドリ");
document.getElementsByClassName("result")[i].innerHTML=rsr;
}
}
View SylpheedMailBackup.service
[Unit]
Description=Sylpheed Mail Spool Backup
[Service]
Type=oneshot
ExecStart=/path/to/mailbackup.sh
View keybase.md

Keybase proof

I hereby claim:

  • I am abyssluke on github.
  • I am abyssluke (https://keybase.io/abyssluke) on keybase.
  • I have a public key ASDGyxpn1pZnRIIYuKrOZfFgppla2XJFDT_RMivnlg5GuAo

To claim this, I am signing this object:

@abyssluke
abyssluke / gospamcop.sh
Last active Aug 2, 2016
Learn sylfilter/bsfilter & Submit to spamcop(for Sylpheed)
View gospamcop.sh
#!/bin/bash
if ls *.eml > /dev/null 2>&1; then
echo "Go spamcop!"
else
echo "404 eml not found"
exit 1
fi
echo "sylfilter status:"
sylfilter *.eml
View Dockerfile
# Run tor browser in a container
#
# docker run -v /tmp/.X11-unix:/tmp/.X11-unix \
# -v /dev/snd:/dev/snd \
# -e DISPLAY=unix$DISPLAY \
# jess/tor-browser:alpha
#
FROM debian:jessie
#Original MAINTAINER Jessica Frazelle <jess@docker.com>
#Modified by abyssluke <abyssluke@users.noreply.github.com>
@abyssluke
abyssluke / update-rita.xyz.sh
Last active Nov 5, 2015
rita.xyz update script
View update-rita.xyz.sh
#!/bin/bash
SYNCPATH=/path/to/rita.xyz
S3BUCKET=rita.xyz
if [ ! -z $1 ]; then
if [ $1 != "--force" ]; then
echo "${0##*/} : Invalid options"
echo "${0##*/} : To force update, please use --force option."
exit 1
fi
@abyssluke
abyssluke / monatest.php
Last active Aug 29, 2015
Monacoin RPC test
View monatest.php
<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8"/>
<title>オマエモナー</title>
</head>
<body>
<h1>Monacoinと通信してみるよ!<a name="top"></a></h1>
<?php
// 一部https://github.com/monacoinproject/transactionsampleのぱくりです
@abyssluke
abyssluke / makedic.sh
Created Mar 17, 2014
mecab dict make with auto scoring
View makedic.sh
#!/bin/sh
php scoring.php
/usr/local/libexec/mecab/mecab-dict-index -d/usr/local/lib64/mecab/dic/ipadic -u mecabuser.dic -f utf8 -t utf8 mecabuser.tmp
echo "cleaning temporary file"
rm mecabuser.tmp
exit;