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 |
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
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
$ 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
2016-04-14 14:21:09,623 ERROR [:] [] [] [] [ServiceReplay-9] [i.c.p.e.e.i.ProcessEventListenerImpl] Unknown exception running process [instance.start:16354] on [245] java.lang.IllegalStateException: Attempt to cancel when process is still transitioning | |
at io.cattle.platform.engine.process.impl.DefaultProcessInstanceImpl.runDelegateLoop(DefaultProcessInstanceImpl.java:191) ~[cattle-framework-engine-0.5.0-SNAPSHOT.jar:na] | |
at io.cattle.platform.engine.process.impl.DefaultProcessInstanceImpl.executeWithProcessInstanceLock(DefaultProcessInstanceImpl.java:158) ~[cattle-framework-engine-0.5.0-SNAPSHOT.jar:na] | |
at io.cattle.platform.engine.process.impl.DefaultProcessInstanceImpl$1.doWithLock(DefaultProcessInstanceImpl.java:108) ~[cattle-framework-engine-0.5.0-SNAPSHOT.jar:na] | |
at io.cattle.platform.engine.process.impl.DefaultProcessInstanceImpl$1.doWithLock(DefaultProcessInstanceImpl.java:105) ~[cattle-framework-engine-0.5.0-SNAPSHOT.jar:na] | |
at io.cattle.platform.lock.impl.Abstra |
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
- hosts: tag_Name_swarm_node | |
user: ubuntu | |
become: yes | |
vars: | |
- swarm_manager_ip: "{{ tag_Name_swarm_node[0] }}" | |
roles: | |
- swarm_node |
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
# flockerctl --control-service=swarm-master list | |
DATASET SIZE METADATA STATUS SERVER | |
ea8748d1-26e9-4569-b1dd-d31e018b162c 75.00G name=oranges deleting <missing> |
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
$ unzip ../procps-3.3.9-r3.apk | |
Archive: ../procps-3.3.9-r3.apk | |
End-of-central-directory signature not found. Either this file is not | |
a zipfile, or it constitutes one disk of a multi-part archive. In the | |
latter case the central directory and zipfile comment will be found on | |
the last disk(s) of this archive. | |
unzip: cannot find zipfile directory in one of ../procps-3.3.9-r3.apk or | |
../procps-3.3.9-r3.apk.zip, and cannot find ../procps-3.3.9-r3.apk.ZIP, period. |
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
version: '2' | |
services: | |
db: | |
container_name: mariadb | |
image: mariadb:5.5 | |
ports: | |
- 3306 | |
cap_add: | |
- SYS_PTRACE | |
security_opt: |
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
# Traefik started with | |
# docker service create --constraint=node.role==manager --publish 80:80 --publish 443:443 --mount type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock --network traefik-internal traefik --docker --docker.swarmmode --docker.domain=traefik --docker.watch --web | |
# running this with docker stack deploy --compose-file docker-compose-swarm.yml grafana | |
version: '3' | |
services: | |
grafana: | |
image: grafana/grafana:4.1.2 | |
ports: | |
- "8085:3000" |
OlderNewer