~$ curl http://www.civicdata.com/api/action/package_list
~$ curl http://www.civicdata.com/api/action/package_show?id={package_id}
~$ curl http://www.civicdata.com/api/storage/auth/form/testdata/test.csv -H "Authorization: <API-KEY>"
$ cd ~ | |
$ sudo curl -sS https://getcomposer.org/installer | sudo php | |
$ sudo mv composer.phar /usr/local/bin/composer | |
$ sudo ln -s /usr/local/bin/composer /usr/bin/composer | |
then you can run | |
$ sudo composer install |
package main | |
import ( | |
"crypto/aes" | |
"crypto/cipher" | |
"crypto/rand" | |
"encoding/base64" | |
"fmt" | |
"io" | |
) |
#!/bin/bash | |
# | |
# Automate mysql secure installation for debian-baed systems | |
# | |
# - You can set a password for root accounts. | |
# - You can remove root accounts that are accessible from outside the local host. | |
# - You can remove anonymous-user accounts. | |
# - You can remove the test database (which by default can be accessed by all users, even anonymous users), | |
# and privileges that permit anyone to access databases with names that start with test_. |
download and install Solr from http://lucene.apache.org/solr/.
you can access Solr admin from your browser: http://localhost:8983/solr/
use the port number used in installation.
For Lumen (5.0.8) (Laravel Components 5.0.*)
Use Case: Deploying Lumen App to Shared Hoster such that it can be called via domain.tld/lumenapp/...
public
to desired name (new root folder, for example lumenapp
)project_src
<?php | |
class PostController extends Controller | |
{ | |
// ... | |
public function actionDelete($id) | |
{ | |
$this->findModel($id)->delete(); | |
if (!Yii::$app->request->isAjax) { | |
return $this->redirect(['index']); |
# | |
# Ubuntu Node.js Dockerfile | |
# | |
# https://github.com/dockerfile/ubuntu/blob/master/Dockerfile | |
# https://docs.docker.com/examples/nodejs_web_app/ | |
# | |
# Pull base image. | |
FROM ubuntu:14.04 |
Yii::$app->errorHandler->errorAction = 'studconsult/default/error'; | |
<?php | |
namespace app\modules\admin; | |
class Module extends \yii\base\Module | |
{ | |
public $controllerNamespace = 'app\modules\admin\controllers'; |
Architecture is 'the important stuff, whatever that is' or 'the parts that are hard to change later'. An architect analyzes business, domain, and other requirements to develop solutions that satisfy a list of prioritized architectural characteristics (-ilities). We should consider time and change with respect to architecture, or evolvability.
Software ecosystems are in a state of dynamic equilibrium. New languages, tools, methods constant force new equilibriums to emerge (free OS, linux, + free operations, puppet, led to the shift to containers). The pace of change in technology is constantly and rapidly changing in unexpected ways. We should architect systems knowing the landscape will change. Make ease of change a principal of architecture, remove the 'hard to change' definition of architecture.
An evolutionary architecture supports guided, incremental change across multiple dimensions. Evolvability is a meta characteristic that