Skip to content

Instantly share code, notes, and snippets.

@iruwl
iruwl / configure.txt
Created July 5, 2020 07:36
Run Jasper Report with Java 1.8.0 #ireport #jasper
$ cd blah/blah/iReport-5.1.0
$ wget http://hg.netbeans.org/jet-main/raw-file/3238e03c676f/openide.util/src/org/openide/util/WeakListenerImpl.java
$ javac -d . -cp platform9/lib/org-openide-util.jar WeakListenerImpl.java
$ zip -r platform9/lib/org-openide-util.jar org
$ #source: https://stackoverflow.com/a/32213849

Stop the MySQL Service

I'm using Homebrew to stop the service

brew services stop mysql

Locate MySQL Data Directory

@iruwl
iruwl / ApacheHTTPSConfig.md
Created June 27, 2020 19:22 — forked from nrollr/ApacheHTTPSConfig.md
Enable SSL in Apache for 'localhost' (OSX, El Capitan)

Enable SSL in Apache (OSX)

The following will guide you through the process of enabling SSL on a Apache webserver

  • The instructions have been verified with OSX El Capitan (10.11.2) running Apache 2.4.16
  • The instructions assume you already have a basic Apache configuration enabled on OSX, if this is not the case feel free to consult Gist: "Enable Apache HTTP server (OSX)"

Apache SSL Configuration

Create a directory within /etc/apache2/ using Terminal.app: sudo mkdir /etc/apache2/ssl
Next, generate two host keys:

@iruwl
iruwl / apache-user.txt
Last active June 27, 2020 19:20
Mengaktifkan apache direktori user #apache #config
Looks like you need to uncomment the following:
#LoadModule userdir_module libexec/apache2/mod_userdir.so
and
#Include /private/etc/apache2/extra/httpd-userdir.conf
Then in httpd-userdir.conf you may need to uncomment:
@iruwl
iruwl / compile-postgresql.txt
Created June 23, 2020 09:16
Install or compile postgresql from source
# https://www.thegeekstuff.com/2009/04/linux-postgresql-install-and-configure-from-source/
$ sudo apt-get install make gcc zlib1g-dev bison
$ wget https://ftp.postgresql.org/pub/source/v8.4.22/postgresql-8.4.22.tar.gz
$ tar xvfz postgresql-8.4.22.tar.gz
$ cd postgresql-8.4.22
$ ./configure [--with-pgport=5433] [--without-readline]
$ make
$ sudo make install
@iruwl
iruwl / compile-python3.txt
Created June 23, 2020 09:02
Install or compile python 3+ from source
$ sudo apt-get install build-essential libreadline-dev libffi-dev zlib1g-dev libsqlite3-dev libbz2-dev libssl-dev
$ dpkg -l | grep openssl # jika versi OpenSSL > 1.1.0+, go to #skip-compile-openssl
$ git clone https://github.com/openssl/openssl
$ cd openssl
$ ./config
$ make
$ make test
$ sudo make install
$ sudo ldconfig
@iruwl
iruwl / sources.list
Created June 19, 2020 08:38
Source List - Ubuntu 20.04 LTS Focal Fossa (Indonesia)
## kambing.ui.ac.id (UI, Telkom, Indosat, OpenIXP, INHERENT)
deb http://kambing.ui.ac.id/ubuntu/ focal main restricted universe multiverse
deb http://kambing.ui.ac.id/ubuntu/ focal-updates main restricted universe multiverse
deb http://kambing.ui.ac.id/ubuntu/ focal-security main restricted universe multiverse
deb http://kambing.ui.ac.id/ubuntu/ focal-backports main restricted universe multiverse
deb http://kambing.ui.ac.id/ubuntu/ focal-proposed main restricted universe multiverse
## ftp.itb.ac.id
#deb ftp://ftp.itb.ac.id/pub/ubuntu/ focal main restricted universe multiverse
#deb ftp://ftp.itb.ac.id/pub/ubuntu/ focal-updates main restricted universe multiverse
@iruwl
iruwl / sources.list
Last active June 19, 2020 08:36
Source List - Ubuntu 18.04 Bionic Beaver (Indonesia)
## wget -O sources.list https://bit.ly/37K1kQg
## kambing.ui.ac.id (UI, Telkom, Indosat, OpenIXP, INHERENT)
deb http://kambing.ui.ac.id/ubuntu/ bionic main restricted universe multiverse
deb http://kambing.ui.ac.id/ubuntu/ bionic-updates main restricted universe multiverse
deb http://kambing.ui.ac.id/ubuntu/ bionic-security main restricted universe multiverse
deb http://kambing.ui.ac.id/ubuntu/ bionic-backports main restricted universe multiverse
deb http://kambing.ui.ac.id/ubuntu/ bionic-proposed main restricted universe multiverse
## buaya.klas.or.id (Komunitas Linux Arek Suroboyo, INHERENT)
@iruwl
iruwl / sources.list
Last active June 19, 2020 08:31
Source List - Debian 8 Jessie (Indonesia)
## wget -O sources.list https://bit.ly/2Bjd0x2
## KAMBING-UI
deb http://kambing.ui.ac.id/debian/ jessie main contrib non-free
#deb http://kambing.ui.ac.id/debian/ jessie-updates main contrib non-free
deb http://kambing.ui.ac.id/debian-security/ jessie/updates main contrib non-free
## KEBO VLSM
#deb http://kebo.vlsm.org/debian/ jessie main contrib non-free
#deb http://kebo.vlsm.org/debian/ jessie-updates main contrib non-free
@iruwl
iruwl / sources.list
Last active June 19, 2020 08:18
Source List - Debian 9 Stretch (Indonesia)
## https://bit.ly/3fIkVTl
## Kambing UI
#deb http://kambing.ui.ac.id/debian/ stretch main contrib non-free
#deb http://kambing.ui.ac.id/debian/ stretch-updates main contrib non-free
#deb http://kambing.ui.ac.id/debian-security/ stretch/updates main contrib non-free
## Kebo VLSM
#deb http://kebo.vlsm.org/debian/ stretch main contrib non-free
#deb http://kebo.vlsm.org/debian/ stretch-updates main contrib non-free