Skip to content

Instantly share code, notes, and snippets.

View manualbashing's full-sized avatar
:shipit:

Manuel Batsching manualbashing

:shipit:
View GitHub Profile
@manualbashing
manualbashing / PowerShell Customization.md
Last active November 21, 2019 08:36 — 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.

@manualbashing
manualbashing / azure-custom-script-extension-run-as-user.ps1
Created January 6, 2020 22:31 — forked from gregjhogan/azure-custom-script-extension-run-as-user.ps1
How to run a script as a different user in an Azure VM Custom Script Extension
Enable-PSRemoting -Force
$credential = New-Object System.Management.Automation.PSCredential @(($AdminDomain + "\" + $AdminUsername), (ConvertTo-SecureString -String $AdminPassword -AsPlainText -Force))
Invoke-Command -FilePath $PSScriptRoot\setup-as-user.ps1 -Credential $credential -ComputerName localhost
@manualbashing
manualbashing / Test-AzDOPipeline.ps1
Created March 14, 2020 12:24 — forked from JustinGrote/Test-AzDOPipeline.ps1
Test Azure Devops Pipeline YAML
function Test-AzDOPipeline {
<#
.SYNOPSIS
Tests an Azure Devops Pipeline YAML configuration
.DESCRIPTION
This can be used to validate an Azure Devops pipeline configuration within a particular pipeline project.
#>
param (
#Your Azure Devops Organization Name
@manualbashing
manualbashing / Fallback_to_BOINC.md
Last active March 24, 2020 09:11 — forked from daniilyar/BOINC_Rosetta_home_Ubuntu_18
How to install BOINC and start calculating for Rosetta@home on Ubuntu 18.04 LTS

Install BOINC

sudo -i
apt -qqy update && apt install -y --auto-remove libsm6 libxext6 libnotify-bin libcurl3 && apt -qqy clean
cd /opt
wget -q https://boinc.berkeley.edu/dl/boinc_7.4.22_x86_64-pc-linux-gnu.sh -O boinc.sh
chmod ugo+x boinc.sh && ./boinc.sh # Will print 'use /opt/BOINC/run_manager to start BOINC'
cd BOINC
@manualbashing
manualbashing / settings.json
Last active August 19, 2020 07:14 — forked from thomasmaurer/settings.json
My Windows Terminal Settings settings.json August 2020
// This file was initially generated by Windows Terminal 1.1.2021.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
@manualbashing
manualbashing / install.md
Created November 5, 2020 13:17 — forked from kleo/install.md
Install Go 1.15.3 on Raspberry Pi

Installer

  1. yeet this into your terminal
sh -c "$(curl -fsSL https://gist.githubusercontent.com/kbeflo/9d981573aad107da6fa7ac0603259b3b/raw/35111746659e6146d4985e0ab451c023415f5f1b/install.sh)"
  1. logout
  2. login
@manualbashing
manualbashing / selenium.aci.yaml
Created November 10, 2020 16:09 — forked from roberto-mardeni/selenium.aci.yaml
Selenium on Azure Container Instances Sample
apiVersion: 2018-10-01
location: eastus
name: selenium
properties:
containers:
- name: selenium-hub
properties:
environmentVariables:
- name: 'JAVA_TOOL_OPTIONS'
value: '-Xmx800m'
@manualbashing
manualbashing / README.md
Created November 12, 2020 14:08 — forked from akashnimare/README.md
A Beginners Guide to writing a Kickass README ✍

Project title

A little info about your project and/ or overview that explains what the project is about.

Motivation

A short description of the motivation behind the creation and maintenance of the project. This should explain why the project exists.

Build status

Build status of continus integration i.e. travis, appveyor etc. Ex. -

Build Status

Ranger Cheatsheet

General

Shortcut Description
ranger Start Ranger
Q Quit Ranger
R Reload current directory
? Ranger Manpages / Shortcuts
@manualbashing
manualbashing / convert-to-spot.ps1
Created December 17, 2020 19:40 — forked from larryclaman/convert-to-spot.ps1
Convert an Azure VM to a Spot VM type
<# Convert a VM to a Spot VM
Based on sample script at https://docs.microsoft.com/en-us/azure/virtual-machines/windows/change-availability-set
NOTE: Extensions will not be copied to new instance!!
#>
# Set variables to your specifics
$resourceGroup = "myRG"
$vmName = "myVM"
# Get the details of the VM to be moved to the Availability Set