Skip to content

Instantly share code, notes, and snippets.

@adipriyantobpn
adipriyantobpn / gitflow-breakdown.md
Created September 3, 2017 04:52 — forked from JamesMGreene/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
git commit --allow-empty -m "Initial commit"
git checkout -b develop master

Connect to the remote repository

@adipriyantobpn
adipriyantobpn / bashrc
Last active February 21, 2021 13:04
Autostart SSH-agent and autoload private keys
#
# Autostart SSH-agent and autoload all private keys in ~/.ssh directory
#
# How to use:
# - Place this scripts in ~/.bashrc
# - If ssh-agent is not filled by any private keys, passphrase prompts will show up for each private keys
#
# register ssh key
env=~/.ssh/agent.env
@adipriyantobpn
adipriyantobpn / get_oracle_jdk_linux_x64.sh
Last active June 13, 2017 17:53 — forked from n0ts/get_oracle_jdk_x64.sh
Get latest Oracle JDK package bash shell script
#!/bin/bash
# You must accept the Oracle Binary Code License
# http://www.oracle.com/technetwork/java/javase/terms/license/index.html
# usage: get_jdk.sh <ext> <jdk_version>
# ext: rpm
# jdk_version: default 8
ext=rpm
jdk_version=8
@adipriyantobpn
adipriyantobpn / vagrant-box-update-all.sh
Created March 9, 2017 11:19 — forked from thom8/vagrant-box-update-all.sh
Update all your vagrant base boxes
#!/bin/bash
# Find all boxes which have updates
AVAILABLE_UPDATES=`vagrant box outdated --global | grep outdated | tr -d "*'" | cut -d ' ' -f 2`
if [ ! ${#AVAILABLE_UPDATES[@]} -eq 0 ]; then
for box in $AVAILABLE_UPDATES ; do
echo "Found an update for $box"
@adipriyantobpn
adipriyantobpn / gist:92b56a624fbe5bdad21542de78dcd9f0
Created February 10, 2017 21:04 — forked from AggroBoy/gist:1242257
XML escaping SED script
sed -e 's~&~\&amp;~g' -e 's~<~\&lt;~g' -e 's~>~\&gt;~g' -e 's~\"~\&quot;~g' -e "s~\'~\&apos;~g"
@adipriyantobpn
adipriyantobpn / mqttProducer.xml
Created February 10, 2017 14:57 — forked from pzfreo/mqttProducer.xml
Simple WSO2 ESB config to demonstrate HTTP POST -> MQTT
<?xml version="1.0" encoding="UTF-8"?>
<api xmlns="http://ws.apache.org/ns/synapse"
name="mqttP2"
context="/mqttqos">
<resource methods="POST" uri-template="/{qos}">
<inSequence>
<log/>
<property name="OUT_ONLY" value="true"/>
<property name="FORCE_SC_ACCEPTED" value="true" scope="axis2" type="STRING"/>
<property name="messageType" value="application/json" scope="axis2"/>
@adipriyantobpn
adipriyantobpn / magento-nginx.conf
Created September 25, 2016 15:51 — forked from gwillem/magento-nginx.conf
Battle-tested Nginx configuration for Magento (source: www.hypernode.com)
# This is an annotated subset of the Nginx configuration from our Magento production platform @ www.hypernode.com
# See https://www.byte.nl/blog/magento-cacheleak-issue
# !!!! If you are a Hypernode customer, do not use this config as it will result in duplicate statements. !!!!!
user app;
worker_processes 4;
pid /var/run/nginx.pid;
events {
@adipriyantobpn
adipriyantobpn / addvh.sh
Last active August 29, 2015 14:23 — forked from surahmans/addvh.sh
#! /bin/bash
httpd_conf_file='/etc/apache2/httpd.conf';
hosts_file='/etc/hosts';
server_name='';
function check()
{
if [ "$httpd_conf_file" = "" ]; then
echo "You must config the httpd_conf_file!";
@adipriyantobpn
adipriyantobpn / yii2-apidoc gen
Created April 19, 2015 05:30
Update Yii2 from public repo, then generate Guide & API documentation
#!/bin/bash
apidoc=/home/adipriyanto/PhpstormProjects/yii2pg/vendor/bin/apidoc
par_interactive="--interactive=0"
yii_dir=/home/adipriyanto/Documents/sourceCode/repo/yiisoft/yii2
curr_dir=`pwd`
echo "# -- Update Yii2 repo"
cd $yii_dir
echo "cd to " `pwd`
echo "git fetch"
IDE JAVA :
Netbeans :
https://netbeans.org/downloads/
Eclipse :
http://www.eclipse.org/downloads/
IntelliJ IDEA :
http://www.jetbrains.com/idea/download/