Skip to content

Instantly share code, notes, and snippets.


Lucas Duete lucasduete

View GitHub Profile
lucasduete / gist:b774e1a6385c381feab6807c9d5a9090
Last active Jan 7, 2020
How to change default error page(status 404 - not found) in GlassFish
View gist:b774e1a6385c381feab6807c9d5a9090
Create a page 404.htm
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>404 - Page not found.</title>
lucasduete /
Created Mar 27, 2019 — forked from jhass/
Capture unix socket to pcap file with socat and tshark
# Parameters
# Extract repetition
source_socket="$(dirname "${socket}")/$(basename "${socket}").orig"
lucasduete / .hyper.js
Last active Jun 12, 2018
My personal configs for Hyper terminal
View .hyper.js
module.exports = {
config: {
// choose either `'stable'` or `'canary'`
updateChannel: 'stable',
// default font size in pixels for all tabs
fontSize: 12,
// font family with optional fallbacks
fontFamily: 'Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',
lucasduete / Dockerfile
Created Feb 25, 2018
Dockerfile for create image with NtopNG updated using docker
View Dockerfile
FROM ubuntu:16.04
LABEL maintainer=""
RUN apt-get update
RUN apt-get -y -q install curl lsb-release
RUN curl -s --remote-name
RUN dpkg -i apt-ntop-stable.deb
RUN rm -rf apt-ntop-stable.deb
RUN apt-get update