Skip to content

Instantly share code, notes, and snippets.

View Dynesshely's full-sized avatar
🚀
Fly me to the moon

醉月酿星河 Dynesshely

🚀
Fly me to the moon
View GitHub Profile
@PurpleVibe32
PurpleVibe32 / vmwk17key.txt
Last active May 9, 2024 09:07
Free VMware Workstation Pro 17 full license keys
Install VMWare Workstation PRO 17 (Read it right. PRO!)
Also, these keys might also work with VMWare Fusion 13 PRO. Just tested it.
Sub to me on youtube pls - PurpleVibe32
if you want more keys - call my bot on telegram. @purector_bot (THE BOT WONT REPLY ANYMORE) - Or: https://cdn.discordapp.com/attachments/1040615179894935645/1074016373228978277/keys.zip - the password in the zip is 102me.
---
This gist can get off at any time.
PLEASE, DONT COPY THIS. IF YOU FORK IT, DONT EDIT IT.
*If you have a problem comment and people will try to help you!
*No virus
@darinkes
darinkes / GuiStateTemplate.cs
Created April 10, 2019 07:56
Avalonia Enum UserControl Content Selection
class GuiStateTemplate : DataTemplate, IDataTemplate
{
[TypeConverter(typeof(EnumConverter))]
public GuiState State { get; set; }
bool IDataTemplate.Match(object data)
{
var enumVal = (GuiState)Enum.Parse(typeof(GuiState), data.ToString());
var result = State == enumVal;
Logging.Debug(string.Format("GuiStateTemplate Match: {0} == {1} ({2})", State, enumVal, result));
@dstockhammer
dstockhammer / unlist-packages.ps1
Last active February 25, 2024 18:44
Unlist all versions of a NuGet package
$PackageId = "xxx"
$ApiKey = "yyy"
$json = Invoke-WebRequest -Uri "https://api.nuget.org/v3-flatcontainer/$PackageId/index.json" | ConvertFrom-Json
foreach($version in $json.versions)
{
Write-Host "Unlisting $PackageId, Ver $version"
Invoke-Expression ".\nuget.exe delete $PackageId $version $ApiKey -source https://api.nuget.org/v3/index.json -NonInteractive"
}
@myusuf3
myusuf3 / delete_git_submodule.md
Created November 3, 2014 17:36
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule