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
Show hidden characters
{ | |
"env" : | |
{ | |
"CL_PARAMS" : "/O2 /W3 /GL /MT /GS /EHsc /D \"NDEBUG\" /D \"_UNICODE\" /D \"UNICODE\" /D \"WIN32_LEAN_AND_MEAN\" /D \"WIN32\" /D \"_WINDOWS\" /D_USING_V110_SDK71_ /I \"%ProgramFiles(x86)%\\Microsoft SDKs\\Windows\\7.1A\\Include\"", | |
"LINK_PARAMS" : "/link /OPT:REF /SUBSYSTEM:CONSOLE,5.02 /LIBPATH:\"%ProgramFiles(x86)%\\Microsoft SDKs\\Windows\\7.1A\\Lib\\x64\"", | |
"EXE_SUFIX" : "_x64_xp.exe" | |
}, | |
"path" : "%PATH%;%ProgramFiles(x86)%\\Microsoft SDKs\\Windows\\7.1A\\Bin;%ProgramFiles(x86)%\\microsoft visual studio 11.0\\vc", | |
"shell_cmd": "vcvarsall.bat amd64 && cl.exe %CL_PARAMS% \"${file}\" %LINK_PARAMS% /OUT:\"${file_base_name}%EXE_SUFIX%\" && del *.obj", |
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
// ==UserScript== | |
// @name Sort Ru-Board mail list | |
// @author Ruzzz | ruzzzua@gmail.com | |
// @include http://forum.ru-board.com/tools.cgi?action=maillist | |
// @version 0.0.1 | |
// @date 2014-02-04 | |
// ==/UserScript== | |
(function () { |
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
:: Usage: 7zip-Pack.bat DIR_OR_FILE_PATH | |
:: Or copy to %AppData%\Microsoft\Windows\SendTo\ | |
:: Dependences: http://www.7-zip.org | |
:: https://gist.github.com/Ruzzz/8669153 | |
@echo off | |
IF (%1)==() GOTO :NO_PARAMETER | |
:LOOP | |
7za a -y -t7z "%~f1.7z" %1 -mx9 -mhe=on -mtc=on -m0=LZMA2 |
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
:: Usage: [FILENAME].bat DIR_OR_FILE_PATH | |
:: Or copy to %AppData%\Microsoft\Windows\SendTo\ | |
:: Dependences: http://www.7-zip.org | |
@echo off | |
IF (%1)==() GOTO :NO_PARAMETER | |
:LOOP | |
[COMMAND %1] |
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
set APP_NAME=Opera 12 for Safe Browsing | |
set APP_PATH=%UserProfile%\AppData\LocalLow\Opera 12 for Safe Browsing\opera.exe | |
set PORT=11011 | |
netsh advfirewall firewall add rule name="%APP_NAME% (TCP-Out) Block All" dir=out action=block program="%APP_PATH%" protocol=tcp | |
netsh advfirewall firewall add rule name="%APP_NAME% (UDP-Out) Block All" dir=out action=block program="%APP_PATH%" protocol=udp | |
netsh advfirewall firewall add rule name="%APP_NAME% (TCP-Out)" dir=out action=allow program="%APP_PATH%" remoteip=127.0.0.1 remoteport=%PORT% protocol=tcp | |
netsh advfirewall firewall add rule name="%APP_NAME% (UDP-Out)" dir=out action=allow program="%APP_PATH%" remoteip=127.0.0.1 remoteport=%PORT% protocol=udp |
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"?> | |
<project name="OperaExtensionBuild" default="build-opera-extension" basedir="."> | |
<!-- Vars --> | |
<property name="main-url" value="EXT-PAGE-URL"></property> | |
<property name="release-base-url" value="UPDATE-BASE-URL"></property> | |
<property name="config-file" value="config.xml"/> | |
<property name="src-dir" value="src"/> | |
<property name="release-dir" value="release"/> | |
<property name="temp-dir" value="temp"/> |
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
import sys | |
import base64 | |
import hashlib | |
// Alternative to: >ssh-keygen -E md5 -l -f id_rsa.pub | |
md5 = hashlib.md5() | |
md5.update(base64.b64decode(open('id_rsa.pub').read().split()[1])) | |
digest = md5.digest() | |
print (":".join("{:02x}".format(c) for c in digest)) |
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
:: or %ProgramFiles(x86)% | |
set _SDK71PATH_=%ProgramFiles%\Microsoft SDKs\Windows\7.1A | |
set PATH=%_SDK71PATH_%\Bin;%PATH% | |
set INCLUDE=%_SDK71PATH_%\Include;%INCLUDE% | |
set LIB=%_SDK71PATH_%\Lib;%LIB% | |
set CL=/D_USING_V110_SDK71_ %CL% | |
set LINK=/SUBSYSTEM:CONSOLE,5.01 %LINK% |
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
<?php | |
$filename = $_GET['file']; | |
$downloadRate = isset($_GET['speed']) ? intval($_GET['speed']) : 500; // KB/s | |
if (file_exists($filename) && is_file($filename)) | |
{ | |
header('Cache-control: private'); | |
header('Content-Type: application/x-shockwave-flash'); | |
header('Content-Length: '.filesize($filename)); |
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
:: OpenSSL | |
openssl s_client -connect smtp.gmail.com:587 -starttls smtp | |
openssl s_client -connect smtp.gmail.com:465 | |
openssl s_client -connect smtp.yandex.ru:465 | |
:: SSLyze | |
sslyze_cli.exe --tlsv1 --tlsv1_1 --tlsv1_2 --sslv2 --sslv3 --hide_rejected_ciphers --starttls=smtp smtp.gmail.com:587 | |
sslyze_cli.exe --tlsv1 --tlsv1_1 --tlsv1_2 --sslv2 --sslv3 --hide_rejected_ciphers smtp.gmail.com:465 | |
sslyze_cli.exe --tlsv1 --tlsv1_1 --tlsv1_2 --sslv2 --sslv3 --hide_rejected_ciphers smtp.yandex.ru:465 |