- sss
- ddd
- ccc
This file contains hidden or 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 | |
""" | |
Example application for the 'blessed' Terminal library for python. | |
This isn't a real progress bar, just a sample "animated prompt" of sorts that demonstrates the | |
separate move_x() and move_yx() capabilities, made mainly to test the `hpa' compatibility for | |
'screen' terminal type which fails to provide one, but blessed recognizes that it actually does, and | |
provides a proxy. | |
""" | |
from __future__ import print_function |
This file contains hidden or 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 pandas as pd | |
import numpy as np | |
from io import StringIO | |
""" | |
厚生労働省のデータによると、年代別の死亡率は以下の通り | |
ref. https://www.mhlw.go.jp/content/10906000/000649533.pdf | |
""" | |
death_rate = {0: 0.0, 10:0.0, 20:0.0, 30:0.1, 40:0.4, 50:1.0, 60:4.7, 70:14.2, 80: 28.3} |
This file contains hidden or 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 pandas as pd | |
import numpy as np | |
from io import StringIO | |
""" | |
厚生労働省のデータによると、年代別の死亡率は以下の通り | |
ref. https://www.mhlw.go.jp/content/10906000/000649533.pdf | |
""" | |
death_rate = {0: 0.0, 10:0.0, 20:0.0, 30:0.1, 40:0.4, 50:1.0, 60:4.7, 70:14.2, 80: 28.3} |
This file contains hidden or 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
from subprocess import PIPE | |
from subprocess import Popen | |
import re | |
import requests | |
from bs4 import BeautifulSoup | |
import re | |
import shlex | |
from pathlib import Path | |
from collections import namedtuple | |
from concurrent.futures import ThreadPoolExecutor |
This file contains hidden or 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 os |
This file contains hidden or 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
$ wget -q https://raw.githubusercontent.com/GINK03/softether_docker_wrapper/master/run_softether_vpn_server_on_docker.py -O /tmp/vpn.py && python3 /tmp/vpn.py | |
USERNAMEを指定してください:hogehoge | |
PASSWORDを指定してください:1223334444 | |
PSKのパスワードを指定してください:vpn | |
3f98a1d924124c5fb1abd119d151bc2c95cb3fb76bdbfd64804e6c5ba42949b9 |
This file contains hidden or 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
USERNAME = input('USERNAMEを指定してください:') | |
PASSWORD = input('PASSWORDを指定してください:') | |
PSK = input('PSKのパスワードを指定してください:') | |
query = \ | |
['docker', | |
'run', | |
'-d', | |
'--cap-add', | |
'NET_ADMIN', |