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 | |
echo 3 | sudo tee /proc/sys/vm/drop_caches | |
sync |
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 | |
with open(sys.argv[1]) as f: | |
for line in f: | |
print line, |
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
[molokai] | |
text(bold)=000000 | |
magenta(bold)=ff46ff | |
text=d7d7d7 | |
white(bold)=eaeaea | |
green=a6e22d | |
red(bold)=ff4a4a | |
green(bold)=1cc470 | |
black(bold)=808080 | |
red=e28964 |
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 python3 | |
import sys | |
import time | |
import requests | |
def get_ticker_all(interval=60): | |
URL = 'https://api.bithumb.com/public/ticker/ALL' | |
while True: | |
price = requests.get(URL).json()['data'] | |
price.pop('date') |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 python3 | |
import logging | |
def setup_logger(name, filename=None): | |
logger = logging.getLogger(name) | |
logger.setLevel(logging.DEBUG) | |
fmt_string = ('[%(levelname)s|%(filename)s:%(lineno)s] %(asctime)s >' | |
' %(message)s') | |
fmt = logging.Formatter(fmt_string) |
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 | |
TARGET_DIR=/home/changyeon/nfs/HDD-1TB/twitch | |
QUALITY=best | |
NOW=$(date +"%Y%m%d_%H%M%S") | |
STREAM=$1 | |
if [ -f /tmp/$STREAM ]; then | |
exit 0 | |
fi | |
touch /tmp/$STREAM |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer