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
#MaxThreadsPerHotkey 2 | |
if (not A_IsAdmin) | |
Run '*RunAs "' A_AhkPath '" /restart "' A_ScriptFullPath '"' | |
skipDialogRunning := false | |
DIALOG_NAME_COLOR := 0xFFC300 | |
#HotIf WinActive("ahk_exe YuanShen.exe") |
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
from requests.exceptions import * | |
import json | |
import requests | |
import sys | |
import time | |
# original author: https://takulog.info/python-script-create-conoha-server/ | |
''' === Setting Parameters ============================= ''' |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
#include <malloc.h> | |
#ifndef WIN32_LEAN_AND_MEAN | |
#define WIN32_LEAN_AND_MEAN | |
#endif//WIN32_LEAN_AND_MEAN | |
#include <Windows.h> | |
#include <WindowsX.h> |
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
#include <stdio.h> | |
#include <WinSock2.h> | |
#include <MSWSock.h> | |
#include <WS2tcpip.h> | |
#pragma comment(lib, "Ws2_32.lib") | |
static LPFN_CONNECTEX ConnectEx = NULL; |
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
2016-07-17 01:46:12.028 On the TCP Listener (Port 443), a Client (IP address 74.82.47.2, Host name "scan-09.shadowserver.org", Port number 52925) has connected. | |
2016-07-17 01:46:12.028 For the client (IP address: 74.82.47.2, host name: "scan-09.shadowserver.org", port number: 52925), connection "CID-108" has been created. | |
2016-07-17 01:46:16.373 SSL communication for connection "CID-108" has been started. The encryption algorithm name is "AES128-SHA". | |
2016-07-17 01:46:17.810 Connection "CID-108" terminated by the cause "A client which is non-SoftEther VPN software has connected to the port." (code 5). | |
2016-07-17 01:46:17.810 Connection "CID-108" has been terminated. | |
2016-07-17 01:46:17.810 The connection with the client (IP address 74.82.47.2, Port number 52925) has been disconnected. | |
2016-07-17 01:47:55.678 On the TCP Listener (Port 443), a Client (IP address 74.82.47.2, Host name "scan-09.shadowserver.org", Port number 40041) has connected. | |
2016-07-17 01:47:55.678 For the client (IP address: 74.82.47.2, hos |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#,:: | |
AdjustScreenBrightness(-3) | |
Return | |
#.:: | |
AdjustScreenBrightness(3) | |
Return | |
AdjustScreenBrightness(step) { | |
service := "winmgmts:{impersonationLevel=impersonate}!\\.\root\WMI" |
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 re | |
import requests | |
from distutils.version import LooseVersion | |
# we are smart client and do not support dumb protocal | |
# protocol document: https://github.com/git/git/blob/master/Documentation/technical/http-protocol.txt | |
class GitHttpError(Exception): | |
pass |
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
gap_seq = [701, 301, 132, 57, 23, 10, 4, 1] | |
def shell_sort(l): | |
for g in gap_seq: | |
insert_sort(l, g) | |
def insert_sort(l, gap=1): | |
# elements whose index < i are sorted | |
for i in range(gap, len(l)): | |
for j in range(i, gap-1, -gap): |