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
$ docker ps | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
4eea64fee19e mariadb:10.1.11 "/docker-entrypoint.s" 27 minutes ago Up 10 minutes 3306/tcp db1_db_1 | |
----- | |
$ cat docker-compose.yml | |
version: '2' | |
services: | |
web: |
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
glibc has the following line: | |
#define SYS_ify(syscall_name) __NR_##syscall_name | |
So I'm trying to do a similar expansion with "name" below: | |
# undef PSEUDO | |
# define PSEUDO(name, syscall_name, args) \ | |
.data; \ | |
##name_jtarget_name: .string "test"; \ | |
.text; \ |
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 | |
x=1 | |
while [ $x -lt 255 ]; | |
do | |
ping 10.0.0.$x 1 | |
x=`expr $x + 1` | |
done |
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
# dpkg --list|grep apache | |
rc apache2 2.2.14-5ubuntu8.15 amd64 Apache HTTP Server metapackage | |
# apt-get remove apache* | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
Package 'apache2' is not installed, so not removed | |
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded. | |
# apt-get purge apache* | |
Reading package lists... Done |
NewerOlder