Skip to content

Instantly share code, notes, and snippets.

View markuman's full-sized avatar
🐧
Linux Only - fail fast, move on

Markus Bergholz markuman

🐧
Linux Only - fail fast, move on
  • Lekker Energie GmbH
  • Berlin
View GitHub Profile
m@pop-os:~/git/myinv$ ls -l myinv.py
-rwxrwxr-x 1 m m 2574 Feb 12 17:12 myinv.py
m@pop-os:~/git/myinv$ ./myinv.py --list
{"awslnx": {"hosts": ["10.115.4.119"], "vars": {"ansible_ssh_user": "ec2-user", "ansible_ssh_private_key_file": "~/.ssh/id_ed25519"}}}
m@pop-os:~/git/myinv$
m@pop-os:~/git/myinv$ python3 myinv.py --list
{"awslnx": {"hosts": ["10.115.4.119"], "vars": {"ansible_ssh_user": "ec2-user", "ansible_ssh_private_key_file": "~/.ssh/id_ed25519"}}}
m@pop-os:~/git/myinv$ python3 myinv.py --list |jq '.'
{
"awslnx": {
"hosts": [
"10.115.4.119"
],
"vars": {
"ansible_ssh_user": "ec2-user",
m@pop-os:~$ host gentrifizierung.gratis
gentrifizierung.gratis has IPv6 address 2a00:d0c0:200:0:b9:1a:9c0f:331
gentrifizierung.gratis mail is handled by 0 adhara.uberspace.de.
m@pop-os:~$ curl -s gentrifizierung.gratis
m@pop-os:~$ ssh -fN -D localhost:8001 [email protected]
m@pop-os:~$ curl --proxy socks5h://localhost:8001 -s gentrifizierung.gratis
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
TASK [debug output] **************************************************************************************************************************************************************************************************************
ok: [localhost] => {
"msg": {
"/dev/sda1": {
"delete_on_termination": true,
"status": "attached",
"volume_id": "vol-06f1da9e7dac45933"
}
}
}
octave:1> addpath inst
octave:2> which redis
'redis' is a built-in function
octave:3> addpath serialize
octave:4> x(1).a = pi;
octave:5> x(2).a = [1 2 3];
octave:6> x(1).b = 1;
octave:7> x(2).b = {3,4, randi(10,3,3)};
octave:8> x
x =
$ traceroute git.osuv.de
traceroute to git.osuv.de (159.69.220.45), 30 hops max, 60 byte packets
1 _gateway (192.168.178.1) 10.023 ms 9.992 ms 9.966 ms
2 ltea-178-014-104-001.pools.arcor-ip.net (178.14.104.1) 19.740 ms 21.384 ms 22.436 ms
3 * * *
4 92.79.202.86 (92.79.202.86) 29.247 ms 92.79.215.114 (92.79.215.114) 33.314 ms 33.626 ms
5 145.254.2.195 (145.254.2.195) 41.211 ms 43.973 ms 45.338 ms
6 * 145.254.2.179 (145.254.2.179) 35.077 ms *
7 decix2-gw.hetzner.de (80.81.193.164) 35.219 ms 39.825 ms 45.637 ms
8 core12.nbg1.hetzner.com (213.239.245.246) 94.691 ms 94.699 ms core11.nbg1.hetzner.com (213.239.245.34) 94.680 ms
Markuss-Air:dotfiles markus$ traceroute git.osuv.de
traceroute to git.osuv.de (51.15.59.15), 64 hops max, 52 byte packets
1 fritz.box (192.168.178.1) 2.809 ms 2.916 ms 13.418 ms
2 dslb-094-222-208-001.094.222.pools.vodafone-ip.de (94.222.208.1) 22.988 ms 128.525 ms 407.655 ms
3 188.111.206.222 (188.111.206.222) 60.255 ms 53.011 ms 315.342 ms
4 92.79.215.114 (92.79.215.114) 55.759 ms
92.79.202.86 (92.79.202.86) 48.584 ms 59.868 ms
5 145.254.2.207 (145.254.2.207) 67.560 ms
145.254.2.209 (145.254.2.209) 314.145 ms
145.254.2.207 (145.254.2.207) 64.754 ms
@markuman
markuman / some.md
Last active December 23, 2018 10:44
ab c 25 n 100 ab c100 n 1000
hug swarm scale 2 72.57 [#/sec] (mean)
longest 1126 ms
bjrön hug swarm scale 2 258.57 [#/sec] 286.29 [#/sec]
longest 122 ms 568 ms
hug swarm scale 5 243.02 [#/sec] (mean) 206.69 [#/sec] (mean)
longest 159 ms 3498 ms
uwsgi swarm scale 2 237.60 [#/sec] (mean) 272.42 [#/sec] (mean)
longest 125 ms 581 ms
ubuntu@ip-10-115-4-8:~$ ab -c 1 -n 100 https://commits.git.osuv.de/index.html?user=m
This is ApacheBench, Version 2.3 <$Revision: 1807734 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking commits.git.osuv.de (be patient).....done
Server Software: Caddy
Server Hostname: commits.git.osuv.de
- name: create empty security group for ECS Instances
ec2_group:
name: ECS_ACCESS
description: access ECS Instances
region: eu-central-1
state: present
vpc_id: vpc-d04703b8
register: ecsinstance
- name: print ecs instance security group id