Skip to content

Instantly share code, notes, and snippets.

@hallazzang
hallazzang / README.md
Created November 30, 2017 07:43
Deploy JSP website using Docker + Apache Tomcat from scratch(without IDEs like Eclipse, IntelliJ, etc.)

Docker + Apache Tomcat + JSP

This article describes how to deploy a JSP website using Docker, Apache Tomcat.

Directory structure

I found a way to make a minimal JSP web application from scratch, without any IDE. (ref: https://www.youtube.com/watch?v=JEBR_KJdzSk)

First, organize your working directory like this:

@jcberthon
jcberthon / update-docker-compose.sh
Last active December 20, 2021 02:56
Downloading and installing/updating latest Docker Compose (command line)
#!/bin/bash
# Copyright 2017-2018 Jean-Christophe Berthon
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@kazuhisya
kazuhisya / Dockerfile
Last active February 8, 2019 23:38
boostnote rpm test build env.
# vi: set ft=dockerfile :
FROM docker.io/ubuntu:16.04
MAINTAINER Kazuhisa Hara <kazuhisya@gmail.com>
ENV TZ="JST-9" \
DEBIAN_FRONTEND="noninteractive"
RUN apt-get update && \
apt-get install -y curl --no-install-recommends
@mapmeld
mapmeld / OverEncrypt.md
Last active July 25, 2023 18:55
OverEncrypt - paranoid HTTPS

OverEncrypt

This is a guide that I wrote to improve the default security of my website https://fortran.io , which has a certificate from LetsEncrypt. I'm choosing to improve HTTPS security and transparency without consideration for legacy browser support.

WARNING: if you mess up settings, lose your certificates, or decide to no longer maintain HTTPS certs, these steps can and will make your domain inaccessible.

I would recommend these steps only if you have a specific need for information security, privacy, and trust with your users, and/or maintain a separate secure.example.com domain which won't mess up your main site. If you've been thinking about hosting a site on Tor, then this might be a good option, too.

The best resources that I've found for explaining these steps are https://https.cio.gov , https://certificate-transparency.org , and https://twitter.com/konklone

#!/usr/bin/python
import os
import socket
import struct
from time import sleep
from pwn import *
bind_ip = '0.0.0.0'
@Thrilleratplay
Thrilleratplay / wallabag.sh
Last active May 6, 2019 20:22
Setting up Wallabag with Docker
#!/bin/bash
# NOTE: DO NOT BLINDLY RUN THIS!!!!! NOT TESTED!!!!!!
MY_PASSWORD="my-secret-pw"
# MariaDB
docker pull mariadb
docker run --restart=always \
#!/usr/bin/python
import re
import os
import sys
import socket
import threading
from time import sleep
from pwn import *
@Grazfather
Grazfather / protostar.md
Created July 17, 2015 07:42
exploit-exercises.com protostar solutions

Protostar solutions

Stack

Stack 0

python -c "print 'A'*70" | ./stack0

Stack 1

Git Cheat Sheet

Commands

Getting Started

git init

or

@sirkkalap
sirkkalap / Install-Docker-on-Linux-Mint.sh
Last active December 8, 2022 18:38
Install Docker on Linux Mint
##########################################
# To run:
# curl -sSL https://gist.githubusercontent.com/sirkkalap/e87cd580a47b180a7d32/raw/d9c9ebae4f5cf64eed4676e8aedac265b5a51bfa/Install-Docker-on-Linux-Mint.sh | bash -x
##########################################
# Check that HTTPS transport is available to APT
if [ ! -e /usr/lib/apt/methods/https ]; then
sudo apt-get update
sudo apt-get install -y apt-transport-https
fi