This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -ue | |
INFILE=$1 | |
if [ $# -ge 2 ]; then | |
OUTFILE=$2 | |
else | |
OUTFILE=nup-$1 | |
fi | |
pdfjam $INFILE --a5paper --reflect true -o /dev/stdout | pdfjam /dev/stdin --nup 2x1 --a4paper --landscape --reflect true -o $OUTFILE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- old_venv/bin/activate.fish 2018-11-28 15:29:12.939054337 +0900 | |
+++ new_venv/bin/activate.fish 2020-02-19 09:58:19.751090341 +0900 | |
@@ -13,10 +13,12 @@ function deactivate -d "Exit virtualenv | |
if test -n "$_OLD_FISH_PROMPT_OVERRIDE" | |
functions -e fish_prompt | |
set -e _OLD_FISH_PROMPT_OVERRIDE | |
- functions -e fish_prompt | |
- set -e _OLD_FISH_PROMPT_OVERRIDE | |
- functions -c _old_fish_prompt fish_prompt | |
- functions -e _old_fish_prompt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
あまりにも翠星石が好きすぎたから地域の家出少女の掲示板探して12万用意して釣った19歳無職女に1週間翠星石コス&口調マネさせて暮らさせた最終的に4日目で逃げられたけど…… | |
翠星石としては駄目だったよ | |
そもそも衣装はLLで女のサイズはMでブカブカ | |
タバコ吸うし茶髪と金髪混じってるしリスカしてるし | |
マトモに演じられるタマではなかった | |
でも2日目あたりの「◯◯さん冷蔵庫のアイス食べていいんですぅ?」は今も心に残ってる | |
ていうか「逃げたかったら別に逃げてもいいよ」って言ってたし |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
from concurrent.futures import ThreadPoolExecutor | |
from datetime import datetime | |
import json | |
import logging | |
import os | |
import uuid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
んわ笑ってる゜!ま、よや8ZZp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
from datetime import date, timedelta | |
START, END = date(2019, 4, 1), date(2020, 4, 1) | |
BURNABLE_DAY = [date(2019, 12, 28)] | |
HOLIDAY = [date(2019, 12, 30), date(2019, 12, 31), date(2020, 1, 1), date(2020, 1, 2)] | |
def main(*args, **kwargs): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -Cue | |
lz4jsoncat $(ls $HOME/.mozilla/firefox/*.default/bookmarkbackups/*.jsonlz4 | tail -n1) > ${HOME}/.bookmarks.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -eu | |
FEED="http://news.ceek.jp/search.cgi" | |
OUTPUT_HTML="$1" | |
curl -Ss --retry 5 "$FEED" | \ | |
xmllint --xpath "//table[3]//td[2]/table/tr[3]/td/table//td[1]//a" --html - 2>/dev/null | nkf -w | \ | |
sed -e "s/<a/<li><a/g" | \ | |
tr -d "\n" | tr -d "\t" | \ | |
sed -e "s/ *</</g" | \ | |
python3 -c "print('<!DOCTYPE html><html><head><meta charset=\"utf-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"><title>CEEK.JP NEWS</title><style>li{{margin: 1em 0;}}</style></head><body><p><strong>$(date -Iseconds)</strong></p><ol>{}</ol></body></html>'.format(input()))" > $OUTPUT_HTML |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -Cue | |
FONTSIZE='31' | |
PRINTER='ZJ-58' | |
if [ "$#" -lt 1 ]; then | |
echo "usage: $0 PRINT_TO_TEXT" 1>&2 | |
exit 1 | |
fi | |
if ! type convert 2>/dev/null 1>/dev/null || ! type identify 2>/dev/null 1>/dev/null; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[a4paper]{bxjsarticle} | |
\geometry{left=5truemm,top=5truemm,right=5truemm,bottom=5truemm} | |
\usepackage{luatexja} | |
\usepackage[sourcehan]{luatexja-preset} | |
\usepackage{luatexja-otf} | |
\usepackage{tikz} | |
\usetikzlibrary{shapes.geometric,positioning,arrows.meta} | |
\newcommand{\nodesize}{0.25\textwidth} | |
\newcommand{\nodecolor}{gray} |