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
version: "3" | |
services: | |
web: | |
build: ./web | |
ports: | |
- 20001:3000 | |
hls-proxy: | |
build: ./hls-proxy | |
ports: |
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 | |
racadm sslkeyupload -t 1 -f privkey.pem | |
racadm sslcertupload -t 1 -f cert.pem | |
racadm racreset |
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
docker-compose exec gitlab bash -c 'mkdir -p /opt/gitlab/sv/gitaly/log/ && cp /var/opt/gitlab/gitaly/config.toml /opt/gitlab/sv/gitaly/log/config' | |
docker-compose exec gitlab bash -c 'mkdir -p /opt/gitlab/sv/redis/log/ && cp /var/opt/gitlab/redis/redis.conf /opt/gitlab/sv/redis/log/config' | |
docker-compose exec gitlab bash -c 'mkdir -p /opt/gitlab/sv/postgresql/log/ && cp /var/opt/gitlab/postgresql/data/postgresql.conf /opt/gitlab/sv/postgresql/log/config' |
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
🌞 Morning 8 commits ▉░░░░░░░░░░░░░░░░░░░░ 4.3% | |
🌆 Daytime 49 commits █████▌░░░░░░░░░░░░░░░ 26.2% | |
🌃 Evening 96 commits ██████████▊░░░░░░░░░░ 51.3% | |
🌙 Night 34 commits ███▊░░░░░░░░░░░░░░░░░ 18.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
""" | |
Cloudflare DDNS python script | |
by Eunhak Lee (return0927) in 2020 | |
""" | |
import json | |
import logging | |
import urllib.request as request | |
import urllib.error |
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 discord | |
from discord.ext import commands | |
import constants | |
import asyncio | |
import traceback | |
if not discord.opus.is_loaded(): | |
discord.opus.load_opus("libopus-0.dll") | |
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
# 유클리드 호제법 | |
def euclidean_gcd(x, y): | |
while(y): | |
x, y = y, x % y | |
return x | |
# 재귀함수 | |
def recursive_gcd(a,b): |
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
if "~NowTime" == message.content: | |
now = datetime.datetime.now() | |
await message.channel.send(now.strftime("%YYear %mMonth %dDay %HHour %MMinute.")) |
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
from random import sample | |
import multiprocessing as mp | |
import time | |
MAX_VAL = 100 | |
makeNumbers = lambda count: sample(range(1, MAX_VAL + 1), count) | |
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
// ==UserScript== | |
// @name NYPC 내 총점 | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author reutrn0927; R3turnDev | |
// @match https://contest.nypc.co.kr/* | |
// ==/UserScript== | |
(function() { | |
'use strict'; |
NewerOlder