Skip to content

Instantly share code, notes, and snippets.

@azizasm
azizasm / forticlientsslvpn-expect.sh
Last active September 21, 2022 21:10
Continuous run Forticlient VPN using expect. Automatically restart VPN if get disconnected or session closed.
#!/bin/bash
# Forticlient SSL VPN Client / expect
# --------------------------------------------
# CONFIGURATION
FORTICLIENT_PATH=""
@azizasm
azizasm / docker-compose.yml
Last active January 30, 2018 10:14
Openemr dockers - play-with-docker.com
# run openemr from dockers - play-with-docker.com
# to run : http://play-with-docker.com/?stack=https://gist.githubusercontent.com/azizasm/a20ed88c2ce078417d167264908f1f3d/raw/1152b4083089cd1c8065538d81be3e58c52eaaa5/docker-compose.yml
# Use root/example as user/password credentials
version: '3.1'
services:
mysql:
restart: always
image: mysql
@azizasm
azizasm / docker-compose.yml
Last active February 4, 2018 07:54
Tensorflow docker
# run tensorflow from dockers - play-with-docker.com
# to run : http://play-with-docker.com/?stack=https://gist.githubusercontent.com/azizasm/2e8ba3c81a3ba1811f17d48275d6d2b8/raw/docker-compose.yml
# Use root/example as user/password credentials
version: '3.1'
services:
tensorflow:
restart: always
@azizasm
azizasm / mbb.js
Last active March 29, 2018 04:20
Casperjs script to extract / automate maybank2u transaction view
/*==============================================================================*/
/* Casperjs script to extract / automate maybank2u transaction view */
/* Requiremnt : Install casperjs from http://casperjs.org/ and PhantomJS */
/* Requiremnt : Update maybank2u username and password below */
/* To run : casperjs test mbb.js */
/*==============================================================================*/
var fs = require('fs');
@azizasm
azizasm / removePdfWatermark-WSJ2.sh
Created April 6, 2018 10:52
WSJ pdf watermark remover
#!/bin/bash
interactive=
filename=~/removePdfWatermark-WSJ2.sh
bfile=$(basename $1)
#cd /home/osboxes/ZysProj/pdf
@azizasm
azizasm / MBB.iim
Created May 18, 2018 01:50
Web Automation - iMacro Maybank2u Transaction history save into CSV file.
VERSION BUILD=9030808 RECORDER=FX
TAB T=1
SET !EXTRACT_TEST_POPUP NO
URL GOTO=https://www.maybank2u.com.my/mbb/m2u/common/M2ULogin.do?action=Login
FRAME F=1
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:loginForm ATTR=ID:input-rounded CONTENT=username123
WAIT SECONDS=3
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:loginForm ATTR=ID:replacement-4
@azizasm
azizasm / docker-compose.yml
Last active July 6, 2018 11:15
TODO: still under Development and not fully functioning
version: '3.1'
services:
tensorflow:
restart: always
image: cloudera/quickstart:latest
# container_name : zys
ports:
- 8020:8020
# environment:
# MYSQL_ROOT_PASSWORD: root
version: '3.3'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: somewordpress
@azizasm
azizasm / docker-compose.yml
Last active October 4, 2018 08:56
Tensorflow python2
# run tensorflow from dockers - play-with-docker.com
# to run : http://play-with-docker.com/?stack=https://gist.githubusercontent.com/azizasm/42e1e8d2330b4e347d39831ea5db15a9/raw/raw/docker-compose.yml
# Use root/example as user/password credentials
version: '3.1'
services:
tensorflow:
restart: always
@azizasm
azizasm / docker-notes.txt
Created January 14, 2019 02:37
Notes for docker
git clone https://github.com/spring-guides/gs-spring-boot-docker.git
cd gs-spring-boot-docker/initial
docker run -it --rm -v "$(pwd)":/opt/maven -w /opt/maven maven:3.6.0-jdk-8 ./mvnw package
docker run -it --rm -v "$(pwd)":/opt/maven -w /opt/maven maven:3.6.0-jdk-8 java -jar target/gs-spring-boot-docker-0.1.0.jar
cp target/gs-spring-boot-docker-0.1.0.jar app.jar