Skip to content

Instantly share code, notes, and snippets.

@Maximus5
Maximus5 / gist:261b30f127077f97bfa43de2240d94ab
Created Apr 27, 2017
\Utils\Lans\GIT.2.10\bin\git.exe status --branch --porcelain=2 --ignored --no-lock
View gist:261b30f127077f97bfa43de2240d94ab
# branch.oid d66d6aa78a36c28b109ae6d3dbf98b876aeb3506
# branch.head daily
# branch.upstream origin/daily
# branch.ab +0 -0
! WebInstall/
! src/ConEmu/graphics.src/
! src/WebInstall/
@Maximus5
Maximus5 / export_repo_issues_to_csv.py
Created Nov 28, 2016 — forked from unbracketed/export_repo_issues_to_csv.py
Export Issues from Github repo to CSV (API v3)
View export_repo_issues_to_csv.py
"""
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 / gist:502b6feb95cf29e431d046ac5fdd05f4
Created Jun 21, 2016 — forked from xyzzy-17-638/gist:2354412
Windows2000 で xyzzyのマルチフレーム版を動かすための修正案
View gist:502b6feb95cf29e431d046ac5fdd05f4

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

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

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

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

View clink.bat
@Maximus5
Maximus5 / ping.log
Created Apr 10, 2016
ping does not work in bash for Windows
View ping.log
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#
View Show-Dialog-at-0x0.ps1
[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()
View pacman.log
$ pacman -S base-devel
:: There are 52 members in group base-devel:
:: Repository msys
1) asciidoc 2) autoconf 3) autoconf2.13 4) autogen 5) automake-wrapper 6) automake1.10 7) automake1.11 8) automake1.12 9) automake1.13 10) automake1.14 11) automake1.15
12) automake1.6 13) automake1.7 14) automake1.8 15) automake1.9 16) bison 17) diffstat 18) diffutils 19) dos2unix 20) file 21) flex 22) gawk 23) gdb 24) gettext
25) gettext-devel 26) gperf 27) grep 28) groff 29) help2man 30) intltool 31) lemon 32) libtool 33) libunrar 34) m4 35) make 36) man-db 37) pacman 38) patch 39) patchutils
40) perl 41) pkg-config 42) pkgfile 43) rcs 44) scons 45) sed 46) swig 47) texinfo 48) texinfo-tex 49) ttyrec 50) unrar 51) wget 52) xmlto
Enter a selection (default=all):
warning: asciidoc-8.6.9-4 is up to date -- reinstalling
View fish-output.log
]0;fish /home/Max(BWelcome to fish, the friendly interactive shell
Type help(B for instructions on how to use fish
]0;fish /home/Max(B⏎ ~(B $ (B ~(B $ (Becho "***"echo(B "***"(B ~(B $ (Becho(B "***"(B
(B]0;echo /home/Max(B***
]0;fish /home/Max(B⏎ ~(B $ (B
@Maximus5
Maximus5 / TrueColour.md
Created Feb 16, 2016 — forked from XVilka/TrueColour.md
True Colour (16 million colours) support in various terminal applications and terminals
View TrueColour.md

Colours in terminal

It's a common confusion about terminal colours... Actually we have this:

  • plain ascii
  • ansi escape codes (16 colour codes with bold/italic and background)
  • 256 colour palette (216 colours + 16 ansi + 24 gray) (colors are 24bit)
  • 24bit true colour ("888" colours (aka 16 milion))
printf "\x1b[${bg};2;${red};${green};${blue}m\n"