This file contains hidden or 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
# --no-globals-backup: Do not backup and restore $GLOBALS for each test. | |
# Options link: https://phpunit.de/manual/current/en/textui.html#textui.clioptions | |
$ phpunit --no-globals-backup test_script.php |
This file contains hidden or 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 | |
# -*- coding: utf-8 -*- | |
import re | |
def validate_str_len_max(length): | |
def decorator(func): | |
def wrapper(*args, **kwargs): | |
if len(args[0]) <= length: |
This file contains hidden or 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 | |
# -*- coding: utf-8 -*- | |
import base64 | |
from Crypto import Random | |
from Crypto.Cipher import AES | |
# Block size | |
BS = 32 |
This file contains hidden or 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
# Versions: | |
# Vagrant: 1.8.1 | |
# Ubuntu: 14.04 | |
# uWSGI: 2.0.12 | |
# Nginx: 1.8.1 | |
# Python: 2.7.6, 3.5.1 | |
# Flask: 0.10.1 | |
# MariaDB: 5.5.46 | |
# My computer: MacOSⅩ 10.10.5 (Yosemite) | |
# VM: VirtualBox 5.0.14 |
This file contains hidden or 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 <Foundation/Foundation.h> | |
@interface NSURLRequest (SelfSignedCertificate) | |
#ifdef DEBUG | |
+ (BOOL)allowsAnyHTTPSCertificateForHost:(NSString *)host; | |
#endif | |
@end |
This file contains hidden or 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
rm app/tmp/cache/models/* |