Skip to content

Instantly share code, notes, and snippets.

@hyperreal64
hyperreal64 / nerdfont_installer.py
Last active Jun 14, 2022
Nerd font installer written in Python
View nerdfont_installer.py
# Nerd font installler
# Usage: python3 nerdfont_installer.py
# LICENSE
# Copyright 2022 Jeffrey Serio <hyperreal@fedoraproject.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
View openpgp.md
@hyperreal64
hyperreal64 / installFedoraWSL.ps1
Created Apr 25, 2022
PowerShell script that installs a Fedora WSL instance
View installFedoraWSL.ps1
Param (
[Parameter(Mandatory = $True)][ValidateNotNull()][string]$wslName,
[Parameter(Mandatory = $True)][ValidateNotNull()][string]$fedoraRelVer,
[Parameter(Mandatory = $True)][ValidateNotNull()][string]$installationPath,
[Parameter(Mandatory = $True)][ValidateNotNull()][string]$username
)
# Check if required commands/programs are installed
if (-Not (Get-Command 7z.exe 2>$null)) {
Write-Output "💥 Cannot find 7z.exe. Please install 7zip first."
@hyperreal64
hyperreal64 / rofifox.py
Last active May 20, 2022
Search and open Firefox bookmarks from Rofi
View rofifox.py
#!/usr/bin/env python
#
# DESCRIPTION
# Search and open Firefox bookmarks from Rofi
#
# USAGE
# - Ensure the imported packages below are available to your Python interpreter.
# - Must have rofi installed (obviously)
# - Run script from command line as ./rofifox.py or set to activate with keyboard shortcut
#
@hyperreal64
hyperreal64 / host_info.py
Last active May 20, 2022
Get system info from hosts
View host_info.py
#!/usr/bin/env python3
#
# AUTHOR Jeffrey Serio <hyperreal@fedoraproject.org>
# DATE 2022-05-14
# VERSION 0.0.3
#
# DESCRIPTION
# Python script that gets system info from a list of hosts and prints it into a
# lovely table.
#