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
* { font-family: "LiHei Pro", "Heiti TC", "Microsoft YaHei", "Microsoft JhengHei", "WenQuanYi Micro Hei","WenQuanYi Zen Hei", sans-serif !important; } |
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
<?php // DO NOT COPY THESE CODE IF YOU DON'T KNOW WHAT I'M DONING!!! | |
/* | |
* 使用說明 | |
* | |
* 在資料庫連結完成,並且設定編碼完成後再使用 | |
* | |
* 先 defense_xss 再 defense_sql_injection | |
* | |
* 如果出現問題則先取消 defense_xss |
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
(function () { | |
if (!document.querySelector("#pageNav")) { | |
return; | |
} | |
var emoticons = [{ | |
"chars": " :) ", | |
"class": "emoticon_smile", | |
"name": "Smiley" | |
}, { | |
"chars": " :( ", |
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
(function (global) { | |
var elems, | |
getElementParent = function (e, n) { | |
// default --> n = 0 | |
n = n || 0; | |
var node = e.parentElement; | |
if (!node) | |
return e; |
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
/* DONT COPY THIS! VULNERABLE CODE! */ | |
#include <stdio.h> | |
void read_the_file (FILE *fp) { | |
char buffer[8]; | |
fgets(buffer, 72, fp); // 72bytes WTF? | |
} | |
int main (int argc, const char *argv[]) { | |
if (argc < 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
#!/usr/bin/env gawk -f | |
BEGIN { | |
format = "%-8s%-8s%-12s%s\n" | |
for (i = 0; i < ARGC; i++) { | |
if (ARGV[i] == "--csv") { | |
format = "%s,%s,%s,\"%s\"\n" | |
} | |
delete ARGV[i] | |
} | |
printf(format, "Place", "TeamID", "Score", "TeamName") |
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
// gcc -zexecstack ducky.c && ./a.out | |
char main<: :> = <% 0xeb, 0x1e, 0xb8, 0x04, 0x00, 0x00, 0x00, 0xbb, 0x01, 0x00, 0x00, 0x00, 0x59, 0xba, 0x0f, 0x00, 0x00, 0x00, 0xcd, 0x80, 0xb8, 0x01, 0x00, 0x00, 0x00, 0xbb, 0x00, 0x00, 0x00, 0x00, 0xcd, 0x80, 0xe8, 0xdd, 0xff, 0xff, 0xff, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x2c, 0x20, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x21, 0x0d, 0x0a %>; |
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 COLOR(object): | |
""" | |
>>> print(COLOR.red('Red Text')) | |
>>> print(COLOR.RED + 'Red' + COLOR.BLUE + 'BLUE' + COLOR.NONE) | |
""" | |
class _INNER_COLOR(type): | |
colors = { | |
'NONE' : '\x1b[38;5;0m', | |
'RED' : '\x1b[38;5;9m', | |
'GREEN' : '\x1b[38;5;10m', |
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 feedparser, time, sys, re, lxml | |
def strip_html(s): | |
return re.sub('<[^>]+>', '', s) | |
def strip_entity(s): | |
def unescape_entity(m): | |
s = m.group(1).lower() |
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 | |
HQ_RND_LEN = 64 | |
LOWER_ALPHA = 'abcdefghijklmnopqrstuvwxyz' | |
UPPER_ALPHA = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
ALPHA = LOWER_ALPHA + UPPER_ALPHA | |
def help(argv): |