For educational reasons I've decided to create my own CA. Here is what I learned.
Lets get some context first.
| # -*- coding: utf-8 -*- | |
| # Print iterations progress | |
| def print_progress(iteration, total, prefix='', suffix='', decimals=1, bar_length=100): | |
| """ | |
| Call in a loop to create terminal progress bar | |
| @params: | |
| iteration - Required : current iteration (Int) | |
| total - Required : total iterations (Int) |
| [ | |
| { | |
| "sp":"bluetooth", | |
| "spn":"ble_demo_hc06", | |
| "sf":"20", | |
| "smn":[ | |
| { | |
| "name":"accelerometer_gyroscope", | |
| "data":[ | |
| { |
| # | |
| # nginx configuration example for CakePHP 2.x | |
| # | |
| server { | |
| listen 80; | |
| server_name cakephp2.example; | |
| root /var/www/cakephp2/app/webroot; | |
| access_log /var/log/nginx/cakephp2.access.log; | |
| error_log /var/log/nginx/cakephp2.error.log; |
| # Author: Pieter Noordhuis | |
| # Description: Simple demo to showcase Redis PubSub with EventMachine | |
| # | |
| # Update 7 Oct 2010: | |
| # - This example does *not* appear to work with Chrome >=6.0. Apparently, | |
| # the WebSocket protocol implementation in the cramp gem does not work | |
| # well with Chrome's (newer) WebSocket implementation. | |
| # | |
| # Requirements: | |
| # - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby |
| # Requirements: php, php-yaml (pecl extention) | |
| php -r 'echo print_r(yaml_parse_file(__DIR__ . "/app/config/parameters.yml"), 1);' |
| # oneline | |
| RELEASE_NB=$(ls -tdr -- */ | cut -d'/' -f1 | wc -w) && RELEASE_NB_DIFF=$(echo $RELEASE_NB-3 | bc) && if test $RELEASE_NB > 3 ; then rm -rf $(ls -tdr -- */ | head -$RELEASE_NB_DIFF | cut -d'/' -f1) ; fi |
| <VirtualHost *:80> | |
| DocumentRoot "/home/dev/server/project/dist/" | |
| ServerName vuejs.project.local | |
| <Directory /home/dev/server/project/dist/> | |
| Options Indexes FollowSymLinks MultiViews | |
| AllowOverride all | |
| Require all granted | |
| Order allow,deny | |
| allow from all |
public class UpdateApp extends AsyncTask<String,Void,Void>{
private Context context;
public void setContext(Context contextf){
context = contextf;
}
@Override
protected Void doInBackground(String... arg0) {
try {
| # | |
| # CORS header support | |
| # | |
| # One way to use this is by placing it into a file called "cors_support" | |
| # under your Nginx configuration directory and placing the following | |
| # statement inside your **location** block(s): | |
| # | |
| # include cors_support; | |
| # | |
| # As of Nginx 1.7.5, add_header supports an "always" parameter which |