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
#!/bin/sh | |
mkdir -p ~/.ssh | |
cat <<EOS >>~/.ssh/authorized_keys | |
ecdsa-sha2-nistp384 AAAAE2VjZHNhLXNoYTItbmlzdHAzODQAAAAIbmlzdHAzODQAAABhBC989H9RvLj9r2nxqj5cS8pN0fvcglmY/C/4bVbkOXufyMMvujbDr4ME5ba3rxsLJySavmkXtYt1v5+wDTiFC1gNHsIx3FYpI71hF61tWg/SpuIoOMyI82smszaFHq/eXw== aiotter@yubikey5c | |
EOS |
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
*://bleepcoder.com/* | |
*://ja.uwenku.com/* | |
*://www.webdevqa.jp.net/* | |
*://codehero.jp/* | |
*://www.sejuku.net/* | |
*://techacademy.jp/* | |
*://ichi.pro/* | |
*://qastack.jp/* |
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 python3 | |
# Copyright 2021 aiotter | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
# | |
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
# | |
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH T |
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 alpine:latest | |
ENV PYTHON_VER 3.8 | |
ENV HOME_LOCAL /root/.local | |
RUN apk update; \ | |
apk add --no-cache git curl bash build-base libffi-dev openssl-dev bzip2-dev zlib-dev readline-dev sqlite-dev | |
RUN mkdir -p /tmp/python-build; \ | |
cd /tmp/python-build || exit 1; \ |
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
{ | |
"title": "aiotter personal settings", | |
"rules": [ | |
{ | |
"description": "Caps_lock to control if pressed with other keys, to escape and set IME off if pressed alone.", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "caps_lock", |
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
#editor { | |
font-family: arial, sans-serif | |
} | |
#editor .CodeMirror .cm-comment, #editor .CodeMirror .cm-fenced-code, #editor .CodeMirror .cm-formatting-task { | |
font-family: Cica,'Liberation Mono',monospace; | |
} | |
#editor .cm-string { | |
text-decoration: underline; |
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 collections.abc import Mapping, MutableSequence | |
class FrozenObj: | |
def __getattr__(self, item): | |
if isinstance(self, Mapping): | |
return FrozenDict.__build(self[item]) | |
else: | |
raise AttributeError | |
def __getitem__(self, key): |
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 python3 | |
#coding:utf8 | |
import discord | |
from discord.ext import commands | |
class InviteDetector: | |
"""To detect invite, the bot has to have manage_guild permission for that guild""" | |
def __init__(self, bot): | |
self.bot = bot |