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/sh | |
ffprobe="/volume1/NAS/SH/dts/ffprobe" | |
ffmpeg="/volume1/NAS/SH/dts/ffmpeg" | |
cachedir="/volume1/NAS/SH/dts" | |
## cleanup by deleting unwanted files | |
find $1 -name "*.txt" -type f -print0 | xargs -0 rm -rf | |
find $1 -name "*.db" -type f -print0 | xargs -0 rm -rf | |
##find $1 -name "*.nfo" -type f -print0 | xargs -0 rm -rf |
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
document.domain = "cyworld.com"; | |
var xGlobal = { | |
CookieDomain : "cyworld.com", // 도메인 | |
CookieMain : "LOGIN", // 메인 쿠키 | |
CookieXecureLevel : "xlevel", // 보안 레벨 쿠키 | |
CookieIPLevel : "iplevel", // IP보안 레벨 쿠키 | |
CookieSaveId : "saveid", // 로그인 아이디 저장 여부 쿠키 | |
CookieLoginId : "loginid", // 로그인 아이디 | |
CookieSavePwd : "savepwd", // 로그인 아이디 저장 여부 쿠키 |
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
# -*- coding: utf-8 -*- | |
from datetime import datetime | |
import urllib2 | |
def kb_balance(account, password, resident, username): | |
""" | |
국민은행 계좌 잔액 빠른조회. 빠른조회 서비스에 등록이 되어있어야 사용 가능. | |
빠른조회 서비스: https://obank.kbstar.com/quics?page=C018920 |
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 django.utils.crypto import constant_time_compare | |
import hashlib | |
from .models import G5Member as User | |
class MyUserAuthBackend(object): | |
def check_legacy_password(self, db_password, supplied_password): | |
return constant_time_compare('*'+ hashlib.sha1(hashlib.sha1(supplied_password.encode('utf-8')).digest()).hexdigest().upper(), db_password) |
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 os | |
import json | |
from django.core.exceptions import ImproperlyConfigured | |
# some settings | |
# ... | |
# ... | |
INSTALLED_APPS = [ |
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
# encryption.py | |
def 시프트(입력, 횟수): | |
알파벳 = 'abcdefghijklmnopqrstuvwxyz' | |
결과 = '' | |
for 원래알파벳 in 입력: | |
숫자알파벳 = 알파벳.index(원래알파벳) | |
변환알파벳 = 알파벳[(숫자알파벳+횟수)%26] | |
print(원래알파벳+'-->'+변환알파벳) |
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
# coding: utf-8 | |
import numpy as np | |
import pandas as pd | |
import matplotlib | |
import matplotlib.pyplot as plt | |
from pandas_datareader import data as web | |
import time | |
start_time = time.time() |
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
class MyUserAuthBackend(object): | |
def check_legacy_password(self, db_password, supplied_password): | |
return constant_time_compare('*'+ hashlib.sha1(hashlib.sha1(supplied_password.encode('utf-8')).digest()).hexdigest().upper(), db_password) | |
def authenticate(self, username=None, password=None): | |
""" Authenticate a user based on mb_id as the user name. """ | |
try: |
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
{ | |
"REPO_URL":"", | |
"PROJECT_NAME":"", | |
"REMOTE_HOST_SSH":"", | |
"REMOTE_HOST":"", | |
"REMOTE_USER":"", | |
"REMOTE_PASSWORD":"" | |
} |
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 | |
# 1st Install https://github.com/prasmussen/gdrive | |
# then use this script in Alfred or from CLI when you want to screenshot then upload to your gdrive | |
# then share the link to others from your paste board | |
# (run gdrive one first time to authenticate with Google) | |
screencapture -tpng -i /tmp/temp_shot_gdrive.png | |
DATEFILENAME=`date +"%Y%m%d%H%M"` | |
# use -p id to upload to a specific folder |
OlderNewer