Generator YO, scaffolding angularjs rich web applications

The web’s scaffolding tool for modern webapps https://github.com/yeoman/generator-angular sudo apt-get install npm sudo npm install -g grunt-cli bower yo generator-karma generator-angular DO NOT WORK AS ROOT since now, otherwise an issue with configstore directory occurs and wrong advice is googled: ( mkdir -p /root/.config/configstore chmod g+rwx /root /root/.config /root/.config/configstore ) However ~/.config/configstore is normally creating … [Read more…]

AWS SDK for Javascript: fixing security issue using encrypted access key/secret key

Follow up article Uploading To S3 With AngularJS we notice that IAM credentials are hard coded (or passing from fields) as a plain text. This note describes simple extended application using PASSPHRASE form field and encrypted access key/secret key so javascripts applications using AWS SDK for JAVASCRIPT controller variables become more secured with simple trick. … [Read more…]

Jenkins Tutorial: connection with GitHub (“Failed to recompute children”)

We deal with configuring Jenkins item “Github Organization”. Here is short note how to avoid error popular “Failed to recompute children of [user]” and to get all set. Let account : github.com/myorganization and repository myrepository On github side: 1. Add public key id_rsa.pub from jenkins host, ( made with “ssh-keygen -t dsa” ) to github … [Read more…]

Details to configure AWS API with nginx proxy alias and nodejs backend.

I need to build angularjs page reading content from AWS S3 bucket to be configured by http request. I am using AWS API with deployment on stage “beta” like this https://f4bpmzx1h451.execute-api.us-east-1.amazonaws.com/beta?param=1 to provide configuration for angularjs and this is one only database lookup on a single page. Using nodejs backend as resource GET with private … [Read more…]

Installation of angular/node.js development framework

The post is follow up of One framework – Angular and check this The basic building blocks of Angular applications This note is about minimum of actions required through development environment installation. I work under Ubuntu 16.04 LTS. 1. Get quickstart software git clone https://github.com/angular/quickstart.git quickstart cd quickstart npm install npm start 2. Fixing bug … [Read more…]

Openssl self-signed certificate for import in AWS Certification Manager

I face problem of blocking at browsers my custom domain what I have used for redirection to AWS S3 static web site hosted on bucket. My custom subdomain.example.com to s3.amazonaws.com/bucketname/staticfile.html AWS Certification manager is free but I want to import free SSL cetificate. I keep a note below with procedure that works. 1. Private key. … [Read more…]

How to identify processes that cause swapping

Just remember this is VmSwap located in /proc/pid/status cat /proc/self/status | grep VmSwap VmSwap: 0 kB homeu16:~$ pgrep puppet 1119 1138 homeu16:~$ cat /proc/1119/status | grep VmSwap VmSwap: 80 kB homeu16:~$ cat /proc/1138/status | grep VmSwap VmSwap: 396 kB for file in /proc/*/status ; do awk ‘/VmSwap|Name/{printf $2 ” ” $3}END{ print “”}’ $file; done … [Read more…]