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
class McCrawler | |
def request_param(page) | |
path = '/a/block_competition_matches?' | |
callback_params = { | |
page: (page==0 ? 0 : page.to_s), | |
round_id: 17950.to_s, | |
outgroup: "", | |
view: 2 | |
} | |
params = { |
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
#!/bin/bash | |
function usage() { | |
echo "Usage: init <command>" | |
echo "Usage: <command> '<commit>' [-i, --ignore-ticket]" | |
} | |
if [ $# -eq 0 ] || [ $# -gt 2 ]; then | |
usage | |
exit 1 |
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
// For responding to the user accepting a newly-captured picture or movie | |
- (void) imagePickerController: (UIImagePickerController *) picker | |
didFinishPickingMediaWithInfo: (NSDictionary *) info { | |
NSString *mediaType = [info objectForKey: UIImagePickerControllerMediaType]; | |
[self dismissModalViewControllerAnimated:NO]; | |
// Handle a movie capture | |
if (CFStringCompare ((__bridge_retained CFStringRef)mediaType, kUTTypeMovie, 0) |
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
# Job descriptions | |
## 1. Mô tả công việc: | |
* Quản trị & bảo trì hàng ngày hệ thống servers sản phẩm trực tuyến phục vụ 100k người dùng | |
* Báo cáo hàng tuần các thông tin về hệ thống & người dùng | |
* Phát triển (mở rộng, nâng cấp) & quản lý hệ thống để phục vụ thêm nhiều người dùng | |
* Xử lý nóng khi có sự cố phát sinh | |
## 2. Yêu cầu Kỹ năng | |
* Sử dụng thành thạo hệ điều hành Linux (Ubuntu, Fedora, Debian, ...) |
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
# Nginx config | |
passenger_root /home/deployer/.rvm/gems/ruby-2.1.3/gems/passenger-4.0.53; | |
#passenger_ruby /usr/bin/ruby; | |
passenger_max_pool_size 70; | |
passenger_min_instances 1; | |
passenger_max_requests 20; # A workaround if apps are mem-leaking | |
passenger_pool_idle_time 300; | |
passenger_max_instances_per_app 30; | |
passenger_pre_start http://service.memo.edu.vn/; |
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
# Patch for pygments/formatters/img.py | |
# Define font to use | |
DEFAULT_FONT_NAME_NIX = 'Menlo' | |
class FontManager(object): | |
# ... Other methods | |
def _get_nix_font_path(self, name, style): | |
# Fix 'fc-list' command to explore exact font to use |
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
Host myshortname realname.example.com | |
HostName realname.example.com | |
IdentityFile ~/.ssh/realname_rsa # private key for realname | |
User remoteusername | |
Host myother realname2.example.org | |
HostName realname2.example.org | |
IdentityFile ~/.ssh/realname2_rsa | |
User remoteusername |
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
MIT License | |
Copyright (c) 2016 Ethan Nguyen | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
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
AÀÁẢÃẠ | |
ĂẰẮẲẴẶ | |
ÂẦẤẨẪẬ | |
BC | |
DĐ | |
EÈÉẺẼẸ | |
ÊỀẾỂỄỆ | |
GH | |
IÌÍỈĨỊ | |
KLMN |
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
{ | |
"env": { | |
"browser": true, | |
"es6": true, | |
"jest": true, | |
"node": true | |
}, | |
"extends": "eslint:recommended", | |
"parser": "babel-eslint", | |
"parserOptions": { |
OlderNewer