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
kly@leia:~$ cat foo.c | |
#include <stdio.h> | |
int main(void) { | |
float f = 340282346638528859811704183484516925440.000000; | |
float x = f + 100000000000000000000.0F; | |
printf ("%f vs %f (%s)\n",f,x, (f==x) ? "match" : "no match"); | |
return 0; | |
} | |
kly@leia:~$ gcc -Wall -g foo.c | |
kly@leia:~$ ./a.out |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCWf+ATwOK6VTpWEHxOWpEM6fWmWe8+6/eq11bYt1vcLHeZo3yXdWurHkF+EVMdVZFtoGJKr4XY8CICxPVdXb0EWMTTJHkzpQn58/yeT2Jf9u5/QuKShvZLYrNNfkAkmqyGrVJPhhLKZaK9KEoRGjf9esr6jQkBekJRJm9irTB9H3o25abx+pNcoZ3JysiCdbibFilvgT7FmYcEDke9+kq7Utah/qh/vtxmokimPUw7xY79dHG4rm/JAlhloY88ZmLOksTgisSncNOZV7VGx4Qt8xr5MiAEmqHRzA7Y24RWb1QIzBsPAhZ+5+TGgnOcjIHQjWYk2jOSGcjdTJbU+u1b /home/kly/.ssh/id_rsa |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDwoUgEC/C7cfNvb9FRL1LMYHgOn8dqMMDeDDpQc2yugqjNfRgsxB/jwJYzruV5rdOQogrJZ9l9H9UIye2A9BvBEPLEhH7jKTUMEuicObh12cA/noxgR5nLTAIgtRhFiksctji0akxyw+GCpPPVAx1ZJJAqXjCeM/9X1h7GmPyP/AJ4/v3cyhAKQMAFzktuAT/7nkxhIIIq5aweGuzEonhAcAg/UeURhlz/IWN8lrkwMXG/W7i18bKnTX9S1sppqd85vnbgnwmB+N8m+c3nydjnTZmUNKSar4JqHDN6o+/6jLA1S1iEVVnekNfaFhuD5GOe+QRTpn0by/wspPE4d8Afqah/MQbvyMIsOR5O/LFA+kCJa/63wRObtxkly/q/MZjESHCikZzCtlJqeDo1TzXVqq7H7voVlbT8mqfTCJE4u3br3mfAqB46gk3TwEqH4cUbj1STiIBcMVGhVP66CG//sY5pqwEaBnJlwY8V47h8VhPiQhEd6D8SIcdP2yRAIT004N69GXTissDgRg5pIGmNWm/b6HLaRrat6YyjrNxFvrqEW03Ha2bPbQNKAgno+hPIaMqCbnu5a6Sz9qmq+xkGAmzTqnh/WmmJQtRtpr0/qB4H/sZAnE+NlpN7DkM5pNfNPm6ZLUJK62x/x2F+psdMFRFhYoEl3UEanjktB3LN3Q== /home/kristian/.ssh/id_rsa |
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
get lldpLocChassisId.0 | |
converted: 2d:00:00:00:c8:4f | |
string: -ÈO | |
getnext lldpLocChassisId.0 | |
converted: 4c:32:2d:43:6f:72:65:2e:64:78:2e:6e:6f | |
string: L2-Core.dx.no | |
get lldpLocChassisId | |
converted: 4e:4f:53:55:43:48:49:4e:53:54:41:4e:43:45 | |
string: NOSUCHINSTANCE | |
getnext lldpLocChassisId |
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
L2-SW2#show lldp neighbors detail | |
------------------------------------------------ | |
Local Intf: Gi0/1 | |
Chassis id: fa16.3e72.0343 | |
Port id: Gi0/2 | |
Port Description: to L2-SW2 | |
System Name: L2-Core.dx.no | |
System Description: | |
Cisco IOS Software, vios_l2 Software (vios_l2-ADVENTERPRISEK9-M), Version 15.2(4.0.55)E, TEST ENGINEERING ESTG_WEEKLY BUILD, synced to END_OF_FLO_ISP |
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
172.16.2.51: lldpLocChassisId.0 = Hex-STRING: 2D 00 00 00 C8 4F | |
172.16.2.52: lldpLocChassisId.0 = Hex-STRING: 2D 00 00 00 C8 4F | |
172.16.2.53: lldpLocChassisId.0 = Hex-STRING: FA 16 3E AD FD B0 | |
172.16.2.54: lldpLocChassisId.0 = Hex-STRING: 2D 00 00 00 C8 4F | |
172.16.2.56: lldpLocChassisId.0 = Hex-STRING: FA 16 3E 03 BE C8 | |
172.16.2.57: lldpLocChassisId.0 = Hex-STRING: 2D 00 00 00 C8 4F | |
172.16.2.58: lldpLocChassisId.0 = Hex-STRING: 2D 00 00 00 C8 4F | |
172.16.2.59: lldpLocChassisId.0 = Hex-STRING: 2D 00 00 00 C8 4F |
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
L1-GW#show lldp neighbors | |
Capability codes: | |
(R) Router, (B) Bridge, (T) Telephone, (C) DOCSIS Cable Device | |
(W) WLAN Access Point, (P) Repeater, (S) Station, (O) Other | |
Device ID Local Intf Hold-time Capability Port ID | |
L1-SW1.dx.no Gi0/0 120 R Gi0/0 | |
L2-SW1.dx.no Gi0/0 120 R Gi0/0 | |
L2-Core.dx.no Gi0/0 120 R Gi0/0 | |
L1-SW2.dx.no Gi0/0 120 R Gi0/0 |
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
kristian@tig:~/src/tgnms$ docker exec -ti gondul-db-test file /test | |
/test: ASCII text | |
kristian@tig:~/src/tgnms$ docker exec -ti gondul-db-test cat /test > test | |
kristian@tig:~/src/tgnms$ file test | |
test: ASCII text, with CRLF line terminators |
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
kristian@tig:~/src/tgnms$ ansible-playbook -i build/test/inventory build/test/playbook-test.yml | |
PLAY *************************************************************************** | |
TASK [setup] ******************************************************************* | |
ok: [localhost] | |
TASK [make all] **************************************************************** | |
changed: [localhost] => (item={u'name': u'nms-db-test', u'links': []}) | |
changed: [localhost] => (item={u'name': u'nms-front-test', u'links': [u'nms-db-test:db']}) |
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
kly@leia:~$ cat lol.csv | |
name, title, number, lol | |
kjell, pm, 1, hah | |
magne, boms, 2, hoh ho ho | |
kly@leia:~$ awk --field-separator=, '{print $1}' lol.csv | |
name | |
kjell | |
magne | |
kly@leia:~$ awk --field-separator=, '{print $2}' lol.csv | |
title |