Skip to content

Instantly share code, notes, and snippets.

@jacqinthebox
jacqinthebox / post-install.md
Last active January 29, 2022 10:47
Post Install Ubuntu

Post Install Ubuntu 19.04 and deriviates

Update System

sudo apt-get update -y && sudo apt-get upgrade -y
sudo apt-get install -y curl git gitk vim-nox p7zip-full \
    build-essential linux-headers-$(uname -r) \
    dkms gdebi zsh gnome-tweak-tool gparted \
    software-properties-common \
@jacqinthebox
jacqinthebox / agnoster-newline.zsh-theme
Created November 4, 2017 12:08 — forked from nweddle/agnoster-newline.zsh-theme
Agnoster ZSH Theme with New Line
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts).
# Make sure you have a recent version: the code points that Powerline
@jacqinthebox
jacqinthebox / settings.js
Last active March 17, 2018 13:10
Visual Studio Code Settings #vscode
{
"workbench.iconTheme": "material-icon-theme",
"editor.fontSize": 12,
"window.zoomLevel": 1,
"terminal.integrated.fontFamily": "Meslo LG M DZ for Powerline",
"window.restoreWindows": "none",
"terminal.integrated.fontSize": 12,
"editor.minimap.enabled": false,
"editor.multiCursorModifier": "ctrlCmd",
"workbench.colorTheme": "Monokai Dimmed",
@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}
@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 / 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 / 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 / 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 / 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"