Skip to content

Instantly share code, notes, and snippets.

@bazzilic
bazzilic / DataTablePrinter.cs
Created May 5, 2015 05:42
Pretty printing of the .NET DataTable from System.Data
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
namespace DataTablePrinter
{
// Code originally written by grampa (http://stackoverflow.com/users/4607577/grampa)
// Found here: http://stackoverflow.com/a/28729432/664178
@bazzilic
bazzilic / Array-vs-IList.cs
Last active October 1, 2019 05:07
byte[] vs IList<byte> performance comparison
using System;
using System.Collections.Generic;
using System.Diagnostics;
namespace ConsoleApp1
{
class Program {
static volatile byte res1, res2;
static void Main(string[] args) {
@bazzilic
bazzilic / Set-WinSrvBackground.ps1
Last active November 9, 2017 09:34
Put hostname and some server information on the background of a Windows server
# iex ((New-Object System.Net.WebClient).DownloadString('https://gist.github.com/bazzilic/859f95946ac4ecd306b6406cc9f8d8fa/raw/020730d36e6b8517466334e715116467d4f2aa7d/Set-WinSrvBackground.ps1'))
New-TemporaryFile | `
% { iwr -Uri https://download.sysinternals.com/files/BGInfo.zip -OutFile $_.FullName ; `
mv $_.FullName "$($_.FullName).zip" ; `
"$($_.FullName).zip" } | `
% { Expand-Archive -Path $_ -DestinationPath ~/bginfo/ -Force }
New-TemporaryFile | `
% { iwr -Uri https://gist.github.com/bazzilic/859f95946ac4ecd306b6406cc9f8d8fa/raw/1c9b6b02663850d04c2f007d7b51a2ebda592f70/x.bgi -OutFile "$($_.FullName).bgi" ; `
param (
[String]$LanguageToFix = 'en-SG'
)
$lng = Get-WinUserLanguageList
$lng.Add($LanguageToFix)
Set-WinUserLanguageList -Force $lng
$lng.Remove( ( $lng | Where-Object LanguageTag -like $LanguageToFix ) ) 2>&1 | Out-Null
Set-WinUserLanguageList -Force $lng
@bazzilic
bazzilic / audio_guide.md
Last active November 14, 2022 05:51
Simple Audio Setup for WFH on a Budget

Setting Up Your Audio for WFH on a Budget

With the recent quarantine and WFH measures, our use of teleconferencing software not just doubles but more likely quadruples. Me personally, I went from an average of 2 conference calls on my busiest week to 2-3 conf-calls every day.

We started to use teleconferencing software for everything – work, talking to friends and loved ones, playing table-top games and whatnot. And that's all neat and great until someone joins the call with a static noise, echo, audio feedback screeching noise, and the call turns into a competition of who can refrain from killing themselves the longest.

So below are some tips on how to put together a decent WFH audio setup on a budget.

Audio Jacks

Before we proceed let's make sure we all understand the nuts and bolts of connecting audio devices.