Skip to content

Instantly share code, notes, and snippets.

View atao's full-sized avatar
🇲🇫

ATAO atao

🇲🇫
  • Share-Link (FR)
View GitHub Profile
[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing")
[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
[void] [System.Windows.Forms.Application]::EnableVisualStyles()
$Form = New-Object system.Windows.Forms.Form
$Form.Size = New-Object System.Drawing.Size(250,300)
$Form.Text = "Tools"
$Icon = New-Object system.drawing.icon ("C:\Program Files (x86)\ASUS\ASUS Smart Gesture\DesktopManager\resource\WindowStoreApp.ico")
$Form.Icon = $Icon
$Form.AutoSize = $True
$xml = [xml]@'
<Users>
<User Name="Foo">
<Friends>
<Friend Name="Bar"/>
</Friends>
</User>
<User Name="Foo2" />
<User Name="Foo3">
<Friends>
@atao
atao / eject_random.ps1
Last active July 3, 2017 22:27
Open CD Drive in random time!
#PowerShell v3
#02/06/2016
Clear-Host
Sleep(1)
Write-Host " _______ ___ __ " -ForegroundColor DarkGreen
Sleep(1)
Write-Host "|#######| |###||##| " -ForegroundColor Green
Sleep(1)
Write-Host "|### ___| |###||__| " -ForegroundColor DarkGreen
Sleep(1)