Skip to content

Instantly share code, notes, and snippets.

View tylersloeper's full-sized avatar

Tyler L. tylersloeper

View GitHub Profile
@KyleMit
KyleMit / HomeController.cs
Last active February 2, 2023 00:26
Heartbeat to Keep Session Alive in ASP.NET MVC
[HttpPost]
public JsonResult KeepSessionAlive()
{
return new JsonResult {Data = "Success"};
}
@c0ldlimit
c0ldlimit / git_newrepo
Created November 16, 2012 17:14
Git: Push a new or existing repo to Github
# Create a new repository on the command line
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/c0ldlimit/vimcolors.git
git push -u origin master
# Push an existing repository from the command line