Skip to content

Instantly share code, notes, and snippets.

View sqeezy's full-sized avatar

Anton Herzog sqeezy

View GitHub Profile
import matplotlib
import numpy as np
import matplotlib.cm as cm
import matplotlib.pyplot as plt
from matplotlib.ticker import EngFormatter
delta = 0.025
x = np.arange(-3.0, 3.0, delta)
y = np.arange(-2.0, 2.0, delta)
@sqeezy
sqeezy / README.md
Created October 10, 2018 09:17
PowerShell script to have all variables from vcvars32.bat from Visual Studio

Taken from here for prosperity.

Put this in %USERDIR%/Documents/WindowsPowerShell/profile.ps1, run a PowerShell terminal and you should see the messages "Visual Studio 2015..." pop up.

open System
type Agent<'T> = MailboxProcessor<'T>
let maxFloat = Double.MaxValue
let ran = Random 42
let randomFloat ()=
float(ran.Next(-10000000,10000000))
type MsgType =
function Set-PowershellPrompt{
if (!(Test-Path -Path $PROFILE)){ New-Item -Path $PROFILE -ItemType File } ; ise $PROFILE
}
function prompt {
$origLastExitCode = $LASTEXITCODE
Write-VcsStatus
Write-Host $ExecutionContext.SessionState.Path.CurrentLocation -ForegroundColor Green
$LASTEXITCODE = $origLastExitCode
"$('>' * ($nestedPromptLevel + 1)) "
choco feature enable -n=allowGlobalConfirmation
cinst `
7zip.install `
cctray `
cpu-z `
docker-desktop `
dotnet3.5 `
dotnetcore-sdk `
dotpeek `
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar
Disable-UAC
Set-StartScreenOptions -EnableBootToDesktop -EnableSearchEverywhereInAppsView -EnableListDesktopAppsFirst
Enable-RemoteDesktop
Disable-BingSearch
Update-ExecutionPolicy ByPass
cinst powershell
cinst vivaldi --pre
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
cinst 1password
cinst 7zip
cinst 7zip.install
cinst AdobeAIR
cinst adobereader
cinst Atom
cinst markdownpad2
$content = Get-Content .\fitnesse_output.txt
$length = $content.Length
$i = $length-3
$filteredContent = ($content)[1 .. $i]
$filteredContent
cinst chocolatey visualstudiocode consolez vim -y
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar
Disable-UAC
Set-StartScreenOptions -EnableBootToDesktop -EnableSearchEverywhereInAppsView -EnableListDesktopAppsFirst
Enable-RemoteDesktop
cinst chocolatey
cinst google-chrome-x64
cinst git-credential-winstore
cinst lockhunter