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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\i8042prt\Parameters] | |
"LayerDriver JPN"="kbd101.dll" | |
"OverrideKeyboardIdentifier"="PCAT_101KEY" | |
"OverrideKeyboardType"=dword:00000007 | |
"OverrideKeyboardSubtype"=dword:00000000 | |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas] | |
@="PowerShell ウィンドウをここに開く(管理者)" | |
"Extended"="" | |
"NoWorkingDirectory"="" | |
"ShowBasedOnVelocityId"=dword:00639bc8 | |
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command] | |
@="powershell.exe -noexit -command Set-Location -literalPath '%V'" |
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
#!/bin/sh | |
# The script requires root permission or sudo. | |
# Switch to GUI mode (Alt-7) | |
chvt 7 | |
# Disable screen blank (screen saver) | |
setvesablank off | |
# Disable cursor blinking on the screen top | |
echo 0 > /sys/class/graphics/fbcon/cursor_blink |
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
int main() | |
{ | |
std::mt19937 r; | |
for (;;) | |
std::printf("%d\n", r()); | |
} |
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
#include <cstdio> | |
#include <random> | |
#include <experimental/generator> | |
auto random() | |
{ | |
std::mt19937 r; | |
for (;;) | |
co_yield r(); | |
} |
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
@echo off | |
rem Get the default distribution | |
for /f "tokens=3" %%d in ('reg query HKCU\Software\Microsoft\Windows\CurrentVersion\Lxss /v DefaultDistribution') do set DIST=%%d | |
rem Get distribution name, rootfs directory, and uid | |
for /f "tokens=3" %%n in ('reg query HKCU\Software\Microsoft\Windows\CurrentVersion\Lxss\%DIST% /v DistributionName') do set DIST_NAME=%%n | |
for /f "tokens=3" %%p in ('reg query HKCU\Software\Microsoft\Windows\CurrentVersion\Lxss\%DIST% /v BasePath') do set ROOTFS=%%p\rootfs | |
for /f "tokens=3" %%u in ('reg query HKCU\Software\Microsoft\Windows\CurrentVersion\Lxss\%DIST% /v DefaultUid') do set /a UID=%%u |
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
@echo off | |
set USERNAME=xxxxxxxxxxxx | |
set PASSWORD=yyyyyyyyyyyy | |
whoami /PRIV | find "SeLoadDriverPrivilege" > NUL | |
if not errorlevel 1 goto :main | |
powershell.exe -Command Start-Process """%0""" -Verb Runas | |
exit /b 0 |
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
// This code is based on the following article but updated for the latest system (June 2017): | |
// Automatic apk upload to Google Play (part 1) | |
// http://petr.logdown.com/posts/255755-automatic-apk-upload-1 | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
// Google.Apis.AndroidPublisher.v2 | |
using Google.Apis.AndroidPublisher.v2; | |
using Google.Apis.AndroidPublisher.v2.Data; |
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
<CopyNuGetImplementations>true</CopyNuGetImplementations> | |
<RestoreProjectStyle>PackageReference</RestoreProjectStyle> |
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
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<TargetFramework>netstandard1.6</TargetFramework> | |
<PackageTargetFallback>portable-net45+win8+wpa81+wp8</PackageTargetFallback> | |
<DebugType>full</DebugType> | |
</PropertyGroup> | |
<ItemGroup> | |
<PackageReference Include="Xamarin.Forms" Version="2.3.4.247" /> | |
</ItemGroup> | |
<ItemGroup> |