Skip to content

Instantly share code, notes, and snippets.

@jacqinthebox
jacqinthebox / providers
Created February 27, 2019 10:14
Azure Microsoft Resource Providers
Microsoft.AAD
Microsoft.ADHybridHealthService
Microsoft.Advisor
Microsoft.AlertsManagement
Microsoft.AnalysisServices
Microsoft.ApiManagement
Microsoft.Authorization
Microsoft.Automation
Microsoft.AzureActiveDirectory
Microsoft.Compute
@jacqinthebox
jacqinthebox / jenkins-agent.sh
Created February 1, 2019 14:05
Create Jenkins agent
apt-get update && apt-get -y upgrade
# useradd jenkins
add-apt-repository universe && sudo apt install openjdk-8-jre-headless -y
# https://www.microsoft.com/net/download/linux-package-manager/ubuntu18-04/sdk-current
wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
dpkg -i packages-microsoft-prod.deb
apt-get install apt-transport-https -y
apt-get update && apt-get install dotnet-sdk-2.1 -y
@jacqinthebox
jacqinthebox / vimrc
Last active August 24, 2018 05:44
New vimrc (optimized for note taking)
set laststatus=2
set number
set wrap
set linebreak
set expandtab
set shiftwidth=2
set softtabstop=2
set clipboard=unnamedplus
execute pathogen#infect()
filetype plugin indent on
@jacqinthebox
jacqinthebox / shortcuts.md
Last active December 22, 2019 17:43
[Keyboard Shortcuts]Keyboard Shortcuts #markdown #vim #vscode
@jacqinthebox
jacqinthebox / Vagrantfile.rb
Last active March 11, 2018 09:37
Best Vagrantfile #ruby #vagrant
$hostfile = <<HOSTFILE
Add-Content $ENV:windir\\System32\\drivers\\etc\\hosts "192.168.56.20 `t `t mysql01.dev.datbedrijf.nl"
netsh advfirewall set allprofiles state off
HOSTFILE
Vagrant.configure(2) do |config|
config.vm.define "dc01" do |dc01_config|
dc01_config.vm.box = "windows_server_2016"
dc01_config.vm.hostname = "dc01"
@jacqinthebox
jacqinthebox / update-outdated-brew-casks.sh
Created March 5, 2018 06:15 — forked from christopheranderton/update-outdated-brew-casks.sh
Upgrade outdated brew casks. One liner, and the ”official” way to do it without using different hacks or scripts. However, it does not really replace some scripts out there, as in-app updates is not seen by Homebrew.
# Upgrade / Update outdated casks installed.
# --------------------------------------------------------------------------------
# Looks for outdated casks and installs the the latest version.
# User data (like application preferences) is intact.
# --------------------------------------------------------------------------------
brew cask reinstall `brew cask outdated`
# List installed outdated casks
# More info: https://github.com/caskroom/homebrew-cask/issues/29301
@jacqinthebox
jacqinthebox / fromscratch.desktop
Last active February 11, 2018 09:53
Ubuntu launcher and icon to favorites
#!/usr/bin/env xdg-open
# copy to /usr/share/applications
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec=/home/jacqueline/Applications/From-Scratch/FromScratch
Name=FromScratch
Comment=FromScratch
@jacqinthebox
jacqinthebox / virtualbox-17.10.sh
Last active April 2, 2018 12:29
virtualbox-17.10.sh
#!/bin/bash
# Install Ubuntu 18.10 Desktop
sudo apt-get update -y && sudo apt-get upgrade -y
sudo apt-get install -y wget curl git gitk vim-nox build-essential linux-headers-$(uname -r) dkms gdebi shutter gnome-tweak-tool
# install Powerline fonts
mkdir ~/gitrepos
cd gitrepos
git clone https://github.com/powerline/fonts.git
@jacqinthebox
jacqinthebox / NewComputer.ps1
Created January 9, 2018 17:29
Mighty Powershell #powershell
Function New-Computer {
param(
[Parameter(Mandatory = $true)]
[ValidateSet('small','medium','large','x-large')]
[string]$installtype,
[Parameter(Mandatory = $true)]
[bool]$virtualmachine
)
@jacqinthebox
jacqinthebox / Set-Clusterparameter.ps1
Last active November 16, 2017 13:16
Set cluster parameters
Import-Module FailoverClusters
$ClusterNetworkName = "Cluster Network 1"
$IPResourceName = "IP Address 10.2.1.10"
$ILBIP = "10.2.1.10"
[int]$ProbePort = 60005
Get-ClusterResource $IPResourceName | Set-ClusterParameter -Multiple @{"Address"="$ILBIP";"ProbePort"=$ProbePort;"SubnetMask"="255.255.255.255";"Network"="$ClusterNetworkName";"EnableDhcp"=0}