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
# WARNING This is just my syntax reference for git commands, I'm aware of the implications of running these commands. | |
# Make sure you know what these do before running them on your own system | |
# RESET undo last commit and keep changes | |
git reset --soft HEAD^ | |
# RESET undo last commit and DROP changes | |
git reset --hard HEAD^ | |
# PATCH create from specific commit |
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
public void AuthenticateSmtp() | |
{ | |
// Remember to add the following references: | |
// using System.Net; | |
// using System.Net.Mail; | |
// Specify the credentials of the user running the current process. | |
SmtpClient authClient = new SmtpClient("smtp.test.net"); | |
authClient.Credentials = CredentialCache.DefaultNetworkCredentials; |
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
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
using System.Net; | |
using System.Net.Mail; | |
namespace TestApp | |
{ | |
class Class1 | |
{ |
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
public void HelloWorld() | |
{ | |
Console.WriteLine("Hello World!"); | |
Console.WriteLine("My first GitHub code, merely a test."); | |
} |