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/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)) |
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 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"); |
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 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"); |
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
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. | |
- | |
*/ |
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/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 |
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/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) |
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/python3 | |
import socket | |
import logging | |
import argparse | |
import subprocess | |
import time | |
import sys | |
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/bash | |
if [ -n "$V" ]; then | |
set -x | |
fi | |
PORT_BASE=59401 | |
make_port_number() { | |
echo $((PORT_BASE + RANDOM % 100)) |
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
#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> |
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 python3 | |
import argparse | |
import subprocess | |
import os | |
import os.path | |
import logging | |
import shutil | |
import shlex |
NewerOlder