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
taken from: http://danielsokolowski.blogspot.com.es/2013_04_01_archive.html | |
This due to the way MPPE Microsoft point-to-point Encryption encodes data which results in the packet size being bigger then what was agreed in the VPN handshake - is my guess. There is a reported bug from 2005 which sadly hast not yet been addressed. | |
Fixing the issue by increasing the MTU | |
You can't fix this issue by modifying the MTU/MRU settings in '/etc/ppp/options' directly, you have to adjust the MTU after the PPP connection is up and this can be accomplished by adding a custom 'ip-up' script. | |
Below is my workaround script, place it into file '/etc/ppp/ip-up.d/mppefixmtu' and ensure that it is executable ('chmod +x mppefixmtu'): | |
#!/bin/sh | |
CURRENT_MTU="`ifconfig $1 | grep -Po '(?<=MTU:)([0-9]+)'`" |
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
package main | |
import ( | |
"bytes" | |
"crypto/cipher" | |
"crypto/des" | |
"encoding/base64" | |
) | |
type Decrypter struct { |
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 python | |
# -*- coding: utf-8 -*- | |
# 百度翻译 | |
import requests | |
import json | |
import random | |
import md5 | |
import httplib |
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
adb shell | |
//电源键 | |
adb shell input keyevent 26 | |
//菜单键 | |
adb shell input keyevent 82 | |
//home键 | |
adb shell input keyevent 3 | |
//返回键 | |
adb shell input keyevent 4 |
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
<?xml version="1.0"?> | |
<!-- | |
NOTE: User and query level settings are set up in "users.xml" file. | |
--> | |
<yandex> | |
<logger> | |
<!-- Possible levels: https://github.com/pocoproject/poco/blob/develop/Foundation/include/Poco/Logger.h#L105 --> | |
<level>trace</level> | |
<log>/var/log/clickhouse-server/clickhouse-server.log</log> | |
<errorlog>/var/log/clickhouse-server/clickhouse-server.err.log</errorlog> |
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
server: | |
http: | |
listen_addr: ":9090" | |
allowed_networks: ["10.0.0.0/8", "172.0.0.0/8"] | |
users: | |
- name: "default" | |
to_cluster: "default" | |
to_user: "default" |
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
name: "mtg-trade-network" | |
description: "The network that has all the configuration parameters" | |
version: 1 | |
client: | |
organization: org1 | |
logging: | |
level: info |
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
CREATE TABLE impression_attribution ( | |
clickId varchar PRIMARY KEY, | |
timestamp timestamp, | |
date int, | |
time int, | |
advertiserId int, | |
appId int, | |
platform varchar, | |
packageName varchar, | |
bundleId varchar, |
OlderNewer