Skip to content

Instantly share code, notes, and snippets.

View rscircus's full-sized avatar
πŸ’­
πŸ‘‹

Roland Siegbert rscircus

πŸ’­
πŸ‘‹
View GitHub Profile
@rscircus
rscircus / matlab_refresher.m
Created July 21, 2022 10:58
OCTAVE/MATLAB refresher while preparing for Interviews
format compact
%
% OOP
%
% INFO
% Must be created in own file with class name equal to filename -> shape
a1 = Shape(10,20);
disp(a1)
@rscircus
rscircus / nim_in_one_file.nim
Last active July 22, 2022 14:26
I'm falling in love with nim...
# Nim (1.6.6) - let's get started
# These are my notes from nim-by-example :)
# that's a comment :)
echo "Hello, World!"
# Compiling:
# ==========
#
# You can define build tasks in 'tasks.json'
@rscircus
rscircus / .zshrc
Created August 1, 2022 20:17
rework git
# Git
#
function git() {
if [[ "$@" == "" ]]; then
command git status && command git remote -v && command git show-branch --list
elif [[ "$@" == "zip" ]]; then
command git archive --format=zip HEAD -o $(basename $PWD).zip --verbose
elif [[ "$@" == "uncommit" ]]; then
command git reset --soft HEAD~1
elif [[ "$@" == "pushall" ]]; then
@rscircus
rscircus / bootstrap-windows.ps1
Created August 3, 2022 10:34 — forked from ByronHawksmith/bootstrap-windows.ps1
Windows 10 Developer Setup 2022
# Fork of https://gist.github.com/stungeye/4fd96987cbc9e0c6676e71cb14468660
# Allow running PowerShell scripts
Update-ExecutionPolicy Unrestricted
# Install Chocolatey
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
# Install Boxstarter
Set-ExecutionPolicy Unrestricted -Force
@rscircus
rscircus / devmachine.ps1
Created August 3, 2022 10:38 — forked from kasuken/devmachine.ps1
Tools and software for my workstations and laptops. Windows 11 version.
#####################
# SOFTWARE
#####################
# Console
cinst poshgit
# 7Zip
cinst 7zip.install -y
@rscircus
rscircus / bootstrapwindows10.ps1
Created August 3, 2022 14:18 — forked from zloeber/bootstrapwindows10.ps1
Boxstarter Windows 10 Configuration
<#
The command to run, built from the raw link of this gist
Win+R
iexplore http://boxstarter.org/package/url?<RAW GIST LINK>
OR (if you don't like the way the web launcher force re-installs everything)
@rscircus
rscircus / shell-setup.ps1
Created August 3, 2022 14:18 — forked from mikepruett3/shell-setup.ps1
Packages to install via scoop, winget, choco, and other tools...
<#
.SYNOPSIS
Script to Initialize my custom powershell setup.
.DESCRIPTION
Script uses scoop
.NOTES
**NOTE** Will configure the Execution Policy for the "CurrentUser" to Unrestricted.
Author: Mike Pruett
Date: October 18th, 2018
@rscircus
rscircus / .stignore
Created October 28, 2022 06:44
Reasonable Syncthing Ignore Patterns
// ╔═══════════════════════════════════╗
// β•‘ CHECK IT AGAIN BEFORE YOU USE IT! β•‘
// β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•
// ╔══════════════════════════════════╗
// β•‘ Operating system generated files β•‘
// β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•
// β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
// β”‚ Apple macOS β”‚
@rscircus
rscircus / linux_notes.md
Created October 31, 2022 08:33
Linux Notes

visudo timeout

sudo visudo

edit:

timeout long enough and fish shell problems

# Steps to get WSL going.
## Windows Settings
In `Apps &`...-> `Windows features`
- Enable Hyper-V
- Enable Windows Hypervisor thingy
- Enable WSL