Skip to content

Instantly share code, notes, and snippets.

View abyssluke's full-sized avatar

abyssluke

View GitHub Profile
@abyssluke
abyssluke / base64kana.php
Last active February 7, 2021 07:38
Base64を適当にひらがなに置き換えてしまうやーつ
<?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 / SylpheedMailBackup.service
Last active November 5, 2018 09:20
Mail Backup Program
[Unit]
Description=Sylpheed Mail Spool Backup
[Service]
Type=oneshot
ExecStart=/path/to/mailbackup.sh

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 August 2, 2016 20:45
Learn sylfilter/bsfilter & Submit to spamcop(for Sylpheed)
#!/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
# 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 November 5, 2015 09:02
rita.xyz update script
#!/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 August 29, 2015 13:57
Monacoin RPC test
<!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 March 17, 2014 09:59
mecab dict make with auto scoring
#!/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;