- posh-git (sintax highlight for git)
- Terminal-Icons (show icons using dir or ls)
- spaceship (theming)
- PSReadlines (auto sugestions & auto complete)
- PSFzf (recursive search)
- z search (global search using z prefix to access some folder)
| using namespace System.Management.Automation | |
| using namespace System.Management.Automation.Language | |
| if ($host.Name -eq 'ConsoleHost') | |
| { | |
| Import-Module PSReadLine | |
| } | |
| #Import-Module PSColors | |
| #Import-Module posh-git | |
| Import-Module -Name Terminal-Icons |
| $LazyLoadProfile = [PowerShell]::Create() | |
| [void]$LazyLoadProfile.AddScript(@' | |
| Import-Module posh-git | |
| '@) | |
| $LazyLoadProfileRunspace = [RunspaceFactory]::CreateRunspace() | |
| $LazyLoadProfile.Runspace = $LazyLoadProfileRunspace | |
| $LazyLoadProfileRunspace.Open() | |
| [void]$LazyLoadProfile.BeginInvoke() |
| // Licence: Robert Koch-Institut (RKI), dl-de/by-2-0 | |
| class IncidenceWidget { | |
| constructor() { | |
| this.previousDaysToShow = 31; | |
| this.apiUrlDistricts = (location) => `https://services7.arcgis.com/mOBPykOjAyBO2ZKk/arcgis/rest/services/RKI_Landkreisdaten/FeatureServer/0/query?where=1%3D1&outFields=RS,GEN,cases7_bl_per_100k,cases7_per_100k,BL&geometry=${location.longitude.toFixed(3)}%2C${location.latitude.toFixed(3)}&geometryType=esriGeometryPoint&inSR=4326&spatialRel=esriSpatialRelWithin&returnGeometry=false&outSR=4326&f=json` | |
| this.apiUrlDistrictsHistory = (districtId) => `https://services7.arcgis.com/mOBPykOjAyBO2ZKk/ArcGIS/rest/services/Covid19_hubv/FeatureServer/0/query?where=IdLandkreis%20%3D%20%27${districtId}%27%20AND%20Meldedatum%20%3E%3D%20TIMESTAMP%20%27${this.getDateString(-this.previousDaysToShow)}%2000%3A00%3A00%27%20AND%20Meldedatum%20%3C%3D%20TIMESTAMP%20%27${this.getDateString(1)}%2000%3A00%3A00%27&outFields=Landkreis,Meldedatum,AnzahlFall&outSR=4326&f=json` | |
| this.stateToAbbr = { | |
| // Variables used by Scriptable. | |
| // These must be at the very top of the file. Do not edit. | |
| // icon-color: cyan; icon-glyph: magic; | |
| // the node sonos http api base url (running on your Pi for example) | |
| let sonosBaseUrl = "http://192.168.178.10:5005" | |
| // optional for cover art: the ip address of one of your Sonos speakers | |
| let sonosPlayerUrl = "http://192.168.178.38:1400" | |
| let param = args.widgetParameter |
Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.
If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month; and your contributions will be multipled, as GitHub is matching the first $5,000! This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors.
Follow these steps to install Proxmox VE on a Hetzner server via the Rescue System. The Rescue System is a Linux-based environment that can be booted into to perform system recovery tasks. We'll be using it to install Proxmox VE.
In order to complete the process, it is indeed necessary to first boot into the Rescue System and then connect to it via SSH. This will allow you to run the commands for installing Proxmox VE. Here are the steps:
- Log into the Hetzner Robot.
- Under "Main Functions; Server" select the desired server and then open the tab "Rescue".
| #Requires -Version 7 | |
| # Version 1.2.13 | |
| # check if newer version | |
| $gistUrl = "https://api.github.com/gists/a208d2bd924691bae7ec7904cab0bd8e" | |
| $latestVersionFile = [System.IO.Path]::Combine("$HOME",'.latest_profile_version') | |
| $versionRegEx = "# Version (?<version>\d+\.\d+\.\d+)" | |
| if ([System.IO.File]::Exists($latestVersionFile)) { |
| # Run this as a Computer Startup script to allow installing fonts from C:\InstallFont\ | |
| # Based on http://www.edugeek.net/forums/windows-7/123187-installation-fonts-without-admin-rights-2.html | |
| # Run this as a Computer Startup Script in Group Policy | |
| # Full details on my website - https://mediarealm.com.au/articles/windows-font-install-no-password-powershell/ | |
| $SourceDir = "C:\InstallFont\" | |
| $Source = "C:\InstallFont\*" | |
| $Destination = (New-Object -ComObject Shell.Application).Namespace(0x14) | |
| $TempFolder = "C:\Windows\Temp\Fonts" |