This guide has moved to a GitHub repository to enable collaboration and community input via pull-requests.
https://github.com/alexellis/k8s-on-raspbian
Alex
| function Get-DadJoke { | |
| [cmdletBinding()] | |
| Param() | |
| process { | |
| $header = @{ | |
| Accept = "application/json" | |
| } | |
| $joke = Invoke-RestMethod -Uri "https://icanhazdadjoke.com/" -Method Get -Headers $header | |
| $joke.joke |
| param ( | |
| [switch]$RenameOrphanLayers | |
| ) | |
| If ($RenameOrphanLayers) { | |
| Write-Warning "$($env:COMPUTERNAME) -RenameOrphanLayers option enabled, will rename all orphan layers" | |
| } | |
| # Get known layers on Docker images | |
| [array]$ImageDetails += docker images -q | ForEach { docker inspect $_ | ConvertFrom-Json } |
| function Prompt(){ | |
| $W = Split-Path -leaf -path (Get-Location) | |
| $prompt = Write-Prompt "$($env:UserName)@$($env:ComputerName):" -ForegroundColor Green | |
| $prompt += Write-Prompt $W -ForegroundColor DarkCyan | |
| $prompt += Write-Prompt '>' | |
| return ' ' | |
| } | |
| function Remove-StoppedContainers { | |
| docker container rm $(docker container ls -q) |
This guide has moved to a GitHub repository to enable collaboration and community input via pull-requests.
https://github.com/alexellis/k8s-on-raspbian
Alex
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.
| // === Convert SQL Compact Edition database file to SQLite database file === | |
| // Dump SQL Compact Edition data to SQLite compatible SQL file | |
| // - Command line tools: https://github.com/ErikEJ/SqlCeToolbox/wiki/Command-line-tools | |
| // - ExportSQLCE40.exe "Data Source=D:\Northwind.sdf;" Northwind.sql sqlite | |
| // The SQL file created by the SqlCeToolbox contains GUID data as text. | |
| // - Connection string with GUID as text: https://www.connectionstrings.com/sqlite/ | |
| // Data Source=c:\mydb.db;Version=3;BinaryGUID=False; | |
| // - Recommended is to store GUID data as binary instead of text (requires less space) |
Early in August 2016 Microsoft released the Windows 10 Anniversary Update. There were a number of changes, but the one that got me to actually take the time to install the update was "Bash on Ubuntu on Windows". This feature would install Ubuntu Linux without the kernel. It would run linux in user-mode. Linux would run the commands while Windows does all the work/processing.
For an upcoming project I needed to get Kubernetes running. Being as Kubernetes is not able to be run in Windows the normally accepted way to procees is to create a virtual Linux box and run it from there. I wanted to see if Kubernetes would run in Bash on Ubuntu on Windows.
This is how I got it to work:
What if your team uses TFS, but you want offline support? You can have a Git repo as well, but then getting your changes to TFS is burdensome. Here’s where a GIT to TFS bridge would be handy.
Here’s how to keep a TFS repository foo, and a GIT repository bar, in sync. First step is you need to create a new TFS workspace:
cd \
tf workspace /new /noprompt Foo