Skip to content

Instantly share code, notes, and snippets.

@janezdu
janezdu / emaildefaults
Created May 31, 2017 02:25
krita settings
[Defaults]
Profile=Default
[PROFILE_Default]
ServerType=

Keybase proof

I hereby claim:

  • I am janezdu on github.
  • I am cyphra (https://keybase.io/cyphra) on keybase.
  • I have a public key ASBROYg1Pc7SuSvcdtunY-J6YGh4wyFHMbCG84UAPFZXQQo

To claim this, I am signing this object:

Boxstarter: Installing package https://gist.githubusercontent.com/zhuangjindu/ff
da6e131400d8facf1098ee2ab8e432/raw/linebyline
Boxstarter Version 2.8.29
(c) 2016 Matt Wrock. http://boxstarter.org
Please type CTRL+C or close this window to exit Boxstarter if you do not want to
risk a reboot during this Boxstarter install.
Boxstarter may need to reboot your system.
Please provide your password so that Boxstarter may automatically log you on.
@janezdu
janezdu / snippet
Last active August 12, 2016 17:25
if (-not ($test-path "C:\Setup\GitDrive.txt")){
$drives = get-psdrive -psprovider filesystem | foreach-object -process { $_.Name + ":"} # find available drives, including empty DVD drives.
$changeddrive = (ls function:[d-z]: -n | ?{!($drives -contains $_)}| select -First 1)[0] # Get letter of first available drive letter
$devPath = "$changeddrive:\Development"
$newsize = (Get-WmiObject Win32_logicaldisk | ForEach-Object -Process { $_.Size })[0]
$newsize = $newsize - 10*1gb
Resize-Partition -DiskNumber 0 -DriveLetter C -size $newsize
New-Partition -DiskNumber 0 -DriveLetter $changeddrive -UseMaximumSize
format-volume -driveletter $changeddrive -Confirm:$false

Keybase proof

I hereby claim:

  • I am zhuangjindu on github.
  • I am cyphra (https://keybase.io/cyphra) on keybase.
  • I have a public key ASBROYg1Pc7SuSvcdtunY-J6YGh4wyFHMbCG84UAPFZXQQo

To claim this, I am signing this object: