Skip to content

Instantly share code, notes, and snippets.

View znedw's full-sized avatar

Zach Nedwich znedw

View GitHub Profile
@znedw
znedw / Terminal_WinSrv.ps1
Created October 25, 2023 06:04 — forked from likamrat/Terminal_WinSrv.ps1
Install Windows Terminal on Windows Server
Write-Information "This script needs be run on Windows Server 2019 or 2022"
If ($PSVersionTable.PSVersion.Major -ge 7){ Write-Error "This script needs be run by version of PowerShell prior to 7.0" }
# Define environment variables
$downloadDir = "C:\WinTerminal"
$gitRepo = "microsoft/terminal"
$filenamePattern = "*.msixbundle"
$framworkPkgUrl = "https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx"
$framworkPkgPath = "$downloadDir\Microsoft.VCLibs.x64.14.00.Desktop.appx"
$msiPath = "$downloadDir\Microsoft.WindowsTerminal.msixbundle"
@znedw
znedw / docker-compose.yml
Created September 3, 2020 22:39
Nextcloud Beta [PostgreSQL + Redis] alpine docker-compose no SSL
version: '3.7'
services:
db:
image: postgres:13-alpine
restart: always
volumes:
- '/docker/nextcloud/postgresql/data:/var/lib/postgresql/data'
environment:
- POSTGRES_DB_FILE=/run/secrets/postgres_db

Keybase proof

I hereby claim:

  • I am znedw on github.
  • I am znedw (https://keybase.io/znedw) on keybase.
  • I have a public key whose fingerprint is F572 52AA 6B2D 7DE8 A1B8 BEC8 F046 BBE2 9080 B480

To claim this, I am signing this object:

@znedw
znedw / build.sh
Created June 24, 2018 03:45
coreboot x200
cd coreboot
git pull --rebase
git submodule update --init --checkout
make clean && make
cd util/nvramtool && make
cd ../../../
./coreboot/util/nvramtool/nvramtool -C coreboot/build/coreboot.rom -y coreboot/src/mainboard/lenovo/x200/cmos.layout -D coreboot/src/mainboard/lenovo/x200/cmos.layout -w gfx_uma_size=256M
dd if=ich9fdgbe_8m.bin of=coreboot/build/coreboot.rom bs=1 count=12k conv=notrunc
cp coreboot/build/coreboot.rom coreboot.final.rom
@znedw
znedw / csv parser
Created September 30, 2012 11:05
csv parser
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
char *headings[40][7] ;
struct food {
char food[100];
char measure[50];