Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
| ;; ------------------------------------------------------------------------------------------------------------------------- | |
| ;; Neo tree open xdg on point helpers | |
| ;; ------------------------------------------------------------------------------------------------------------------------- | |
| (defun neotree-open-xdg-on-point () | |
| "Open a file under point." | |
| (interactive) | |
| (call-process "xdg-open" nil 0 nil | |
| (neo-buffer--get-filename-current-line))) | |
| ;; Add "o" as the key that will launch the function |
| #!/bin/bash | |
| # | |
| # Created by Felipe Machado - 2016/02/14 | |
| # | |
| # A retry command for bash | |
| # Retries the given command up to MAX_RETRIES, with an interval of SLEEP_TIME | |
| # between each retry. Just put it on your bash_profile and be happy :) | |
| # Usage: | |
| # retry [-s SLEEP_TIME] [-m MAX_RETRIES] COMMAND_WITH_ARGUMENTS | |
| # |
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
| ... | |
| # Fake a fuse install | |
| RUN apt-get install libfuse2 | |
| RUN cd /tmp ; apt-get download fuse | |
| RUN cd /tmp ; dpkg-deb -x fuse_* . | |
| RUN cd /tmp ; dpkg-deb -e fuse_* | |
| RUN cd /tmp ; rm fuse_*.deb | |
| RUN cd /tmp ; echo -en '#!/bin/bash\nexit 0\n' > DEBIAN/postinst | |
| RUN cd /tmp ; dpkg-deb -b . /fuse.deb |
| abc 1 2 3 | |
| def 4 5 6 | |
| ga 7 9 10 | |
| hij 1 5 99 |
rsync (Everyone seems to like -z, but it is much slower for me)
| # Find the appropriate setting for the provided key | |
| module.exports = config = (key) -> | |
| # return setting from environment variable | |
| if env_value = process.env[key.toUpperCase()] | |
| try | |
| return JSON.parse(env_value) | |
| catch err | |
| if err instanceof SyntaxError | |
| return env_value | |
| else |