Note
This no longer works in browser!
Note
This no longer works if you're alone in vc! Somebody else has to join you!
How to use this script:
- Accept the quest under User Settings -> Gift Inventory
; Press Ctrl+Shift+Space to set any currently active window to be always on top. | |
; Press Ctrl+Shift+Space again set the window to no longer be always on top. | |
; Source: https://www.howtogeek.com/196958/the-3-best-ways-to-make-a-window-always-on-top-on-windows | |
^+SPACE:: | |
WinGetTitle, activeWindow, A | |
if IsWindowAlwaysOnTop(activeWindow) { | |
notificationMessage := "The window """ . activeWindow . """ is now always on top." | |
notificationIcon := 16 + 1 ; No notification sound (16) + Info icon (1) | |
} |
#!/usr/bin/env python3 | |
''' | |
keymaster blob logic. | |
Offers: | |
- low-level blob encoding and decoding | |
- loading softkeymaster blobs | |
- performing cryptographic operations (emulating KeyMaster) on a loaded blob | |
- CLI tool for parsing softkeymaster blobs and performing operations with them |
using System.DirectoryServices.AccountManagement; | |
public static bool UserExistsAndIsActive(string username) | |
{ | |
PrincipalContext context = new PrincipalContext(ContextType.Domain, domain); | |
UserPrincipal usr = UserPrincipal.FindByIdentity(context, IdentityType.UserPrincipalName, username); | |
if (!object.ReferenceEquals(null, usr)) | |
{ | |
if (!(bool)(usr.Enabled)) |
namespace MYSITE.Web; | |
using Umbraco.Cms.Core.Composing; | |
using Umbraco.Cms.Core.DependencyInjection; | |
using Umbraco.Cms.Core.Models.PublishedContent; | |
using Umbraco.Cms.Core.Routing; | |
using Umbraco.Cms.Core.Web; | |
using Umbraco.Extensions; |
git_protocol: ssh | |
aliases: | |
personal: '!cp ~/.config/gh/hosts.yml.personal ~/.config/gh/hosts.yml && gh auth status' | |
work: '!cp ~/.config/gh/hosts.yml.work ~/.config/gh/hosts.yml && gh auth status' |
This is a cheat sheet for how to perform various actions to ZSH, which can be tricky to find on the web as the syntax is not intuitive and it is generally not very well-documented.
Description | Syntax |
---|---|
Get the length of a string | ${#VARNAME} |
Get a single character | ${VARNAME[index]} |
// ==UserScript== | |
// @name CDR insert links | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-02-12_v3 | |
// @description inject external download links on cdromance | |
// @author iamevn | |
// @match https://cdromance.com/* | |
// @grant GM.xmlHttpRequest | |
// @connect cdromance.org | |
// @updateURL http://gist.github.com/iamevn/3afea03de61fa351bcde666f7c6d13f6/raw/cdromance-download-links.user.js |