Skip to content

Instantly share code, notes, and snippets.

View micromax's full-sized avatar
🎯
Focusing

Mohamed Alaa micromax

🎯
Focusing
View GitHub Profile
@micromax
micromax / run-jar-as-a-service.md
Created March 18, 2018 15:26 — forked from marlonbernardes/run-jar-as-a-service.md
How to make a jar file run on startup
  1. Create the start and stop scripts of your application.
  • Example:

myapp-start.sh

#!/bin/bash
cd /home/ubuntu/myapp/
java -jar myapp.jar --server.port=8888 &
@micromax
micromax / URLTest.java
Created December 26, 2017 20:55 — forked from mafulafunk/URLTest.java
URL get Content as InputStream, ignore any SSL security
package de.martinfunk;
import java.io.IOException;
import java.io.InputStream;
import java.net.Authenticator;
import java.net.PasswordAuthentication;
import java.net.URISyntaxException;
import java.net.URL;
import java.net.URLConnection;
import java.security.KeyManagementException;
@micromax
micromax / honeypot.py
Created February 1, 2017 21:49 — forked from omnidan/honeypot.py
HONEYPOT.PY | A simple honeypot written in python.
#!/usr/bin/env python
"""
Copyright (c) 2011, Daniel Bugl
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright