This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#SingleInstance force | |
; Shortcut keys | |
#i::Run, "C:\Program Files\Internet Explorer\iexplore.exe", , %HOME% | |
#b::Run, "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe", , %HOME% | |
#t::Run, "C:\Program Files\ConEmu\ConEmu64.exe", , %HOME% | |
#v::Run, "C:\Program Files (x86)\Vim\vim74\gvim.exe", , %HOME% | |
#s::Run, "C:\Program Files\Sublime Text 3\sublime_text.exe", , %HOME% | |
#c::Run, "%windir%\system32\calc.exe", , %HOME% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# profile folder | |
$profileFolder = split-path $profile | |
# save last 100 history items on exit; with the 'exit' command | |
$historyPath = Join-Path $profileFolder "ps_history.xml" | |
# hook powershell's exiting event and hide the registration with -supportevent. | |
Register-EngineEvent -SourceIdentifier powershell.exiting -SupportEvent -Action { | |
Get-History -Count 100 | Export-Clixml (Join-Path $profileFolder "ps_history.xml") } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import httplib | |
import xml.dom.minidom | |
HOST = "www.domain.nl" | |
API_URL = "/api/url" | |
def do_request(xml_location): | |
"""HTTP XML Post request""" | |
request = open(xml_location, "r").read() |