Create a template service file at /etc/systemd/system/secure-tunnel@.service
. The template parameter will correspond to the name
of target host:
[Unit]
Description=Setup a secure tunnel to %I
After=network.target
<?php | |
use Symfony\Component\Console\Helper\ProgressBar; | |
use Symfony\Component\Console\Output\ConsoleOutput; | |
class DoSomething extends Migration | |
{ | |
public function up() | |
{ | |
$output = new ConsoleOutput(); |
import Cocoa | |
import Foundation | |
// Move around and click automatically at random places in macos, kinda human like in a cheap way. | |
// Moves the mouse pointer to `moves` random locations on the screen and runs the `action` function at | |
// each point with the point as argument. | |
func mouseMoveWithAction(moves: Int, action: (CGPoint) -> Void = defaultAction) { | |
let screenSize = NSScreen.main?.visibleFrame.size |
package main | |
import ( | |
"flag" | |
"fmt" | |
"log" | |
"sync" | |
"time" | |
) |
@ExperimentalPagerApi | |
@Composable | |
fun WormHorizontalPagerIndicator( | |
pagerState: PagerState, | |
modifier: Modifier = Modifier, | |
activeColor: Color = LocalContentColor.current.copy(alpha = LocalContentAlpha.current), | |
inactiveColor: Color = activeColor.copy(ContentAlpha.disabled), | |
indicatorWidth: Dp = 8.dp, | |
activeIndicatorWidth: Dp = 25.dp, | |
indicatorHeight: Dp = indicatorWidth, |
/** @param sampleRate {number} */ | |
/** @param channelBuffers {Float32Array[]} */ | |
function audioBufferToWav(sampleRate, channelBuffers) { | |
const totalSamples = channelBuffers[0].length * channelBuffers.length; | |
const buffer = new ArrayBuffer(44 + totalSamples * 2); | |
const view = new DataView(buffer); | |
const writeString = (view, offset, string) => { | |
for (let i = 0; i < string.length; i++) { |
// >>> DatHost Competitive Config 0.1 <<< // | |
// Reset from Practice to Competitive | |
sv_cheats "false" // Disable cheats | |
mp_ct_default_grenades "" // Spawn CTs without grenades | |
mp_t_default_grenades "" // Spawn Ts without grenades | |
sv_showimpacts "0" // Don't show bullet impacts | |
sv_falldamage_scale "1" // Enable fall damage | |
sv_full_alltalk "0" // Disable voice chat with anyone |
(draft; work in progress)
See also:
async function generateOneTimePassword(rawKey: Uint8Array, counter: number): Promise<number> { | |
const data = new DataView(new ArrayBuffer(8)); | |
data.setBigUint64(0, BigInt(Math.floor(counter)), false); | |
const algo = { name: 'HMAC', hash: 'SHA-1' }; | |
const key = await crypto.subtle.importKey('raw', rawKey, algo, false, ['sign']); | |
const hmacHash = new Uint8Array(await crypto.subtle.sign(algo, key, data.buffer)); | |
const offset = hmacHash[hmacHash.byteLength - 1] & 0x0f; | |
const hotp = (hmacHash[offset] & 0x7f) << 24 |
{ stdenv, autoPatchelfHook }: | |
stdenv.mkDerivation rec { | |
pname = "wasmcloud-binaries"; | |
version = "1.0"; | |
src = ./.; # Assuming the binaries are in the current directory | |
nativeBuildInputs = [ autoPatchelfHook ]; |