Skip to content

Instantly share code, notes, and snippets.

public class Program
{
public static void Main()
{
JobHost host = new JobHost();
host.RunAndBlock();
}
}
class Program
{
public static void Main()
{
JobHost host = new JobHost();
//host.RunAndBlock();
host.Call(typeof(Program).GetMethod("ProcessSomethinng"));
}
}
//code extracted
<ipSecurity enableReverseDns="true" allowUnlisted="false">
<add ipAddress="123.123.123.123" allowed="true" />
<add domainName="learnwithshahriar.wordpress.com" allowed="true" />
</ipSecurity>
//code extracted
<ipSecurity allowUnlisted="false" denyAction="Unauthorized">
//code extracted
<ipSecurity allowUnlisted="true">
<add ipAddress="123.200.0.0" subnetMask="255.255.0.0" allowed="true" />
</ipSecurity>
<system.webServer>
<security>
<ipSecurity allowUnlisted="false">
<add ipAddress="123.123.123.123" allowed="true" />
</ipSecurity>
<dynamicIpSecurity>
<denyByRequestRate enabled="true" maxRequests="15" requestIntervalInMilliseconds="5000"/>
</dynamicIpSecurity>
</security>
</system.webServer>
<system.web>
<httpRuntime enableVersionHeader="false"/>
</system.web>
<system.webServer>
<httpProtocol>
<customHeaders>
<remove name="X-Powered-By"/>
</customHeaders>
</httpProtocol>
</system.webServer>
<system.webServer>
<security>
<requestFiltering removeServerHeader="true"/>
</security>
</system.webServer>
@shahriarhossain
shahriarhossain / gist:35bf8542103b01dfddb5
Last active September 15, 2015 10:38
Show specific keyboard at mobile(iPhone) on textbox focus
//Number keyboard show
<input type="number" min="0" inputmode="numeric" pattern="[0-9]*" title="Non-negative integral number">
or
<input type="tel" class="form-control" name="phone" id="phoneInput" placeholder="(000) 000-0000" required/>
//URL specifc keyboard
<input type="url" /><br />
//Email specifc keyboard
<input type="email" /><br />