This file contains 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%") |
This file contains 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 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 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 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 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
;(function () { | |
function getRandomWaifu() { | |
return "Ai Hayasaka"; | |
} | |
const name = window.prompt("Type your character's name:", getRandomWaifu()); | |
if (!name) { | |
alert("Invalid character name."); | |
return false; |
This file contains 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
/* | |
* conredir, a hack to get working console IO with Windows GUI applications | |
* | |
* Copyright (c) 2013, Martin Herkt | |
* | |
* Permission to use, copy, modify, and/or distribute this software for any | |
* purpose with or without fee is hereby granted, provided that the above | |
* copyright notice and this permission notice appear in all copies. | |
* | |
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
This file contains 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
~*~ Mataha's Diablo II: Resurrected wantlist ~*~ | |
~*~ All of the items here are nonladder only ~*~ | |
Expansion | |
========= | |
Runes | |
----- | |
HRs. Lots of them. But mostly Bers. |
This file contains 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <windows.h> | |
#define print_metric(metric) \ | |
do \ | |
{ \ | |
printf("%s: %d\n", #metric, GetSystemMetrics(metric)); \ | |
} while (0) |
This file contains 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
Example locator request and response (International GunZ). | |
Note that some servers would send slightly different responses, e.g. Freestyle | |
GunZ (response from FGunZ would include some additional fields, e.g. server | |
description - I don't know if it's 1.5 source specific). | |
Everything is in little-endian order unless specified. | |
NewerOlder