Skip to content

Instantly share code, notes, and snippets.

@marcofanti
marcofanti / passkeys.adoc
Created August 26, 2023 10:25
How to Create Your Own Test Site for Testing Passkeys using `java-webauthn-server`

How to Create Your Own Test Site for Testing Passkeys using java-webauthn-server

Below is a step-by-step guide on setting up a test site to test passkeys. This will involve setting up Java, signing up for ngrok.com, cloning a repository, and running a Gradle wrapper.

**1. Installing Java 17**

**NOTE**: Java 20 is not supported for this guide.
@marcofanti
marcofanti / map_pre_install.sh
Created September 8, 2013 17:39
MAP version 2.5 prerequisites
#install java
sudo yum -y install java-1.6.0-openjdk-devel.x86_64
sudo yum -y install curl-devel
#dependencies needed by RVM
sudo yum -y install which gcc gcc-c++ make gettext-devel expat-devel zlib-devel openssl-devel
sudo yum -y install perl cpio gettext-devel wget bzip2
sudo yum -y install sendmail mailx
sudo yum -y install libxml2 libxml2-devel libxslt libxslt-devel readline-devel patch git
@marcofanti
marcofanti / map_pre_install_1.sh
Last active December 22, 2015 13:08
MAP pre-requisite install scripts
#install java
sudo yum -y install java-1.6.0-openjdk-devel.x86_64
#install and configure MySQL
sudo /bin/rpm -Uvh --replacepkgs \
http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
sudo /bin/rpm -Uvh --replacepkgs \
http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
sudo /usr/bin/yum -d 0 -e 0 -y --enablerepo=remi install mysql mysql-server
awk 'NR==2{print "default-storage-engine=InnoDB\r\nmax_allowed_packet=60MB"}1' /etc/my.cnf > /tmp/my.cnf
package org.itnaf.oim11g.test.delete;
import java.sql.*;
public class DeleteUsers {
// JDBC driver name and database URL
static final String JDBC_DRIVER = "oracle.jdbc.driver.OracleDriver";
String DB_URL = "jdbc:oracle:thin:@host:port:sid";
String[] USERS_TO_IGNORE = { "XELOPERATOR", "XELSYSADM", "OIMOPERATOR", "WEBLOGIC" };