Skip to content

Instantly share code, notes, and snippets.

View songmw90's full-sized avatar

Fantazm songmw90

View GitHub Profile
import hashlib
fullhash = "98e86e9c473107b55e707fd4edd9411443e4ded6c39c5ac1c969e096bb733d975a12538f3c4fa1145aa8993b6583731b2eecf68895052d8038dee068317f549d0269c54f1e28606478b15890f6efd2b7e46d969ddf1c5f3b2bd4d4160d354d17"
arr = [fullhash[i:i+32] for i in range(0, len(fullhash), 32)]
string = "1234567890abcdefghijklmnopqrstuvwxyz"
answer = ""
for a in arr:
#!/usr/bin/env python
# -*- coding: utf8 -*-
import random
def solve(i):
#int 100보다 작은 수를 제거
return [a for a in i if a >= 100]
lst = []
for i in range(100):
@songmw90
songmw90 / iptables_mysql.py
Last active March 6, 2017 05:03
Monitor mysql-error.log / added iptables to block ip
#!/usr/bin/env python
# -*- coding: utf8 -*-
import re
from subprocess import call
path = "/var/log/mysql/"
log = "error.log"
logContents = ""
excludeText = "localhost ....."
@songmw90
songmw90 / opgg.py
Created August 17, 2015 01:42
Auto game record requester (op.gg)
#!/usr/bin/env python
# -*- coding: utf8 -*-
import urllib
import urllib2
import re,time
players = []
turn = -1
#Author: Khoi
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# items.py should be in the same folder
from items import item_color
from collections import OrderedDict
def are_exclusive(keys, items):
#Autor: Misol
item_color = {'Ambank': set(['Celadon green', 'Blast-off bronze', 'Dark turquoise', 'Carmine (M&P)', 'Brick red', 'Dark sea green', 'Carmine', 'Atomic tangerine', 'French blue', 'Cyan cobalt blue', 'Donkey brown', 'Air Force blue (RAF)', 'Army green', 'Coquelicot', 'French plum', 'Celadon', 'Eton blue', 'Black bean', 'Bistre brown', 'Debian red', 'Bittersweet', 'Dark liver (horses)', 'Air Force blue (USAF)', 'Baby blue', 'Chocolate (web)', 'Arylide yellow', 'Deep Tuscan red', 'Bondi blue', 'Dark brown', 'Baby powder']), 'Tsingtao': set(['Catalina blue', 'Flavescent', 'Black', 'Burnt sienna', 'Ceil', 'English violet', 'Bisque', 'Azure (web color)', 'Bright pink', 'Cyan cobalt blue', 'Blue (pigment)', 'Charleston green', 'Chrome yellow', 'Amazon', 'Cyan-blue azure', 'Boysenberry', 'Dust storm', 'Desire', 'Dark jungle green', 'Desert sand', 'Antique ruby', 'Coral', 'Fern green', 'Desaturated cyan', 'Chartreuse (traditional)', 'Dim gray', 'Dark cerulean', 'Burnt orange', 'Cadet', 'Air Force blue (U
@songmw90
songmw90 / AutoLink.php
Created March 31, 2015 03:40
AutoLink_for_Mediawiki_1.2_higher
@songmw90
songmw90 / wordcount.py
Last active December 14, 2020 11:34
Simple word count
#!/usr/bin/env python
# Author : Myeong-Uk ([email protected])
# Date : 2015. 03. 24
# Desc : Count alphabetword frequency
# Command : <python wordcount.py filename> e.g. rfc3615.txt
# OUTPUT : filename_word_count.out e.g. rfc3615.txt_word_count.out
import sys,re,string,operator,csv