git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| /* | |
| * C++ Competitive Programming Template. | |
| * | |
| * Author: Eduardo Cáceres de la Calle | |
| * | |
| * Feel free to fork it and adapt it to your needs: | |
| * https://gist.github.com/eduherminio/3466a18f8569460fe1012e67c1f58015 | |
| */ | |
| #include <iostream> |
Lifesavers:
Formatters:
| { | |
| "runtime": "NetCore31", | |
| "defaultVariables": null, | |
| "documentGenerator": { | |
| "aspNetCoreToOpenApi": { | |
| "project": null, | |
| "msBuildProjectExtensionsPath": null, | |
| "configuration": null, | |
| "runtime": null, | |
| "targetFramework": null, |
| $packageToFind = "Xxxxx" | |
| $found = (cat .\Project.csproj | Where { $_.Contains($packageToFind) }) -match '\d*\.\d*\.\d*' | |
| if ($found) { | |
| $packageVersion = $matches[0] | |
| Write-Host "Package version for ${packageToFind}: $packageVersion" | |
| } | |
| else{ | |
| Write-Host "Package version for ${packageToFind} not found" | |
| } |
| <Query Kind="Program"> | |
| <NuGetReference>Octokit</NuGetReference> | |
| <Namespace>Octokit</Namespace> | |
| </Query> | |
| void Main() | |
| { | |
| const string packageName = "MyPackage"; | |
| var searchResult = new RepositoryFinder() |
| netsh wlan show profile <wifi_name> key=clear |
| # C# | |
| public static string DateId() => DateTime.Now.ToString("yyyy'-'MM'-'dd'__'HH'_'mm'_'ss"); | |
| # Bash | |
| date +%Y-%m-%d__%H_%M_%S |
| $projectName = "" | |
| mkdir src && cd src | |
| dotnet new classlib -n "$projectName" | |
| dotnet new webapi -n "$projectName.Api" | |
| cd .. | |
| mkdir tests && cd tests | |
| dotnet new xunit -n "$projectName.Test" | |
| cd .. | |
| dotnet new sln -n "${projectName}Solution" |