Skip to content

Instantly share code, notes, and snippets.

@RomanIvanovMinsk
RomanIvanovMinsk / opera-vpn.md
Created November 28, 2018 10:47 — forked from spaze/opera-vpn.md
Opera VPN behind the curtains is just a proxy, here's how it works

When setting up (that's immediately when user enables it in settings) Opera VPN sends few API requests to https://api.surfeasy.com to obtain credentials and proxy IPs, see below, also see The Oprah Proxy.

The browser then talks to a proxy de0.opera-proxy.net (when VPN location is set to Germany), it's IP address can only be resolved from within Opera when VPN is on, it's 185.108.219.42 (or similar, see below). It's an HTTP/S proxy which requires auth.

When loading a page with Opera VPN enabled, the browser sends a lot of requests to de0.opera-proxy.net with Proxy-Authorization request header.

The Proxy-Authorization header decoded: CC68FE24C34B5B2414FB1DC116342EADA7D5C46B:9B9BE3FAE674A33D1820315F4CC94372926C8210B6AEC0B662EC7CAD611D86A3 (that's sha1(device_id):device_password, where device_id and device_password come from the POST /v2/register_device API call, please note that this decoded header is from another Opera installation and thus contains

@RomanIvanovMinsk
RomanIvanovMinsk / Example.pubxml
Created October 12, 2018 11:32 — forked from brianpursley/Example.pubxml
An example Visual Studio pubxml file to zip the output when publishing an ASP.NET web application to file system
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<WebPublishMethod>FileSystem</WebPublishMethod>
<LastUsedBuildConfiguration>Debug</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish />
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<ExcludeApp_Data>False</ExcludeApp_Data>
<publishUrl>C:\Publish\SimpleExample</publishUrl>
@RomanIvanovMinsk
RomanIvanovMinsk / 00. tutorial.md
Created June 1, 2018 13:25 — forked from maxivak/00. tutorial.md
Importing/Indexing database (MySQL or SQL Server) in Solr using Data Import Handler
@RomanIvanovMinsk
RomanIvanovMinsk / gist:8efabaa319442180478d583e175d0b3f
Created May 31, 2018 09:19 — forked from betweenbrain/gist:2284129
Git command to export only changed files between two commits
git archive --output=file.zip HEAD $(git diff --name-only SHA1 SHA2)
@RomanIvanovMinsk
RomanIvanovMinsk / books.md
Created March 10, 2018 15:16 — forked from photonstorm/books.md
Game Art Books

Push Start (very good, mostly retro / pixel art) Amazon

Game Art (40 Interviews, covers about 2000+) Amazon

The Art of Naughty Dog (sublime!) Amazon

Game specific:

@RomanIvanovMinsk
RomanIvanovMinsk / books.md
Created March 10, 2018 15:16 — forked from photonstorm/books.md
Game Art Books

Push Start (very good, mostly retro / pixel art) Amazon

Game Art (40 Interviews, covers about 2000+) Amazon

The Art of Naughty Dog (sublime!) Amazon

Game specific:

@RomanIvanovMinsk
RomanIvanovMinsk / ChangeSearchProvider.ps1
Created November 2, 2017 11:00 — forked from patrickperrone/ChangeSearchProvider.ps1
This PowerShell script will change your Sitecore instance search provider from Lucene to Solr or vice versa.
function Get-ConfigFileFilter([string]$providerName)
{
return "^.*\." + $providerName + "\.(.+\.)?config.*$"
}
function Set-SCSearchProvider
{
$rootPath = Read-Host "What is the path of your Sitecore instance's website folder?";
$choice = Read-Host "(L)ucene or (S)olr?";
@RomanIvanovMinsk
RomanIvanovMinsk / castle_windsor_snippet.web.config
Created November 2, 2017 07:38 — forked from patrickperrone/castle_windsor_snippet.web.config
Web.config workaround for Castle Windsor version conflict when using it as the IoC for Glass and Solr-enabled Sitecore 8.
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<!--
This assembly redirection is necessary to support
Glass and Solr simultaneously. GlassV3 wants to use
Castle 3.2+ and Solr wants 3.1. The snippet belows
assumes you want to use Castle 3.3 but it would also
work with 3.2.
-->
<dependentAssembly>