Skip to content

Instantly share code, notes, and snippets.

View TechPreacher's full-sized avatar

Sascha Corti TechPreacher

View GitHub Profile
@TechPreacher
TechPreacher / .gvimrc
Last active November 14, 2019 13:30
VIM Configuration
if has("gui_running")
if has("gui_gtk2")
set guifont=Inconsolata\ 12
elseif has("gui_macvim")
set guifont=Menlo\ Regular:h14
elseif has("gui_win32")
set guifont=Fira\ Code:h10:cANSI
endif
endif
colorscheme dracula " good colorschemes: murphy, slate, molokai, badwolf, solarized
@TechPreacher
TechPreacher / profiles.json
Last active November 27, 2019 08:09
Windows Terminal configuration
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"globals" :
{
"alwaysShowTabs" : true,
"defaultProfile" : "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"initialCols" : 120,
"initialRows" : 50,
"initialPosition" : "10, 10",
"requestedTheme" : "system",
@TechPreacher
TechPreacher / Program.cs
Created May 3, 2019 15:17
Microsoft.Azure.Devices Version 1.17.3 Problem with RegistryManager.CreateDeviceWithTwinAsync
using Microsoft.Azure.Devices;
using Microsoft.Azure.Devices.Shared;
using System.Threading.Tasks;
namespace RegistryManagerTest
{
class Program
{
private static string ConnectionString = "";
### Keybase proof
I hereby claim:
* I am techpreacher on github.
* I am techpreacher (https://keybase.io/techpreacher) on keybase.
* I have a public key ASCXiEq2YyRfIDPusdfqS_mY5JeaC5RnyNCJTO4ypapquAo
To claim this, I am signing this object:
@TechPreacher
TechPreacher / boxstarter-dev
Last active January 17, 2018 08:53
Boxstarter Script Developer Machine
# From PowerShell ADMINISTRATOR session run
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
# Open new PowerSheel Administrator session and run
# $cred=Get-Credential domain\username (can also use username@domain.com MSA style username)
# Install-BoxstarterPackage -PackageName https://gist.githubusercontent.com/TechPreacher/8758bbcbf3089a5a6540cc2867bc9b52/raw -Credential $cred
# Initialize reboot log file
$reboot_log = "C:\installation.rbt"
if ( -not (Test-Path $reboot_log) ) { New-Item $reboot_log -type file }