#client
iperf -c pf -i 1 -t 60
#server
iperf -s
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
From: Emmanuel Kasper <[email protected]> | |
Date: Fri, 2 Apr 2021 14:25:28 +0200 | |
Subject: [PATCH] Use absolute path to oc binary, as we install it outside of | |
$PATH | |
--- | |
.../openshift-4-cluster/tasks/post-install-storage-nfs.yml | 2 +- | |
ansible/roles/openshift-4-cluster/tasks/post-install.yml | 6 +++--- | |
2 files changed, 4 insertions(+), 4 deletions(-) |
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 | |
def output(): | |
# explicit line joining with backslash (prefered for simple strings) | |
print("let's do some calculations \ | |
of the body mass index") | |
# explicit line joining with operator # generally prefered, allows to keep indentation consistent | |
# PEP 8 recommends operator on the next line | |
print(f"weight: 75, size: 1.77 " | |
+ f"bmi: {bmi_calc(75,1.77)}") |
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
#! env node | |
// execFileSync will call the command directly without using a shell, a tad faster and prevents interpretation of characters | |
// ( similar to C and java exec ) | |
const exec = require('child_process').execFileSync; | |
// inherit will use the stdio of the parent process, ie this nodejs script | |
exec('wget', ['https://git.kernel.org/torvalds/t/linux-4.18-rc8.tar.gz', '--output-document', '/tmp/bla'], {stdio:'inherit'}); |
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/perl | |
use strict; | |
use warnings; | |
use English; | |
use Sys::Virt; | |
use Net::OpenSSH; | |
use File::Spec; | |
use File::Basename; | |
use Cwd 'realpath'; |
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
var loneTalker = {}; | |
var addSpeach = function(name) { | |
var text = 'Hello ' + name; | |
var talk = function() { | |
console.log(text); | |
}; | |
loneTalker.talk = talk; | |
}; |
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
# after that you need to insert # --- !Ups on top of the generated file | |
echo '# --- !Ups' > conf/evolutions/default/2.sql | |
# column inserts are needed in case of new model properties | |
# we keep only the insert statements, pg_dump comments confuse ebean/play | |
pg_dump --column-inserts \ | |
--inserts --data-only --exclude-table=play_evolutions \ | |
--username popcon -h localhost popcon \ | |
| grep '^INSERT INTO' \ | |
>> conf/evolutions/default/2.sql |
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 | |
# you need to install the libnss3-tools package or equivalent | |
if [ $# -lt 2 ]; then | |
echo "Usage: $0 hostname port" | |
exit 1 | |
fi | |
hostname=$1 | |
port=$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
pct enter 142 | |
ps ax | |
PID TTY STAT TIME COMMAND | |
1 ? Ss 0:00 init [2] | |
831 ? Ss 0:00 /sbin/rpcbind -w | |
951 ? Ssl 0:00 /usr/sbin/rsyslogd | |
1025 ? Ss 0:00 /usr/sbin/atd | |
1071 ? Ss 0:00 /usr/sbin/cron | |
1086 ? Ss 0:00 /usr/bin/dbus-daemon --system |
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
#export frames | |
avconv -i hatari.avi -vf fps=10 frames/ffout%03d.png | |
#assemble frames a gif | |
convert -loop 0 frames/ffout0*.png new.gif |
NewerOlder