Skip to content

Instantly share code, notes, and snippets.

@azizasm
azizasm / kwsp.xls
Last active April 13, 2024 06:22
KWSP Excel formula
# This formula can be used in Excel to calculate KWSP/EPF 2024 Employer and Employee
A B C
Salary Majikan Pekerja
6000 720.00 660.00
A2
Enter salary
@azizasm
azizasm / README.txt
Created August 30, 2019 03:47
pdftk dockers - encrypt pdf files
1) Play with dockers
2) ssh and transfer *PS.pdf files
3) docker run -v $(pwd):/work mnuessler/pdftk
4)
docker run -v $(pwd):/work mnuessler/pdftk 213-Haslina-PS.pdf output 213-Haslina-PS-enc.pdf owner_pw xxxx user_pw yyyyy allow printing
@azizasm
azizasm / Solution.java
Created January 17, 2019 04:41
Phone Bill Calculator
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.Date;
import java.util.HashMap;
class Solution {
/**
@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
@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
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 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
@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 / 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.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');