This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# winget-updates.nu | |
# GitHub Gists | |
# this script - https://gist.github.com/Nejat/06c275749b7931857bb4c7604a026877 | |
# example skip config - https://gist.github.com/Nejat/5a41fe09bb27c1bbcf345fb1dea8a234 | |
# powersheel version - https://gist.github.com/Nejat/6cb42f098320cb2fcb57a4e1728ca29e | |
# output formatting constants | |
const err_color: string = 'light_red' | |
const fail_color: string = 'red' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -eu | |
# if ! cargo fmt -- --check | |
# then | |
# echo "check/fix fmt issues ..." | |
# exit -1 | |
# fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::fmt::{Debug, Display, Write}; | |
use std::ops::Deref; | |
/// The output width from a write statement | |
#[derive(Default, Eq, PartialEq, Ord, PartialOrd)] | |
struct Width(usize); | |
impl Width { | |
/// reset the stored width | |
fn reset(&mut self) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Unity # use unity hub to manage versions of unitywinget | |
Citrix Workspace # need the installed version | |
Visual Studio Community* # use visual studio installer | |
PowerToys (Preview) # does not update correctly | |
Microsoft .NET SDK # does not update correctly | |
Microsoft Visual C++ # use visual studio installer | |
Windows Software Development Kit # use visual studio installer | |
JetBrains # use jetbrains toolbox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param ( | |
# provide a list of addition bash setup commands to invoke | |
[string] $additional = "msys2-additional-setup", | |
# true teardown existing installations, false to stop if installation exists | |
[switch] $refresh = $false | |
) | |
# constant defining MSys2 winget package name | |
[string] $package = "MSys2" | |
# checks to see if an installaiton already exists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pacman -S --needed base-devel mingw-w64-x86_64-toolchain | Development Toolchain | |
pacman -S --needed mingw-w64-x86_64-meson | Meson | |
pacman -S --needed mingw-w64-x86_64-vulkan-devel | Vulkan Development Tools | |
pacman -S --needed mingw-w64-x86_64-gtk3 | GTK3 Development Tools | |
pacman -S --needed mingw-w64-x86_64-gtk4 | GTK4 Development Tools | |
pacman -S --needed mingw-w64-x86_64-glade | GTK GLade Interface Designer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param( | |
# provide a configuration file to define package handling | |
[string] $skipFile = "wngt-cfg", | |
# true to upgrade eligible packages, false dry run | |
[switch] $upgrade = $false | |
) | |
# adjust buffer size of output, really don't know if this helps ¯\_(ツ)_/¯ | |
if ($Host -and $Host.UI -and $Host.UI.RawUI) { | |
$rawUI = $Host.UI.RawUI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Ignore Visual Studio temporary files, build results, and | |
## files generated by popular Visual Studio add-ons. | |
## | |
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore | |
# User-specific files | |
*.rsuser | |
*.suo | |
*.user | |
*.userosscache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// in cargo.toml | |
// rand = "0.7" | |
// parking_lot = "0.11" | |
// crossbeam-channel = "0.5" | |
use std::{thread::{JoinHandle, sleep, spawn}, time::Duration}; | |
use crossbeam_channel::{Sender, unbounded}; | |
use rand::{Rng, thread_rng}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// in cargo.toml | |
// rand = "0.7" | |
// parking_lot = "0.11" | |
// crossbeam-channel = "0.5" | |
use std::{thread::{sleep, spawn}, time::Duration}; | |
use crossbeam_channel::{RecvTimeoutError, Sender, unbounded}; | |
use rand::{Rng, thread_rng}; |
NewerOlder