Skip to content

Instantly share code, notes, and snippets.

View solrevdev's full-sized avatar
💭
🤓

John Smith solrevdev

💭
🤓
View GitHub Profile
@solrevdev
solrevdev / PowerShell Customization.md
Created May 30, 2018 08:21 — forked from jchandra74/PowerShell Customization.md
PowerShell, Cmder / ConEmu, Posh-Git, Oh-My-Posh, Powerline Customization

Pimping Up Your PowerShell & Cmder with Posh-Git, Oh-My-Posh, & Powerline Fonts

Backstory (TLDR)

I work as a full-stack developer at work. We are a Windows & Azure shop, so we are using Windows as our development platform, hence this customization.

For my console needs, I am using Cmder which is based on ConEmu with PowerShell as my shell of choice.

Yes, yes, I know nowadays you can use the Linux subsystem on Windows 10 which allow you to run Ubuntu on Windows. If you are looking for customization of the Ubuntu bash shell, check out this article by Scott Hanselman.

@solrevdev
solrevdev / VisualStudio Code Remote attach
Created June 12, 2018 10:25 — forked from VladimirAkopyan/VisualStudio Code Remote attach
VisualStudio Code Remote attach and debug
{
"name": ".NET Core Remote Attach",
"type": "coreclr",
"request": "attach",
"processId": "${command:pickRemoteProcess}",
"pipeTransport":
{
"debuggerPath": "~/vsdbg/vsdbg",
"pipeCwd": "${workspaceFolder}",
@solrevdev
solrevdev / .editorconfig
Last active July 3, 2018 09:04
.editorconfig file for vscode and visual studio - work in progress
# To learn more about .editorconfig see https://aka.ms/editorconfigdocs
root = true
# All files
[*]
indent_style = tab
tab_size = 4
# Code files
[*.{cs,csx,vb,vbx}]
@solrevdev
solrevdev / Program.cs
Created July 16, 2018 09:15
Program.cs that adds json file per machine name
using System;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Configuration;
using System.Reflection;
namespace web
{
@solrevdev
solrevdev / git-update-feature-branch.md
Last active October 24, 2023 08:38 — forked from santisbon/Update-branch.md
Updating local master from remote then merge those new changes to a feature branch

Updating a feature branch

First we'll update your local master branch. Go to your local project and check out the branch you want to merge into (your local master branch)

$ git checkout master

Fetch the remote, bringing the branches and their commits from the remote repository. You can use the -p, --prune option to delete any remote-tracking references that no longer exist in the remote. Commits to master will be stored in a local branch, remotes/origin/master

How to Enable Wi-Fi on MacBook, Mac Mini, MacBook Air for Ubuntu/Linux OS

By default older Mac computer models have driver issues with the Broadcom Wi-Fi chip. Most instructions online (such as this one from the official Ubuntu docs @ https://help.ubuntu.com/community/Macmini5-1/Precise) suggest to use sudo apt-get and install these packages from the PPA.

BUT you don't have Internet so you can't use apt-get! Instead you can use a different computer to download the packages, then transfer them over.

In the instructions below, you will need to replace sid in the download URL's with the proper version of Debian your version of Ubuntu/Linux is using. To find which version you should use, you can view the chart at https://askubuntu.com/questions/445487/what-debian-version-are-the-different-ubuntu-versions-based-on#445496. If you're using jessie for example, then replace all sid with jessie in the links below.

  1. Download b43-fwcutter @ (*
@solrevdev
solrevdev / .dockerignore
Created August 17, 2018 16:25
.dockerignore
bin/
obj/
node_modules/
.git/
@solrevdev
solrevdev / now.txt
Created August 29, 2018 03:33
now output with linker asp.net docker etc.
~/Code/github/now-examples/dotnetcore under solrevdev
> Synced 1 file (545B) [1s]
> https://dotnetcore-wvzsdtgcui.now.sh [in clipboard] (bru1) [6s]
> Building…
> Sending build context to Docker daemon 13.31kB
> Step 1/13 : FROM microsoft/dotnet:2.1-sdk-alpine AS build
> ---> 11a4b528481d
> Step 2/13 : WORKDIR /app
> ---> Using cache
> ---> 34d208ec67d9
@solrevdev
solrevdev / extensions.json
Last active March 28, 2019 10:02
my installed vscode-insider extensions
{
"recommendations": [
"CoenraadS.bracket-pair-colorizer",
"dunstontc.viml",
"eamodio.gitlens",
"EditorConfig.EditorConfig",
"emilast.LogFileHighlighter",
"esbenp.prettier-vscode",
"fabiospampinato.vscode-todo-plus",
"GitHub.vscode-pull-request-github",
@solrevdev
solrevdev / .vimrc
Last active January 14, 2019 09:51
.vimrc dotnetcore friendly
execute pathogen#infect()
set encoding=utf-8
" Use ~x on an English Windows version or ~n for French.
if has("win32")
au GUIEnter * simalt ~x
endif
if &compatible
set nocompatible