Install pulse secure linux 9 on Fedora 28

This installation is using pulse secure linux version 9 with rpm package ps-pulse-linux-9.0r1.0-b739-centos-rhel-64-bit-installer.rpm $ sudo dnf install compat-libicu57-57.1-2.fc28.x86_64 $ sudo dnf install libgnome-keyring $ sudo rpm -i ps-pulse-linux-9.0r1.0-b739-centos-rhel-64-bit-installer.rpm Create vpn shortcut (optional): $ sudo touch /usr/bin/vpn $ sudo vim /usr/bin/vpn Fill with this script below: #!/bin/bash export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/pulse /usr/local/pulse/pulseUi Make it executable: $ sudo chmod … Read more

Setup Kubernetes on Ubuntu 16.04

Summary This setup is supposedly to install the kubernetes on ubuntu machine with version 16.04 (64bit). I did this in the cloud and have worked perfectly. # whoami && pwd root /root # apt-get update # apt-get install -y apt-transport-https # curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add – # echo “deb http://apt.kubernetes.io/ kubernetes-xenial main” … Read more

Create AWS codebuild project with Terraform

Summary AWS Codebuild is fully managed build service that compiles source code, run tests, and produces software packages that are ready to reploy. To make it easier, we can create it’s infrastructure using terraform. Setup directory structure Before we begin, we can create our own directory structure for the infrastructure. Why this is important? because … Read more

Create docker image and push to AWS ECR

Image tag : test-image awsudo -u aws-profile aws ecr get-login –no-include-email –region ap-southeast-1 sudo docker build -t test-image . sudo docker tag codebuild:test-image 743977200366.dkr.ecr.ap-southeast-1.amazonaws.com/codebuild:test-image sudo docker push 743977200366.dkr.ecr.ap-southeast-1.amazonaws.com/codebuild:test-image  

Python migration with Alembic

$ pip install alembic $ alembic init –template generic alembic edit alembic.ini sqlalchemy.url = mysql://root:@localhost/database_name $ alembic current $ alembic revision -m “Init” $ alembic upgrade head INFO [alembic.migration] Context impl MySQLImpl. INFO [alembic.migration] Will assume non-transactional DDL. INFO [alembic.migration] Running upgrade None -> 174f01a0ar12, Init