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
[Unit] | |
Description=Minecraft User Monitor | |
After=network.target | |
[Service] | |
Type=simple | |
WorkingDirectory=/var/tmp/minecraft_user_monitor | |
ExecStart=/var/tmp/minecraft_user_monitor/run.sh | |
ExecStop=/bin/kill -TERM | |
Restart=always |
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 | |
usage_exit() { | |
echo "Usage: $0 [options] MPL_FILE" 1>&2 | |
echo "" 1>&2 | |
echo "options:" 1>&2 | |
echo " -i input source file" 1>&2 | |
echo " -d destination dir" 1>&2 | |
echo " -r output video resolution (default: 1280x720)" 1>&2 | |
echo " -s output video aspect (default: 16:9)" 1>&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 python | |
# -*- coding:utf-8 -*- | |
from __future__ import print_function | |
from motor import MotorDriver | |
from time import sleep | |
K = [10.0, 0.0] | |
CONTROLLERS = [] |
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
' activity diagram | |
@startuml{plantuml_act_flickr_api.png} | |
start | |
:ブラウザを開く; | |
partition ブラウザ操作 { | |
:https://www.flickr.com/services/apps/create/apply\nにアクセスする; | |
if (営利目的か?) then (yes) |
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 python2 | |
# -*- encoding:utf-8 -*- | |
from __future__ import print_function | |
import argparse | |
import datetime | |
import exifread | |
import flickrapi | |
import os | |
import sys |
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 python | |
import sys | |
import sqlalchemy as sa | |
if __name__ == "__main__": | |
engine = sa.create_engine( | |
"mysql+pymysql://{USER}:{PASS}@{HOST}/{DB}?charset=utf8".format( | |
USER=sys.argv[1], PASS=sys.argv[2], HOST=sys.argv[3], DB=sys.argv[4])) |
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
import asyncio | |
import aiohttp | |
import gzip | |
from io import BytesIO | |
import numpy as np | |
import pandas as pd | |
import requests | |
class MnistWrapper(object): |
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
telnet 192.168.1.1 | |
# |