sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- Download zsh-autosuggestions by
| #!/bin/bash | |
| # source: http://bravenewmethod.com/2012/05/31/couchdb-cleanup-script-for-purging-old-docs/ | |
| # but modified to get rid of node.js dependency | |
| # if database needs auth: | |
| # DBHOST=user:pass@hostname | |
| DBHOST=localhost | |
| PORT=5984 |
This is a Ghost "App" that will implement a custom Handlebars helper the same as https://apatchofcode.com/adding-custom-handlebars-for-ghost-equals-awesome/
Create a new directory in contents/apps
eg:
mkdir contents/apps/myhelpers
| import os | |
| import errno | |
| from subprocess import call | |
| from gitlab import Gitlab | |
| def mkdir_p(path): | |
| try: | |
| os.makedirs(path) | |
| except OSError as exc: # Python >2.5 | |
| if exc.errno == errno.EEXIST and os.path.isdir(path): |
The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.
The correct way of creating a private frok by duplicating the repo is documented here.
For this assignment the commands are:
git clone --bare [email protected]:usi-systems/easytrace.git
| _charts/ | |
| backendA/ | |
| Chart.yaml | |
| Values.yaml | |
| ... | |
| backendB/ | |
| ... | |
| api-gateway/ | |
| ... | |
| prod/ |
I can't take credit for much of the work here -- I adapted it from this blog post: https://tech.willhaben.at/mongodb-incremental-backups-dff4c8f54d58
My main contribution was to make it a little easier to use with docker as well as numerous little cleanup tasks. I also made it gzip the oplog backups and added support for SSL connections
Note that I havne't yet tested the point in time restore script; it likely needs work, particularly to make things work with the gzipped oplog files
Note: currently only works on *nix systems (until a powershell script can be created)
With the technique below, you can run node, npm, npx, or yarn commands as if the programs were installed
natively on your system, and you won't even know the difference! This includes any ports that your app or dev process
will start up and use for development, as well as compatibility with persistent npm config --global cli usage.
See more in the Usage section below.
| <!-- Google Tag Manager --> | |
| <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({‘gtm.start’: | |
| new Date().getTime(),event:‘gtm.js’});var f=d.getElementsByTagName(s)[0], | |
| j=d.createElement(s),dl=l!=‘dataLayer’?’&l=’+l:’’;j.async=true;j.src= | |
| 'https://www.googletagmanager.com/gtm.js?id=’+i+dl;f.parentNode.insertBefore(j,f); | |
| })(window,document,‘script’,‘dataLayer’,‘GTM-P4H2WTX’); | |
| function gtag(){dataLayer.push(arguments);} | |
| </script> | |
| <!-- End Google Tag Manager --> |