Skip to content

Instantly share code, notes, and snippets.

View rapgru's full-sized avatar
📚
Studying

Raphael Gruber rapgru

📚
Studying
  • TU Wien
  • Austria
View GitHub Profile
@rapgru
rapgru / provision.sh
Last active April 5, 2023 21:51
WSL Ubuntu 18.04 LTS Provisioning Script
#!/bin/bash
echo "Provisioning WSL Ubuntu 1804"
# This script needs to be repeatable !
WindowsHome="{{home_folder}}"
function addCdAlias() {
name="$1"
path="$2"
if(!(Get-Command git -ErrorAction SilentlyContinue)) {
$gitDir = "$env:LOCALAPPDATA\CustomGit"
if(Test-Path $gitDir) { Remove-Item -Path $gitDir -Recurse -Force }
New-Item -Path $gitDir -ItemType Directory
$gitLatestReleaseApi = (Invoke-WebRequest -UseBasicParsing https://api.github.com/repos/git-for-windows/git/releases/latest).Content | ConvertFrom-Json
$mingitObject = $gitLatestReleaseApi.assets `
| Where-Object {$_.name -match "MinGit-[\d.]*?-64-bit.zip"} `
| Select-Object browser_download_url
@rapgru
rapgru / extensions.json
Last active August 2, 2020 12:04
VS Code Configuration
{
"extensions": [
"aaron-bond.better-comments",
"mrmlnc.vscode-duplicate",
"pkief.material-icon-theme",
"miguelsolorio.min-theme",
"sdras.night-owl",
"ms-vscode.powershell",
"mechatroner.rainbow-csv",
"ms-vscode-remote.remote-ssh",
@rapgru
rapgru / settings.json
Last active May 8, 2020 12:15
Windows Terminal Configuration
// 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",
"": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{c6eaf9f4-32a7-5fdc-b5cf-066e8a4b1e40}",
"launchMode": "maximized",
"profiles":
{
"defaults":
@rapgru
rapgru / generate.sh
Last active March 1, 2022 18:28
Color Scheme List for Windows Terminal Configuration based on https://github.com/Mayccoll/Gogh
#!/bin/bash
# call this from inside the /themes folder of https://github.com/Mayccoll/Gogh
# do not place this as .sh file into /themes as this leads to double execution
createColors() {
source $1
# White -> brightWhite
# Light gray -> white
@rapgru
rapgru / setup.ps1
Last active March 4, 2022 11:13
Boxstarter Script for Setting up My Laptop
<#
Description: Boxstarter script for a development machine with VS 2019 and Ubuntu WSL with nix
Author: https://github.com/rapgru
Last Updated: 23.04.2020
#>
# ---- Init ---- #
Update-ExecutionPolicy Unrestricted
@rapgru
rapgru / cloudSettings
Created August 1, 2019 04:17
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-08-01T04:17:44.872Z","extensionVersion":"v3.4.1"}