Skip to content

Instantly share code, notes, and snippets.

[void][reflection.assembly]::LoadWithPartialName("System.Windows.Forms")
$form = New-Object System.Windows.Forms.Form
$form.Text = "Hello World"
$set_pos = { $form.Location = New-Object System.Drawing.Point(0, 0); }
$form.add_Load($set_pos)
[void]$form.ShowDialog()
@Maximus5
Maximus5 / ping.log
Created April 10, 2016 20:03
ping does not work in bash for Windows
root@localhost:/mnt/c# cat /etc/resolv.conf
nameserver 8.8.8.8
root@localhost:/mnt/c# ping 8.8.8.8
ping: icmp open socket: Socket type not supported
root@localhost:/mnt/c#
@Maximus5
Maximus5 / gist:502b6feb95cf29e431d046ac5fdd05f4
Created June 21, 2016 14:53 — forked from xyzzy-17-638/gist:2354412
Windows2000 で xyzzyのマルチフレーム版を動かすための修正案

Windows2000 で xyzzyのマルチフレーム版を動かすための修正案

サポートしない、というのが一番楽だとは思いますが…

OS の環境を Windows 2000 SP4 update Rollup 1 にする

/subsystem のバージョンを 5.0 にする

@Maximus5
Maximus5 / export_repo_issues_to_csv.py
Created November 28, 2016 09:13 — forked from unbracketed/export_repo_issues_to_csv.py
Export Issues from Github repo to CSV (API v3)
"""
Exports Issues from a specified repository to a CSV file
Uses basic authentication (Github username + password) to retrieve Issues
from a repository that username has access to. Supports Github API v3.
"""
import csv
import requests
@Maximus5
Maximus5 / WebInstall.7z
Last active April 27, 2017 22:15
git --version && git status
@Maximus5
Maximus5 / gist:261b30f127077f97bfa43de2240d94ab
Created April 27, 2017 22:42
\Utils\Lans\GIT.2.10\bin\git.exe status --branch --porcelain=2 --ignored --no-lock
# branch.oid d66d6aa78a36c28b109ae6d3dbf98b876aeb3506
# branch.head daily
# branch.upstream origin/daily
# branch.ab +0 -0
! WebInstall/
! src/ConEmu/graphics.src/
! src/WebInstall/
Microsoft Windows [Version 10.0.10586] 
 
zkr32@ZKRWS C:\Users\zkr32 
> cd E:\Programming\Android\ReactNative\ZKRTestSharedProject 
 
zkr32@ZKRWS C:\Users\zkr32 
> e: 

Macro
{
area="Shell Info QView Tree";
key="Esc";
flags="EmptyCommandLine";
description="Use Esc to toggle panels on/off";
action = function()
-- Yes, we can switch to 'Desktop' screen, but it does not have command line
-- Keys("F12 0")