Skip to content

Instantly share code, notes, and snippets.

View modesto's full-sized avatar

Modesto San Juan modesto

View GitHub Profile
@modesto
modesto / ObservableLinkedListNode.cs
Created February 28, 2017 10:35
Coding conventions sample 2
using System;
namespace System.Collections.Generics
{
partial class ObservableLinkedList<T>
{
public class ObservableLinkedListNode
{
private readonly ObservableLinkedList<T> _parent;
private readonly T _value;
@modesto
modesto / ObservableLinkedList.cs
Created February 28, 2017 10:30
Coding conventions sample 1
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Diagnostics;
using Microsoft.Win32;
namespace System.Collections.Generic
{
@modesto
modesto / Docker.md
Created November 3, 2016 17:44
Docker cheatsheet

Tail docker logs: docker logs -f

Redis with password: docker run -d -p 6379:6379 -t redis:alpine --requirepass

@modesto
modesto / PowerShell-CheatSheet.md
Last active March 16, 2021 17:19
PowerShell-CheatSheet

Memory allocated for each proccess:

get-process | Group-Object -Property ProcessName | Format-table Name, @{n='Mem (KB)';e={'{0:N0}' -f (($_.Group|Measure-Object WorkingSet -Sum).Sum / 1KB)};a='right'} -AutoSize

Get Temp folder:

$env:TEMP  # 8+3 format