This file contains 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
Powershell HTTP Request | |
$r = [System.Net.WebRequest]::Create("http://url/") | |
$resp = $r.GetResponse() | |
$reqstream = $resp.GetResponseStream() | |
$sr = new-object System.IO.StreamReader $reqstream | |
$result = $sr.ReadToEnd() | |
write-host $result | |
Username and passwords |
This file contains 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
SET SERVEROUTPUT ON | |
exec dbms_output.enable(1000000); | |
DECLARE | |
v_typ VARCHAR2(32); | |
v_name VARCHAR2(32); | |
v_constraint VARCHAR2(32); | |
v_sql VARCHAR2(100); | |
CURSOR c_objekte IS | |
SELECT typ, NAME |
This file contains 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
## patching | |
git format-patch -M origin/master | |
git am < patchfilename.patch | |
##Mirror an repository | |
for remote in `git branch -r | grep -v master `; \ | |
do git checkout --track $remote ; done | |
git push --all ssh://repo.git | |
git push --tagsssh://repo.git |
This file contains 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
[CmdletBinding()] | |
Param( | |
[Parameter(Mandatory=$True,Position=1)] | |
[string]$hostname, | |
[Parameter(Mandatory=$True,Position=2)] | |
[int]$port | |
) | |
try { |