This Gist goes over setting up a gulp workflow that will:
- watch for any sass changes, then compiles sass source into css
- watch for any changes in the public directory, and trigger live-reload
- serve static content in
public/
| internal static class FormsAuthenticationTicketHelper | |
| { | |
| private const byte CURRENT_TICKET_SERIALIZED_VERSION = 0x01; | |
| private const int MAX_TICKET_LENGTH = 4096; | |
| // Resurrects a FormsAuthenticationTicket from its serialized blob representation. | |
| // The input blob must be unsigned and unencrypted. This function returns null if | |
| // the serialized ticket format is invalid. The caller must also verify that the | |
| // ticket is still valid, as this method doesn't check expiration. |
$/
artifacts/
build/
docs/
lib/
packages/
samples/
src/
tests/
| // Router object | |
| var Router = function () { | |
| var self = this; | |
| // Watch hashchange | |
| window.onhashchange = function () { | |
| self.process(); | |
| }; | |
| // Run on load |
| public void FormsAuthentication_OnAuthenticate(object sender, FormsAuthenticationEventArgs args) | |
| { | |
| var machineKeySection = (MachineKeySection) WebConfigurationManager.GetWebApplicationSection("system.web/machineKey"); | |
| var cookie = args.Context.Request.Cookies[".ASPXAUTH"]; | |
| if (cookie == null || !Regex.IsMatch(cookie.Value, "^([a-fA-F0-9]{2})+$")) | |
| return; | |
| var cookieBytes = ByteUtility.ToBytes(cookie.Value); | |
| int signatureLength; |
| # /etc/security/limits.conf | |
| * soft nofile 999999 | |
| * hard nofile 999999 | |
| root soft nofile 999999 | |
| root hard nofile 999999 | |
| =========================================================== | |
| # /etc/sysctl.conf | |
| # sysctl for maximum tuning |