Skip to content

Instantly share code, notes, and snippets.

View Nuclearfossil's full-sized avatar

Ash Matheson Nuclearfossil

View GitHub Profile
@Nuclearfossil
Nuclearfossil / gist:3ac61771bfc0d34d52561153b32d95b3
Last active March 21, 2023 02:14
Using cmake to build zlib ... and others!
Let's start with building zlib.
## First
You're going to want to set up a build structure for doing anything with cmake build systems.
Let's say you're keeping all your source projects on your D: drive. You'll want to have a build structure that looks like this:
D:
- dev // where I like to keep all my development projects
- git // where we get our git based projects
@Nuclearfossil
Nuclearfossil / gist:8812144da0f85885c6a6977f089f812f
Last active November 24, 2022 04:47
Powershell file locations
I'm putting together a little list of 'where to find stuff' for powershell.
Description Location
----------------------------------------------------- -------------------------------------------------------------------------------
Command history across all Powershells C:\Users\<name>\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadLine\ConsoleHost_history.txt
Powershell system config (not shell config) $PSHOME\powershell.config.json
Powershell config file $PROFILE
C:\Users\<name>\Documents\PowerShell\Microsoft.PowerShell_profile.ps1
Edit Powershell config code $PROFILE
Reload Powershell config . $PROFILE
@Nuclearfossil
Nuclearfossil / settings.json
Last active December 4, 2022 04:38
Windows Terminal settings
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
{
"command": "paste",
"keys": "ctrl+v"
},
{
@Nuclearfossil
Nuclearfossil / Microsoft.Powershell_profile.ps1
Last active December 6, 2022 18:41
My current Powershell startup script
# To edit this file, in powershell type: `code $profile`
#
# If you need to remove/update PSReadline, you'll need to remove the module
# from your powershell modules folder. You'll need to close all powershell instances
# and delete the `PSReadline` module folder manuall before you install it with
# `Install-Module PSReadline`.
# after that, you should be good.
#
# To install starship on powershell, from the Admin command line, enter
# scoop install starship
@Nuclearfossil
Nuclearfossil / starship_01.toml
Last active April 21, 2024 02:08
Some Starship gists I'm evaluating
# This Powerline style preset is a combination of few presets available in https://starship.rs
# and some other preset find on the web. I cannot recall from exactly where to give proper credit to the original authors.
# To add a unicode character, it must start with a \uCCCC, for example \uE0B6 creates the half circle nerd font character.
# Also, make sure you are using the correct font in your terminal program. There is a difference between Powerline and Nerd Font
# programs. Make sure you use Nerd Fonts.
# unicode references: https://en.wikipedia.org/wiki/List_of_Unicode_characters#Unicode_symbols
# https://www.nerdfonts.com/cheat-sheet
#add_newline = false
command_timeout = 10000