I hereby claim:
- I am vanjacosic on github.
- I am vanjacosic (https://keybase.io/vanjacosic) on keybase.
- I have a public key ASDiTfcuxbrNTtbJqmnp4p5K-nSfQA5xgJL1apTqyp2VrQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
To:
Their Data Protection Officer, usually dpo@companyname.com
Subject:
Request for erasure (GDPR)
by @piquadrat and @vanjacosic from Opbeat.
This is the approach we use on Opbeat.com. In gulp it uses the gulp-asset-manifest module. In Django, it uses custom template tags to load the manifest.
We use it for JS and CSS, in this example it's some JS library files.
| #!/usr/bin/python | |
| # Pre-commit hook to prevent commits in the master branch ('prod' in our case) | |
| # Create a filed named 'pre-commit' in your local repository in the '.git/hooks' folder | |
| # and make sure it is executable by using `chmod +x .git/hooks/pre-commit` | |
| from subprocess import check_output | |
| FORBIDDEN_BRANCH = 'prod' | |
| CURRENT_BRANCH = str( |
| [{ "keys": ["super+ctrl+l"], "command": "insert_snippet", "args": {"name": "Packages/User/jslog.sublime-snippet"} }, | |
| { "keys": ["super+ctrl+e"], "command": "insert_snippet", "args": {"name": "Packages/User/mootools-newElement.sublime-snippet"} }, | |
| { "keys": ["super+ctrl+t"], "command": "insert_snippet", "args": {"name": "Packages/User/localization.sublime-snippet"} } | |
| ] | |
| jslog.sublime-snippet: | |
| <snippet> | |
| <content><![CDATA[console.log(${1:$SELECTION});]]></content> | |
| <tabTrigger>l!</tabTrigger> |