Received too large ...
1. 접속이 안된다.
2. 해결 방법.
결론부터 요약하면 다음 코드를 출력문 앞에 추가해 준다.
1 2 3 | if [ -z "$PS1" ]; then return fi | cs |
터미널 접속인지 아닌지 $PS1 값으로 체크해서 터미널 접속인 경우에만
출력하도록 한다.
1 2 3 4 5 6 7 | .. mermaid:: A[Christmas] --> |Get money|B(Go shopping) B --> C{생각 좀 하고} C --> |One|D[Laptop] C --> |Two|E[iPhone] C --> |Three|F[Car] | cs |
1 2 3 4 5 | preparing documents... done writing output... [100%] rest/Sample Encoding error:'ascii' codec can't encode characters in position 243-244: ordinal not in range(128) The full traceback has been saved in /tmp/sphinx-err-mRmF9N.log, if you want to report the issue to the developers. make: *** [html] Error 1 | cs |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | Traceback (most recent call last): File "/home/ships/VirtualEnvironments/Sphinx/lib/python2.7/site-packages/sphinx/cmdline.py", line 306, in main app.build(opts.force_all, filenames) File "/home/ships/VirtualEnvironments/Sphinx/lib/python2.7/site-packages/sphinx/application.py", line 339, in build self.builder.build_update() File "/home/ships/VirtualEnvironments/Sphinx/lib/python2.7/site-packages/sphinx/builders/__init__.py", line 331, in build_update 'out of date' % len(to_build)) File "/home/ships/VirtualEnvironments/Sphinx/lib/python2.7/site-packages/sphinx/builders/__init__.py", line 397, in build self.write(docnames, list(updated_docnames), method) File "/home/ships/VirtualEnvironments/Sphinx/lib/python2.7/site-packages/sphinx/builders/__init__.py", line 434, in write self._write_serial(sorted(docnames)) File "/home/ships/VirtualEnvironments/Sphinx/lib/python2.7/site-packages/sphinx/builders/__init__.py", line 443, in _write_serial self.write_doc(docname, doctree) File "/home/ships/VirtualEnvironments/Sphinx/lib/python2.7/site-packages/sphinx/builders/html.py", line 555, in write_doc self.docwriter.write(doctree, destination) File "/home/ships/VirtualEnvironments/Sphinx/lib/python2.7/site-packages/docutils/writers/__init__.py", line 80, in write self.translate() File "/home/ships/VirtualEnvironments/Sphinx/lib/python2.7/site-packages/sphinx/writers/html.py", line 56, in translate self.document.walkabout(visitor) File "/home/ships/VirtualEnvironments/Sphinx/lib/python2.7/site-packages/docutils/nodes.py", line 174, in walkabout if child.walkabout(visitor): File "/home/ships/VirtualEnvironments/Sphinx/lib/python2.7/site-packages/docutils/nodes.py", line 174, in walkabout if child.walkabout(visitor): File "/home/ships/VirtualEnvironments/Sphinx/lib/python2.7/site-packages/docutils/nodes.py", line 166, in walkabout visitor.dispatch_visit(self) File "/home/ships/VirtualEnvironments/Sphinx/lib/python2.7/site-packages/docutils/nodes.py", line 1882, in dispatch_visit return method(node) File "/home/ships/VirtualEnvironments/Sphinx/lib/python2.7/site-packages/sphinxcontrib/mermaid.py", line 281, in html_visit_mermaid render_mm_html(self, node, node['code'], node['options']) File "/home/ships/VirtualEnvironments/Sphinx/lib/python2.7/site-packages/sphinxcontrib/mermaid.py", line 245, in render_mm_html imgcls=None, alt=None) File "/home/ships/VirtualEnvironments/Sphinx/lib/python2.7/site-packages/sphinxcontrib/mermaid.py", line 235, in _render_mm_html_raw self.body.append(tag_template.format(align=node.get('align'), code=self.encode(code))) UnicodeEncodeError: 'ascii' codec can't encode characters in position 243-244: ordinal not in range(128) | cs |
1 2 3 | import sys reload(sys) sys.setdefaultencoding('UTF-8') | cs |
1 2 3 4 | # -*- coding: UTF-8 -*- import sys sys.setdefaultencoding('UTF-8') | cs |
1 2 3 4 | $ docker run -d -p 3000:3000 \ -v /var/lib/grafana:/var/lib/grafana \ -e "GF_SECURITY_ADMIN_PASSWORD=secret" \ grafana/grafana | cs |
1 2 3 4 | docker pull grafana docker stop my-grafana-container docker rm my-grafana-container docker run --name=my-grafana-container --restart=always -v /var/lib/grafana:/var/lib/grafana | cs |
1 | sudo apt-get update | cs |
1 | sudo apt-get install vim-full | cs |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # /etc/sysconfig/docker # # Other arguments to pass to the docker daemon process # These will be parsed by the sysv initscript and appended # to the arguments list passed to docker -d other_args="-g /home/ships/docker/ --insecure-registry 192.168.1.100:5000" DOCKER_CERT_PATH=/etc/docker # Resolves: rhbz#1176302 (docker issue #407) DOCKER_NOWARN_KERNEL_VERSION=1 # Location used for temporary files, such as those created by # # docker load and build operations. Default is /var/lib/docker/tmp # # Can be overriden by setting the following environment variable. # # DOCKER_TMPDIR=/var/tmp | cs |
1 | docker run -e SETTING1=foo -e SETTING2=bar ... <image name> | cs |
1 | docker run -v /home/ships/my_statsd_config.conf:/etc/statsd.conf hopsoft/graphite-statsd | cs |