Skip to content

Instantly share code, notes, and snippets.

View lsmithmier's full-sized avatar
💭
Having fun and learning!

Larry Smithmier lsmithmier

💭
Having fun and learning!
View GitHub Profile
C:\Users\larry\source\repos\StringsVSStringBuilder\StringsVSStringBuilder\bin\Release\netcoreapp3.0>dotnet StringsVSStringBuilder.dll
// Validating benchmarks:
// ***** BenchmarkRunner: Start *****
// ***** Found 2 benchmark(s) in total *****
// ***** Building 1 exe(s) in Parallel: Start *****
// start dotnet restore /p:UseSharedCompilation=false /p:BuildInParallel=false /m:1 in C:\Users\larry\source\repos\StringsVSStringBuilder\StringsVSStringBuilder\bin\Release\netcoreapp3.0\c7bd1940-5da0-40b4-a3f4-349ecab0bc58
// command took 1.29s and exited with 0
// start dotnet build -c Release --no-restore /p:UseSharedCompilation=false /p:BuildInParallel=false /m:1 in C:\Users\larry\source\repos\StringsVSStringBuilder\StringsVSStringBuilder\bin\Release\netcoreapp3.0\c7bd1940-5da0-40b4-a3f4-349ecab0bc58
// command took 2.25s and exited with 0
// ***** Done, took 00:00:03 (3.65 sec) *****
C:\Users\larry\source\repos\StringsVSStringBuilder\StringsVSStringBuilder\bin\Release\netcoreapp3.0>dotnet StringsVSStringBuilder.dll
// Validating benchmarks:
// ***** BenchmarkRunner: Start *****
// ***** Found 2 benchmark(s) in total *****
// ***** Building 1 exe(s) in Parallel: Start *****
// start dotnet restore /p:UseSharedCompilation=false /p:BuildInParallel=false /m:1 in C:\Users\larry\source\repos\StringsVSStringBuilder\StringsVSStringBuilder\bin\Release\netcoreapp3.0\e5bf7e3c-2770-46c2-a2d4-1950815a271d
// command took 3.4s and exited with 0
// start dotnet build -c Release --no-restore /p:UseSharedCompilation=false /p:BuildInParallel=false /m:1 in C:\Users\larry\source\repos\StringsVSStringBuilder\StringsVSStringBuilder\bin\Release\netcoreapp3.0\e5bf7e3c-2770-46c2-a2d4-1950815a271d
// command took 4.84s and exited with 0
@lsmithmier
lsmithmier / Program.cs
Created November 16, 2018 14:00
NullCheck
using System;
namespace SyntaxTester
{
class Program
{
static void Main(string[] args)
{
NullCheck nullCheck = null;
Console.WriteLine(string.Format("=>{0}", nullCheck==null?"":nullCheck.Message));
using System;
namespace SyntaxTester
{
class Program
{
static void Main(string[] args)
{
NullCheck nullCheck = null;
Console.WriteLine(string.Format("=>{0}", nullCheck?.Message));
#kubeadm init --pod-network-cidr=10.244.0.0/16
export KUBECONFIG=/etc/kubernetes/admin.conf
sysctl net.bridge.bridge-nf-call-iptables=1
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/c5d10c8/Documentation/kube-flannel.yml
kubectl get pods --all-namespaces
@lsmithmier
lsmithmier / baseK8s.sh
Last active October 19, 2018 02:49
Install K8s to Ubuntu
apt update
apt upgrade -y
apt dist-upgrade -y
apt autoremove -y
apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
apt update
apt install docker-ce -y
usermod -aG docker $USER
@lsmithmier
lsmithmier / test.cs
Created June 30, 2016 21:41
Example of handling exceptions in a task list.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TestListAsyncAndExceptions
{
class Program
{
@lsmithmier
lsmithmier / cURL gists
Last active December 15, 2015 11:19
Get the Gists for a user (me) using cURL
C:\>curl https://api.github.com/users/lsmithmier/gists