Skip to content

Instantly share code, notes, and snippets.

View default-writer's full-sized avatar
🚩
creating an app

default-writer default-writer

🚩
creating an app
View GitHub Profile
@default-writer
default-writer / administration.reg
Created December 7, 2017 11:37
windows administaton *.reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{D15ED2E1-C75B-443c-BD7C-FC03B2F08C17}]
@="Администрирование"
"InfoTip"="Все элементы"
"System.ControlPanel.Category"="5"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{D15ED2E1-C75B-443c-BD7C-FC03B2F08C17}\DefaultIcon]
@="%SystemRoot%\\System32\\imageres.dll,-27"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{D15ED2E1-C75B-443c-BD7C-FC03B2F08C17}\Shell\Open\Command]
@="explorer.exe shell:::{ED7BA470-8E54-465E-825C-99712043E01C}"
@default-writer
default-writer / codepage.reg
Created December 7, 2017 17:00
CMD codepage set to auto UTF-8 (cp 65001)
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor]
"CompletionChar"=dword:00000040
"DefaultColor"=dword:00000000
"EnableExtensions"=dword:00000001
"PathCompletionChar"=dword:00000040
"Autorun"="chcp 65001"
@default-writer
default-writer / keymap.reg
Created December 7, 2017 17:01
Disable Window key (Option key) in fullscreen
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,00,00,5b,e0,00,00,5c,e0,\
00,00,00,00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout\DosKeybCodes]
"00000402"="bg"
"00000404"="ch"
"00000405"="cz"
// ==UserScript==
// @name www.farfetch.com
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Fix for the external lavascript loading bug (Oracle Cloud Tags BlueKai)
// @author You
// @match https://www.farfetch.com/*
// @grant none
// ==/UserScript==
private static PrivateFontCollection LoadPrivateFontCollection()
{
PrivateFontCollection privateFontCollection = new PrivateFontCollection();
IntPtr data = IntPtr.Zero;
int installedFonts = 0;
foreach (var fontResource in PrivateFontCollection)
{
try
{
data = Marshal.AllocHGlobal(fontResource.Length);
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Text;
using System.Runtime.InteropServices;
using System.Security;
using Plugins.Library;
using Sudoku.Engine.Properties;
using System;
using System.Drawing;
using Sudoku.Interfaces;
namespace Sudoku.Engine
{
[Serializable]
public class FontObject : IFontObject
{
private Font _font;
private readonly FontFamily _fontFamily;
@default-writer
default-writer / dotnet-install.cmd
Created June 28, 2018 08:00
Installing dotnet in local directory \tools\dotnet
@echo off
@if defined _echo echo on
:install_dotnet_cli
setlocal
set "DOTNET_MULTILEVEL_LOOKUP=0"
set /p DotNet_Version=<"%~dp0DotNetCLIVersion.txt"
if not defined DotNet_Version (
call :print_error_message Unknown DotNet CLI Version.
@default-writer
default-writer / DotNetCliVersion.txt
Created June 28, 2018 08:03
dotnet cli version number to install target
2.1.300
@default-writer
default-writer / *.cmd
Last active July 30, 2018 06:20
File associations (*.cmd) for FAR File Manager 3.0
@start /max cmd /k !