Skip to content

Instantly share code, notes, and snippets.

View phwelo's full-sized avatar
🌈

Daniel Agans phwelo

🌈
View GitHub Profile
set-itemproperty -path "HKCU:Control Panel\Desktop" -name WallPaper -value accipiter.png
@phwelo
phwelo / itunes-podcast-categories.yml
Last active February 5, 2018 20:16 — forked from codeincontext/itunes-podcast-categories.yml
[iTunes Podcast Categories List] itunes-podcast-categories.yml #YML #iTunes
- Arts:
- Design
- Fashion & Beauty
- Food
- Literature
- Performing Arts
- Spoken Word
- Visual Arts
- Business:
- Business News
@phwelo
phwelo / pushover.rb
Last active February 5, 2018 19:16 — forked from milligramme/pushover.rb
[Pushover for Ruby] Pushover script for sending message to pushover from Ruby #Ruby #Pushover
require "net/https"
url = URI.parse("https://api.pushover.net/1/messages")
req = Net::HTTP::Post.new(url.path)
req.set_form_data({
:token => "abc123",
:user => "user123",
:message => "hello world",
})
res = Net::HTTP.new(url.host, url.port)
@phwelo
phwelo / setup_winrm.ps1
Last active February 6, 2018 02:03 — forked from mitchellh/setup_winrm.txt
[Packer WinRM config] Userdata for packer to config winrm in a sane way #Powershell #WinRM #Packer
<powershell>
winrm quickconfig -q
winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="300"}'
winrm set winrm/config '@{MaxTimeoutms="1800000"}'
winrm set winrm/config/service '@{AllowUnencrypted="true"}'
winrm set winrm/config/service/auth '@{Basic="true"}'
netsh advfirewall firewall add rule name="WinRM 5985" protocol=TCP dir=in localport=5985 action=allow
netsh advfirewall firewall add rule name="WinRM 5986" protocol=TCP dir=in localport=5986 action=allow