Skip to content

Instantly share code, notes, and snippets.

View alextercete's full-sized avatar

Alex Tercete alextercete

View GitHub Profile
@iamarcel
iamarcel / Structuring Neat .NET Core Command Line Apps Neatly.org
Created September 7, 2016 07:30
Structuring Neat .NET Core Command Line Apps Neatly
@iamarcel
iamarcel / Creating Neat .NET Core Command Line Apps.md
Last active November 28, 2023 10:41
Creating Neat .NET Core Command Line Apps

Creating Neat .NET Core Command Line Apps

You can now read this on my (pretty) website! Check it out here.

Every reason to get more HackerPoints™ is a good one, so today we're going to write a neat command line app in .NET Core! The Common library has a really cool package Microsoft.Extensions.CommandlineUtils to help us parse command line arguments and structure our app, but sadly it's undocumented.

No more! In this guide, we'll explore the package and write a really neat

@CarlosMecha
CarlosMecha / additional_configuration.sh
Created December 22, 2014 05:11
Add additional configuration to the user's Bash profile
#
# Append those lines to the user's `.bashrc`
#
# If the `.bash.d` folder exists, it would 'source' any `sh` script file.
# Keep your configuration organized :)
#
if [ -d ~/.bash.d ]; then {
for i in ~/.bash.d/*.sh; do {
if [ -r $i ]; then {
@addyosmani
addyosmani / package.json
Last active January 18, 2024 21:31
npm run-scripts boilerplate
{
"name": "my-app",
"version": "1.0.0",
"description": "My test app",
"main": "src/js/index.js",
"scripts": {
"jshint:dist": "jshint src/js/*.js",
"jshint": "npm run jshint:dist",
"jscs": "jscs src/*.js",
"browserify": "browserify -s Validating -o ./dist/js/build.js ./lib/index.js",
@rdumont
rdumont / SettingsValueEqualityComparer.cs
Created October 29, 2014 03:29
Comparing Two Objects: How Hard Can It Be?
using System;
using System.Collections.Generic;
public class SettingsValueEqualityComparer : IEqualityComparer<object>
{
public new bool Equals(object a, object b)
{
// If the equality operator considers them to be equal, great!
// Both being null should fall in this case.
if (a == b)
@davidfowl
davidfowl / dotnetlayout.md
Last active March 26, 2024 13:55
.NET project structure
$/
  artifacts/
  build/
  docs/
  lib/
  packages/
  samples/
  src/
 tests/
#!/bin/sh
SOLUTION_FILE="src/Foo.sln"
MSBUILD_PATH="C:/Windows/Microsoft.NET/Framework64/v4.0.30319/MSBuild.exe"
NUGET_PATH="nuget"
NUGET_SOURCE="https://www.myget.org/F/myfeed/"
NUNIT_PATH="src/Packages/NUnit.Runners.2.6.3/tools/nunit-console.exe"
NUGET_PROJECTS=("src/Foo.Client/Foo.Client.csproj")
@P4
P4 / default.reg
Last active March 4, 2024 21:47
Color schemes for Windows Command Prompt
Windows Registry Editor Version 5.00
; Default color scheme
; for Windows command prompt.
; Values stored as 00-BB-GG-RR
[HKEY_CURRENT_USER\Console]
; BLACK DGRAY
"ColorTable00"=dword:00000000
"ColorTable08"=dword:00808080
; BLUE LBLUE
@gdvalle
gdvalle / putty-monokai.reg
Created December 2, 2012 05:24
Monokai style theme for PuTTY; colors copied from ST2's theme
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\monokai]
"Colour21"="255,255,255"
"Colour20"="245,222,179"
"Colour19"="200,240,240"
"Colour18"="0,217,217"
"Colour17"="179,146,239"
"Colour16"="174,129,255"
"Colour15"="122,204,218"

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: