auto-complete-blackets.el
: Auto complete corresponding blacketsuse-source-han-code-jp.el
: Use Source Han Code JP font
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
# Delete all Picasa albums created by the user | |
# Note: Autogenerated albums such as Auto Backup and Instant Upload can not be deleted | |
# Your Google Account to manage | |
GOOGLE_ACCOUNT=<REPLACE_WITH_YOURS> | |
# Your Gooel Developer API Credentials | |
# Go to https://console.developers.google.com to register your project | |
CLIENT_ID=<REPLACE_WITH_YOURS> | |
CLIENT_SECRET=<REPLACE_WITH_YOURS> |
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
SRC = | |
OPTS = --latex-engine=lualatex -t beamer -V fontsize:10pt -V colortheme:beaver -H h-luatexja.tex | |
all: $(SRC:.md=.pdf) | |
$(SRC:.md=.pdf): $(SRC) | |
iconv -f UTF-8-MAC -t UTF-8 $(@:.pdf=.md) | pandoc -o $@ $(OPTS) | |
open $@ | |
clean: |
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
# Apache httpd | |
- input_type: log | |
paths: | |
- /var/log/httpd/access_log.js | |
document_type: apache | |
json.keys_under_root: true | |
json.add_error_key: true | |
# Squid | |
- input_type: log |
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
flag="0" | |
while read x | |
do | |
if [[ $x == "-----"* ]]; then | |
if [ $flag == "0" ] | |
then flag="1" | |
else flag="0" | |
fi | |
else | |
if [ $flag == "0" ] |
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
# -*- coding: utf-8 -*- | |
import sys | |
import codecs | |
import csv | |
import json | |
# Modify the `fieldnames` with the column names of the CSV input | |
fieldnames = tuple(range(200)) | |
csvfile = open(sys.argv[1], 'rU') |
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
tail -n +2 %1 | awk 'BEGIN{FS = ","}{print "{\"index\": { }}\n{ \"@timestamp\" : \""$1"\", \"field2\": \""$2"\", \"field3\":" $3 "}" }' > %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
T="T" | |
for d in `seq -f "%02g" 1 30`; do | |
for m in `seq -f "%02g" 0 23`; do | |
for h in `seq -f "%02g" 0 59`; do | |
echo "{\"index\" : {} }" | |
echo "{\"@timestamp\": \"2016-04-$d$T$m:$h:00Z\", \"status\": 100}" | |
done | |
done | |
done |
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
# -*- coding: utf-8 -*- | |
import sys | |
import codecs | |
import csv | |
import json | |
csvfile = open(sys.argv[1], 'rU') | |
header_reader = csv.reader(csvfile) | |
header = next(header_reader) | |
reader = csv.DictReader(csvfile, header) |
OlderNewer