- Instalar TypeScript y demás dependencias
npm i -D typescript @types/node ts-node-dev rimraf
- Inicializar el archivo de configuración de TypeScript ( Se puede configurar al gusto)
npx tsc --init --outDir dist/ --rootDir src
#!/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 |
ssh-keygen -t rsa -N "" -f /root/.ssh/id_rsa