Maintainer: Keil Miller Jr
How to create and manage an AUR package.
The following link should be read:
Maintainer: Keil Miller Jr
How to create and manage an AUR package.
The following link should be read:
// Run a shortcut and return the result | |
function shortcutRun(p_strShortcutName, p_strShortcutInput) | |
{ | |
// Define the script to run | |
let objShell = ShellScript.create(`#!/bin/zsh | |
echo "${p_strShortcutInput}" | shortcuts run "${p_strShortcutName}" | tee`); | |
// Run the script and return the result or write out any error to the log. | |
if (objShell.execute()) return objShell.standardOutput; | |
else |
{ | |
"first_action" : | |
{ | |
"name" : "Say Hello", | |
"version" : "2", | |
"install_url": "https://www.icloud.com/shortcuts/a1f7d39b7b1a4a8b982478457ce1d8fb" | |
}, | |
"last_action" : | |
{ | |
"name" : "Say Bonjour", |
<html> | |
<body> | |
<script> | |
function isLeapYear(p_intYear) | |
{ | |
return (p_intYear % 100 === 0) ? (p_intYear % 400 === 0) : (p_intYear % 4 === 0); | |
} | |
function writeYear(p_intYear) |
#Requires -RunAsAdministrator | |
# Unlock-PowerCfg - v22.05.11 | |
# Disable "Connected Standby" | |
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Power' -Name 'CSEnabled' -Value 0 -Force | |
# Get Power Settings entries and add/set 'Attributes' to 2 to unhide | |
$PowerCfg = (Get-ChildItem 'HKLM:\SYSTEM\CurrentControlSet\Control\Power\PowerSettings' -Recurse).Name -notmatch '\bDefaultPowerSchemeValues|(\\[0-9]|\b255)$' | |
foreach ($item in $PowerCfg) { Set-ItemProperty -Path $item.Replace('HKEY_LOCAL_MACHINE','HKLM:') -Name 'Attributes' -Value 2 -Force } |
Here, I introduce 2 scripts for uploading files to Slack using Node.js as samples. These 2 sample scripts are for uploading files to Slack.
form-data
.boundary
using Buffer.concat()
.Documentación oficial sobre Jest
npm install -D jest @types/jest ts-jest supertest
Profile | download (kb/s) | upload (kb/s) | latency (ms) |
---|---|---|---|
Native | 0 | 0 | 0 |
GPRS | 50 | 20 | 500 |
56K Dial-up | 50 | 30 | 120 |
Mobile EDGE | 240 | 200 | 840 |
2G Regular | 250 | 50 | 300 |
2G Good | 450 | 150 | 150 |
3G Slow | 780 | 330 | 200 |
public class DelayStartAnnotation(IResource waitForResource) : IResourceAnnotation | |
{ | |
public IResource WaitForResource { get; } = waitForResource; | |
} |