slmgr /ipk your_license_keyReplace your_license_key with following volumn license keys according to Windows Edition:
| function myappdocdir() { | |
| devid=$(xcrun simctl list devices | grep Booted | sed -n 's/^.*\([A-F0-9]\{8\}-\([A-F0-9]\{4\}-\)\{3\}[A-F0-9]\{12\}\).*$/\1/p') | |
| for folder in ~/Library/Developer/CoreSimulator/Devices/$devid/data/Containers/Data/Application/*; do | |
| if [[ -a $folder/.com.apple.mobile_container_manager.metadata.plist ]]; then | |
| if [[ 'com.apple.phone' = $(/usr/libexec/PlistBuddy -c 'Print :MCMMetadataIdentifier' $folder/.com.apple.mobile_container_manager.metadata.plist) ]]; then | |
| echo $folder | |
| break | |
| fi | |
| fi | |
| done |
| const fs = require("fs"); | |
| const bundle = fs.readFileSync("path-to-webpack-bundle.html", "utf8"); | |
| const escaped = JSON.stringify(bundle); | |
| const js = `export default ${escaped}`; | |
| fs.writeFileSync("javascript-output-file.ts", js); |
| REF LINK: https://www.odoo.com/forum/help-1/question/odoo10-how-to-inherit-templates-of-web-module-119140#answer-119142 | |
| This is main template: | |
| <template id="template" xml:space="preserve"> | |
| <t t-name="DemoExample"> | |
| <div class="demo-one"> | |
| <p>odoo</p> | |
| </div> | |
| </t> |
| #!/bin/sh | |
| # e.g. CONTAINER_REGISTRY=asia.gcr.io/your-project-name/gcf/asia-northeast1 | |
| CONTAINER_REGISTRY=`WRITE YOUR REGISTRY NAME` | |
| IMAGE_LIST=`gcloud container images list --repository=$CONTAINER_REGISTRY | awk 'NR!=1'` | |
| for line in $IMAGE_LIST; do | |
| gcloud container images delete "$line/worker" --quiet & gcloud container images delete "$line/cache" --quiet & | |
| done |
UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.
Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/
sudo amazon-linux-extras install docker
sudo service docker start(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| # config to don't allow the browser to render the page inside an frame or iframe | |
| # and avoid clickjacking http://en.wikipedia.org/wiki/Clickjacking | |
| # if you need to allow [i]frames, you can use SAMEORIGIN or even set an uri with ALLOW-FROM uri | |
| # https://developer.mozilla.org/en-US/docs/HTTP/X-Frame-Options | |
| add_header X-Frame-Options SAMEORIGIN; | |
| # when serving user-supplied content, include a X-Content-Type-Options: nosniff header along with the Content-Type: header, | |
| # to disable content-type sniffing on some browsers. | |
| # https://www.owasp.org/index.php/List_of_useful_HTTP_headers | |
| # currently suppoorted in IE > 8 http://blogs.msdn.com/b/ie/archive/2008/09/02/ie8-security-part-vi-beta-2-update.aspx |
When setting these options consider the following:
sudo grep max_children /var/log/php?.?-fpm.log.1 /var/log/php?.?-fpm.log