Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
This general procedure was used when doing pre-dawn 3.0 performance testing as mentioned in EOSIO/eos#2078.
Network layout: 2 nodes connected to each other on same box, 1 producer, 1 generator
Hardware: AMD Ryzen at 3.9Ghz
Software: Linux 4.15; eosio compiled with Clang6 -O3
Tested on Apr25 2018 on the DAWN-2018-04-23-ALPHA branch
Make an empty directory for our configs & data, mkdir ~/eos.data
, and define a logging.json that doesn't print debug information (which occurs for each txn) to the console
cat << EOF > ~/eos.data/logging.json
# Uncomment to print commands being executed | |
# set -x | |
pid=0 | |
# SIGTERM-handler | |
term_handler() { | |
echo "Handler INT"; | |
if [ $pid -ne 0 ]; then | |
kill -SIGTERM "$pid" | |
wait "$pid" |
//simple tool can forward a 'listen:port' to 'forward:port' though a 'socks5://server:port' | |
//usage socks5-forward listen:port forward:port socksurl | |
package main | |
import ( | |
"io" | |
"log" | |
"net" | |
"os" | |
"net/url" |
'use strict'; | |
exports.handler = (event, context, callback) => { | |
// Get request and request headers | |
const request = event.Records[0].cf.request; | |
const headers = request.headers; | |
// Configure authentication | |
const authUser = 'user'; | |
const authPass = 'pass'; |
0x00 0 STOP | |
0x01 3 ADD | |
0x02 5 MUL | |
0x03 3 SUB | |
0x04 5 DIV | |
0x05 5 SDIV | |
0x06 5 MOD | |
0x07 5 SMOD | |
0x08 8 ADDMOD | |
0x09 8 MULMOD |
$ brew install dnsmasq
$ vim /usr/local/etc/dnsmasq.conf
# Copy the daemon configuration file into place.
$ sudo cp $(brew list dnsmasq | grep /homebrew.mxcl.dnsmasq.plist$) /Library/LaunchDaemons/
$ sudo launchctl unload /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
chmod +x psyii
mkdir extensions/yiishell
wget -O extensions/yiishell/psysh psysh.org/psysh
chmod +x extensions/yiishell/psysh
init.php
below to psysh/init.php
and update any paths to work with your application configurationconfig.php
below to psysh/config.php
. Change or add to the config array with the options you'd like to use (available options)./psyii psysh/init.php --config psysh/config.php
●● | |
2 successes / 0 failures / 0 errors / 0 pending : 0.008108 seconds |