Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Mujahed Altahle mtahle

🏠
Working from home
View GitHub Profile
@mtahle
mtahle / create-apache2-virtual-host.sh
Last active Feb 7, 2022
A shell script to create apache2 virtual host
View create-apache2-virtual-host.sh
#!/bin/bash
# created by Mujahed Al-Tahleh mujahed@ieee.org
E_NO_ARGS=65
if [ $# -eq 0 ]; then
echo "No arguments provided"
echo "Required arguments: 1- web dir name under (/var/www/) 2- linux user 3- website domain name"
exit $E_NO_ARGS
fi
@mtahle
mtahle / get-docker-compose.sh
Created Sep 7, 2021
docker compose installer
View get-docker-compose.sh
#!/bin/sh
set -o errexit
set -o nounset
IFS=$(printf '\n\t')
# Docker Compose
sudo wget --output-document=/usr/local/bin/docker-compose "https://github.com/docker/compose/releases/download/$(wget --quiet --output-document=- https://api.github.com/repos/docker/compose/releases/latest | grep --perl-regexp --only-matching '"tag_name": "\K.*?(?=")')/run.sh"
sudo chmod +x /usr/local/bin/docker-compose
View php-reverse.php
<?php
// php-reverse-shell - A Reverse Shell implementation in PHP
// Copyright (C) 2007 pentestmonkey@pentestmonkey.net
//
// This tool may be used for legal purposes only. Users take full responsibility
// for any actions performed using this tool. The author accepts no liability
// for damage caused by this tool. If these terms are not acceptable to you, then
// do not use this tool.
//
// In all other respects the GPL version 2 applies:
View keybase.md

Keybase proof

I hereby claim:

  • I am mtahle on github.
  • I am mtahle (https://keybase.io/mtahle) on keybase.
  • I have a public key whose fingerprint is AA7A 7FDE 2D53 DF2C 8516 F42A C1B1 2371 24E7 88D4

To claim this, I am signing this object:

@mtahle
mtahle / setup.sh
Created Sep 1, 2019 — forked from samuelantonioli/setup.sh
wire-server setup using fake dependencies
View setup.sh
#!/bin/bash
# chmod +x setup.sh && ./setup.sh
# [!] only for testing! this is not stable or secure
# it takes some hours.
# it is available under http://<server-ip>:8080
#
# make sure that you run ubuntu 16.04
# you need minimum 25gb (10gb filled with build dependencies)
@mtahle
mtahle / README-Template.md
Created Apr 20, 2019 — forked from PurpleBooth/README-Template.md
A template to make good README.md
View README-Template.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@mtahle
mtahle / msys_hetzner-etc_network_interfaces
Last active Aug 30, 2015 — forked from jpawlowski/msys_hetzner-etc_network_interfaces
Debian network configuration for Proxmox VE server running on a Hetzner host
View msys_hetzner-etc_network_interfaces
# /etc/network/interfaces
#
auto lo
iface lo inet loopback
# device: eth0
iface eth0 inet manual
# IPv4 bridge
# (connect ONLY your firewall/router KVM instance here, this is the WAN device!)