Skip to content

Instantly share code, notes, and snippets.

Coding... coding.. coding.... and coding..!

Hendi Santika hendisantika

Coding... coding.. coding.... and coding..!
Block or report user

Report or block hendisantika

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
hendisantika /
Created Mar 26, 2020 — forked from luanvuhlu/
convert byte data to MultipartFile in Spring MVC
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.web.multipart.MultipartFile;
hendisantika / .gitlab-ci.yml
Created Jul 4, 2019 — forked from superjose/.gitlab-ci.yml
This is an example of a .gitlab-ci.yml that is required for Continuous Integration on GitLab projects.
View .gitlab-ci.yml
# Reference:
# GitLab uses docker in the background, so we need to specify the
# image versions. This is useful because we're freely to use
# multiple node versions to work with it. They come from the docker
# repo.
# Uses NodeJS V 9.4.0
image: node:9.4.0
# And to cache them as well.
hendisantika /
Created May 7, 2019 — forked from Yengas/
Java String comparison, differences between ==, equals, matches, compareTo

String Comparison

In this gist, i will try to explain you what is the main differences between known string comparison techniques and where to use them.

Explanation of methods


This is the main equality operator in Java. To summarize it, this method compares the left and right hands references to eachother and returns boolean. This means this operator returns true only if left and right variable both point at the same Object in the memory. As in most of the class comparisons, this operators is discouraged to use if you're not really intented to check if two variables point to same object.



  • docker-machine create --driver virtualbox dev
  • docker-machine env dev (add values to ~/.zshrc)
    • e.g. echo eval "$(docker-machine env dev)" >> ~/.zshrc
  • docker-machine ls
  • docker ps (might need to re-source .zshrc file; e.g. . ~/.zshrc)
  • docker run hello-world
  • docker-machine ip dev
hendisantika /
Created Feb 28, 2019 — forked from Kartones/
PostgreSQL command line cheatsheet


Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)
hendisantika /
Created May 14, 2018 — forked from nrollr/
Install MySQL on Sierra using Homebrew

Install MySQL on macOS Sierra

This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.

Install MySQL

At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :

hendisantika / bank.xml
Created Apr 5, 2018
Some XSD examples (and reminders!)
View bank.xml
<?xml version="1.0" encoding="UTF-8"?>
<bank xmlns:xsi="" xsi:noNamespaceSchemaLocation="bank.xsd">
<savings_account id="a1" interest="0.03">
<savings_account id="a2" interest="0.03">
hendisantika /
Created Mar 21, 2018 — forked from evantoli/
Configure Git to use a proxy

Configure Git to use a proxy

##In Brief

You may need to configure a proxy server if you're having trouble cloning or fetching from a remote repository or getting an error like unable to access '...' Couldn't resolve host '...'.

Consider something like:

hendisantika /
Created Oct 17, 2017 — forked from ddanailov-nmdp/
Installing Oracle 11g on OS X 10.11 El Capitan
You can’t perform that action at this time.