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" => "",
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;