Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
export LC_ALL=C
IP="${1-192.168.100.12}"
SSH_OPTS="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ConnectTimeout=5"
cnt=0
old_boot_id=""
while true; do
cnt=$((cnt+1))
function log(message) {
console.log(`[${process.pid}][${Date.now()}] ${message}`);
}
if (process.argv[2] === 'child') {
log("child");
} else {
const { fork } = require('node:child_process');
const controller = new AbortController();
log("forking");
function log(message) {
console.log(`[${process.pid}][${Date.now()}] ${message}`);
}
if (process.argv[2] === 'child') {
log("child");
} else {
const { fork } = require('node:child_process');
const controller = new AbortController();
log("forking");
diff --git a/client/client.go b/client/client.go
index dc8c47a..e698ba4 100644
--- a/client/client.go
+++ b/client/client.go
@@ -2,7 +2,6 @@
Package client provides a WAMP client implementation that is interoperable with
any standard WAMP router and is capable of using all of the advanced profile
features supported by the nexus WAMP router.
-
*/
#!/bin/bash
# upgpkg: Upgrades package versions in PKGBUILD and starts build.
# Author: Abhishek Dasgupta <abhidg at gmail.com>
# Thanks to cactus, profjim and daenyth for all the sed help!
# Edited: Florian Pritz <flo at xinu.at>
# I place this script in the public domain.
VERSION=0.4
#!/bin/bash -ex
if [ "$#" -ne 2 ] || [ "$1" = "--help" ]; then
echo "usage: $0 <key-name> <system-user-assertion-json>"
exit 1
fi
# sign the assertion
sysUser=$(snap sign -k $1 < $2)
#!/usr/bin/python3
import socket
import logging
import argparse
import subprocess
import time
import sys
#!/bin/bash
if [ -n "$V" ]; then
set -x
fi
PORT_BASE=59401
make_port_number() {
echo $((PORT_BASE + RANDOM % 100))
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <fcntl.h>
#include <limits.h>
#include <linux/loop.h>
#include <stdio.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#!/usr/bin/env python3
import argparse
import subprocess
import os
import os.path
import logging
import shutil
import shlex