Skip to content

Instantly share code, notes, and snippets.

View ryctabo's full-sized avatar
:octocat:
Githubing!

Gustavo Pacheco ryctabo

:octocat:
Githubing!
View GitHub Profile
@ryctabo
ryctabo / index.html
Last active October 1, 2023 15:15
Example HTML for Fabio
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fabio</title>
<link rel="stylesheet" href="style.css">
</head>
@ryctabo
ryctabo / .gitignore
Created February 26, 2018 15:37
Git Ignore for Java Web Applications
# Compiled class file
*.class
# Log file
*.log
# BlueJ files
*.ctxt
# Mobile Tools for Java (J2ME)
@ryctabo
ryctabo / build.gradle
Created January 28, 2018 22:09
Jersey Test Framework with Grizzly
testCompile 'org.glassfish.jersey.test-framework.providers:jersey-test-framework-provider-grizzly2:2.26'
@ryctabo
ryctabo / web.xml
Created January 22, 2018 02:34
Set up a web service REST with Servlet container 2.5 or higher
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" version="3.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd">
<servlet>
<servlet-name>MyApplication</servlet-name>
<servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>
<init-param>
<param-name>jersey.config.server.provider.packages</param-name>
@ryctabo
ryctabo / build.gradle
Created January 22, 2018 01:29
JAX-RS & Jersey dependency
compile 'org.glassfish.jersey.bundles:jaxrs-ri:2.26'
@ryctabo
ryctabo / Installer
Created November 25, 2017 06:22
How to install MySQL on Arch
# Install MySQL
sudo pacman -S mariadb
sudo mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
# Create and run service of mariadb
sudo systemctl enable mariadb.service
sudo systemctl start mariadb.service
# Install MySQL in secure mode
mysql_secure_installation