Skip to content

Instantly share code, notes, and snippets.

View peacock0803sz's full-sized avatar
🍻
Chreees!!

Peacock peacock0803sz

🍻
Chreees!!
View GitHub Profile
@peacock0803sz
peacock0803sz / settings.json
Created July 7, 2018 05:15
VSCodeの設定
{
// editor
"editor.fontSize": 16,
"terminal.integrated.fontSize": 16,
"editor.scrollBeyondLastLine": false,
// scm
// workbench
"workbench.startupEditor": "newUntitledFile",
"workbench.iconTheme": "material-icon-theme",
'use strict';
const Slack = require('slack-node');
const request = require('request');
const fs = require('fs');
// 最初にimageフォルダ作成
try {
fs.mkdirSync('image');
} catch (e) {
// ignore
### Keybase proof
I hereby claim:
* I am peacock0803sz on github.
* I am peacock0803sz (https://keybase.io/peacock0803sz) on keybase.
* I have a public key ASCca9UN7lDX9LwkVkH4EQ09JvCnEzgHAAF9foFfZHyCCgo
To claim this, I am signing this object:
@peacock0803sz
peacock0803sz / 1827.log
Created February 5, 2019 09:42
heroku logs
2019-02-05T09:26:58.000000+00:00 app[api]: Build started by user [email protected]
2019-02-05T09:27:34.375327+00:00 heroku[bot.1]: Starting process with command `python main.py`
2019-02-05T09:27:34.988297+00:00 heroku[bot.1]: State changed from starting to up
2019-02-05T09:27:39.290332+00:00 heroku[bot.1]: Process exited with status 1
2019-02-05T09:27:39.094887+00:00 app[bot.1]: Traceback (most recent call last):
2019-02-05T09:27:39.094915+00:00 app[bot.1]: File "/app/.heroku/python/lib/python3.7/site-packages/selenium/webdriver/common/service.py", line 76, in start
2019-02-05T09:27:39.095377+00:00 app[bot.1]: stdin=PIPE)
2019-02-05T09:27:39.095394+00:00 app[bot.1]: File "/app/.heroku/python/lib/python3.7/subprocess.py", line 769, in __init__
2019-02-05T09:27:39.096199+00:00 app[bot.1]: restore_signals, start_new_session)
2019-02-05T09:27:39.096230+00:00 app[bot.1]: File "/app/.heroku/python/lib/python3.7/subprocess.py", line 1516, in _execute_child
@peacock0803sz
peacock0803sz / django-toolbelt
Last active July 27, 2019 18:03
django-logs
Installing initially failed dependencies…
[pipenv.exceptions.InstallError]: File "/home/peacock/.anyenv/envs/pyenv/versions/3.7.4/lib/python3.7/site-packages/pipenv/core.py", line 2611, in do_sync
[pipenv.exceptions.InstallError]: system=system,
[pipenv.exceptions.InstallError]: File "/home/peacock/.anyenv/envs/pyenv/versions/3.7.4/lib/python3.7/site-packages/pipenv/core.py", line 1253, in do_init
[pipenv.exceptions.InstallError]: pypi_mirror=pypi_mirror,
[pipenv.exceptions.InstallError]: File "/home/peacock/.anyenv/envs/pyenv/versions/3.7.4/lib/python3.7/site-packages/pipenv/core.py", line 859, in do_install_dependencies
[pipenv.exceptions.InstallError]: retry_list, procs, failed_deps_queue, requirements_dir, **install_kwargs
[pipenv.exceptions.InstallError]: File "/home/peacock/.anyenv/envs/pyenv/versions/3.7.4/lib/python3.7/site-packages/pipenv/core.py", line 763, in batch_install
[pipenv.exceptions.InstallError]: _cleanup_procs(procs, not blocking, failed_deps_queue, retry=
@peacock0803sz
peacock0803sz / docker-compose.yml
Last active March 21, 2020 18:12
factorio on docker
version: "3"
services:
factorio:
image: factoriotools/factorio:1.8
ports:
- "34197:34197/udp"
- "27015:27015/tcp"
volumes:
- "data:/factorio"
environment:
@peacock0803sz
peacock0803sz / map-gen-settings.json
Created March 21, 2020 18:04
config "rail world"
{
}
from random import choice
from typing import Generator
ZUN = "ズン"
DOKO = "ドコ"
KIYOSHI = "キ・ヨ・シ!"
def generate_stream() -> Generator[str, None, None]:
while True:
@peacock0803sz
peacock0803sz / ja.md
Last active July 22, 2021 07:47 — forked from terapyon/pyhack-camp-manual.md
pyhack合宿マニュアル

概要

  • 年に2回実施している、pyhack合宿の説明文書
  • 貸し切りで開催を前提にしている

施設・設備

インターネット回線

  • 宿にはBフレッツ光回線
@peacock0803sz
peacock0803sz / gsnet_ssh_scanner.py
Created September 12, 2021 05:22
gsnet_ssh_scanner.py
from collections.abc import Iterable
import csv
from io import StringIO
import urllib.request
import socket
import subprocess
REGISTERD_PORTS = (22,) + tuple(range(1024, 49151))
HOSTS_CSV = "https://scrapbox.io/api/table/Geek-SpaceBox/GSNet%E3%81%AE%E3%83%9B%E3%82%B9%E3%83%88%E4%B8%80%E8%A6%A7/hosts.csv"