This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env -S node --experimental-fetch --no-warnings --tls-max-v1.3 | |
import path from 'node:path'; | |
import process from 'node:process'; | |
import url from 'node:url'; | |
const __filename = path.resolve(url.fileURLToPath(import.meta.url)); | |
/** | |
* @typedef {Object} RankingQuery |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
weather=(powershell -NoProfile -NonInteractive "[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12; $place = [uri]::EscapeUriString($(If ([string]::IsNullOrWhiteSpace('$*')) { "${env:WTTR_LOCATION}" } Else { '$*' })); $weather = (Invoke-WebRequest "wttr.in/${place}?mF" -UseBasicParsing -Method 'Get' -UserAgent 'curl').Content; echo `r ${weather}.Replace($([char] 0x2196), $([char] 0x005C)).Replace($([char] 0x2197), $([char] 0x002F)).Replace($([char] 0x2198), $([char] 0x005C)).Replace($([char] 0x2199), $([char] 0x002F)).Replace($([char] 0x26A1).ToString(), $([char] 0x250C).ToString() + $([char] 0x2518).ToString()).Trim();") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: GPL-2.0-only | |
/* | |
* linux/fs/binfmt_script.c | |
* | |
* Copyright (C) 1996 Martin von Löwis | |
* original #!-checking implemented by tytso. | |
*/ | |
#include <linux/module.h> | |
#include <linux/string.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:parse | |
@(verify "" || setlocal DisableDelayedExpansion EnableExtensions) 2>nul || ( | |
(echo(Command Extensions could not be enabled; terminating the program.) | |
) >&2 && goto :EOF "Command Extensions could not be enabled" | |
@if not "-h" == "%~1" if not "-?" == "%~1" (goto :main) | |
@( | |
(echo(Language-independent ACP ^(active code page^) retrieval) | |
(echo() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:<<"#!/bin/sh" | |
::: curl -fsSL "..." | sh | |
::: | cmd /d/q/k echo off | |
@if not "%=^%=" == "%=%=" (set \p=^%<nul) else (set \p=%%<nul) | |
set last= | |
for /f delims^= %\p%l in ('^"doskey /history^"') do (set "last=%\p%~l") | |
if defined last (echo(Last command: "%last%") |
OlderNewer