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 json | |
# import simplejson | |
# import pickle | |
# from dateutil.relativedelta import relativedelta | |
import requests | |
import logging | |
from fake_useragent import UserAgent | |
# ATOME_COOKIE = "atome_cookies.pickle" | |
# ATOME_USER_ID = "atome_user_id.pickle" |
We don't collect any information from you, but note that the message you sent to our bot will be stored on Facebook's database. It's your duty to manage the messages between you and our bot.
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
struct TreeNode { | |
int val; | |
TreeNode *left; | |
TreeNode *right; | |
TreeNode(int x) : val(x), left(NULL), right(NULL) {} | |
}; | |
struct ListNode { | |
int val; | |
ListNode *next; |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE keyboard SYSTEM "file://localhost/System/Library/DTDs/KeyboardLayout.dtd"> | |
<!--Created by Buyant-Orgil.E, mail:[email protected] 2009-11-19 at 20:23 (JST)--> | |
<keyboard group="7" id="19456" name="Mongolian" maxout="1"> | |
<layouts> | |
<layout first="0" last="0" modifiers="30" mapSet="138"/> | |
</layouts> | |
<modifierMap id="30" defaultIndex="5"> | |
<keyMapSelect mapIndex="0"> | |
<modifier keys="option control command?"/> |
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
// jQuery injection | |
var jq = document.createElement('script'); | |
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"; | |
document.getElementsByTagName('body')[0].appendChild(jq); | |
// http://stackoverflow.com/questions/6157929/how-to-simulate-mouse-click-using-javascript | |
// jQuery-ын mousedown, mouseup ашиглахаар болохгүй байгаа. Яагаад гэдгийг мэдэхгүй | |
function simulate(element, eventName) | |
{ | |
var options = extend(defaultOptions, arguments[2] || {}); |
WHR-HP-G300N
-ын үндсэн flash memory нь 4MB тул, OpenVPN суулгахад хүрэлцэхгүй юм. Үндсэн санах ой нь хэдийгээр бага ч гэсэн, түр санах ой нь хангалттай том тул, түр санах ой дээр суулгах боломжтой. Түр санах ой тул, router унтрах үед буцаад устана. Тийм болохоор start
хийх үед хэрэгтэй файлуудыг татан авч суулгах script хэрэг болох юм.
Эх заавар(Орос хэл дээр): http://habrahabr.ru/post/211174/
- Router: Buffalo WHR-HP-G300N
- Firmware: OpenWrt Attitude Adjustment 12.09
http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/openwrt-ar71xx-generic-whr-hp-g300n-squashfs-factory.bin
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
var async = require('async'); | |
var bodyParser = require('body-parser'); | |
var crypto = require('crypto'); | |
var express = require('express'); | |
var session = require('express-session'); | |
var strftime = require('strftime'); | |
var mysql = require('mysql'); | |
var app = express(); | |
var fs = require('fs'); |
'SELECT COUNT(1) AS failures FROM login_log WHERE ' +
'user_id = ? AND id > IFNULL((select id from login_log where ' +
'user_id = ? AND succeeded = 1 ORDER BY id DESC LIMIT 1), 0);',
'SELECT COUNT(1) AS failures FROM login_log WHERE ' +
'ip = ? AND id > IFNULL((select id from login_log where ip = ? AND ' +
NewerOlder