View whoami.cmd
nslookup -type=txt
View stuns
# source :
# A list of available STUN server.
View checkHeaderPDF.cs
public bool IsPDFHeader(string fileName)
byte[] buffer = null;
FileStream fs = new FileStream(fileName, FileMode.Open, FileAccess.Read);
BinaryReader br = new BinaryReader(fs);
long numBytes = new FileInfo(fileName).Length;
//buffer = br.ReadBytes((int)numBytes);
buffer = br.ReadBytes(5);
View install_package.ps1
Install-Package NLog -Version 4.1.0 -Project ProjectName
View ReplaceString.cs
public static string ReplaceString(string str, string oldValue, string newValue, StringComparison comparison)
if (string.IsNullOrEmpty(oldValue))
throw new ArgumentNullException("oldValue");
StringBuilder sb = new StringBuilder();
View child_window.html
<!DOCTYPE html>
<button onclick="myFunction()">Open</button>
<button onclick="gotoUrl()">goto</button>
View promise_test_01.js
(function() {
var obj = (function() {
var promise = null;
var getPromise = function() {
if (!promise) {
View gist:ac4ff363bb1c6395da111231ce1dc106
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin master
View window_test.html
<!DOCTYPE html>
<button onclick="myFunction()">Open</button>
<button onclick="gotoUrl()">goto</button>
View references.ps1
# Script by Danny Tuppeny
function Get-ProjectReferences