Headless CMS – Cockpit

Cockpit – A PHP self-hosted headless and api-driven CMS
https://getcockpit.com/
https://github.com/agentejo/cockpit

Cockpit – Documentation – Getting started
https://getcockpit.com/documentation/getting-started/introduction

Cockpit – Documentation – API
https://getcockpit.com/documentation/api/cockpit

Cockpit – Documentation – API Token
https://getcockpit.com/documentation/api/token

Cockpit and Vue.JS – How to display Cockpit CMS JSON data with Vue js
https://stackoverflow.com/questions/46700207/how-to-display-cockpit-cms-json-data-with-vue-js

vue-cockpit – Makes it easy to build a frontend displaying data from Cockpit CMS by automatically mapping all collections and regions into variables in the vue data scope.
https://github.com/dropclick/vue-cockpit

nuxt-cockpit – A Tutorial to Bundle Cockpit CMS & Nuxt.js in a full JAMstack
https://github.com/snipcart/nuxt-cockpit

Utilitários unidos – inotifywait and grep

#!/bin/bash
#
#    Copyright (C) 2017 Leonardo Serra 
#
#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with this program.  If not, see .
#

echo $((2**24)) > /proc/sys/fs/inotify/max_user_watches

inotifywait -m -r -e modify --format '%w%f' /var/www| while read FILE
do
  case $FILE in
    *.php*)
#      echo 'Scanning file '$FILE' ...'
      if /bin/grep -q 'create_function' $FILE
      then
        date=`date '+%Y/%m/%d %H:%M:%S'`
        echo $date' Found create_function at file: '$FILE
      fi
  esac
done

Building Application with PHP and Google Big Query

This article shows the recommended way to authenticate to a Cloud API.

This page provides a short exercise in building a simple command-line application (in C#, Go, Java, Node.js, PHP, Python, or Ruby) with the Google BigQuery API. This simple application will run a query on one of the available Sample Datasets and display the result.

This page shows how to get started with the new Cloud Client Libraries for the Google BigQuery API. Read more about the client libraries for Cloud APIs, including the older Google APIs Client Libraries, in Client Libraries Explained.

API Google Cloud BigQuery allows you to create, manage, share and query data.

BigQuery And PHP QuickStart Sample