Skip to content

Instantly share code, notes, and snippets.

@sameerlike141
sameerlike141 / create-cloud-template.sh
Created November 11, 2024 12:59 — forked from meramsey/create-cloud-template.sh
This script will download a cloud image of many Linux distros and create a Proxmox 6 KVM template from it.
#!/bin/bash
set -o errexit
clear
printf "\n*** This script will download a cloud image and create a Proxmox VM template from it. ***\n\n"
### HOW TO USE
### Pre-req:
### - run on a Proxmox 6 server
### - a dhcp server should be active on vmbr1
@sameerlike141
sameerlike141 / install-lamp-ubuntu.sh
Created February 24, 2023 15:05 — forked from kumar92varun/install-lamp-ubuntu.sh
Install LAMP on Ubuntu 20 Server. Download this script on Ubuntu using this command:
#!/bin/bash
###################################################
## Step 1: Navigate to script Gist:
## https://gist.github.com/kumar92varun/b34b8267fc8b3ad99cf3e9219a88125c
##
## Step 2: Download this script on Ubuntu:
## curl -sS <--PASTE-SCRIPT-URL-HERE--> -o lamp-installer.sh
##
## Step 3: Give this shell script execute permissions:
#include "DigiKeyboard.h"
/*
MOD_CONTROL_LEFT Left Ctrl key
MOD_SHIFT_LEFT Left Shift key
MOD_ALT_LEFT Left Alt key
MOD_GUI_LEFT Left Windows key
MOD_CONTROL_RIGHT Right Ctrl key
MOD_SHIFT_RIGHT Right Shift key
MOD_ALT_RIGHT Right Alt key
MOD_GUI_RIGHT Right Windows key
@sameerlike141
sameerlike141 / wazuhinstall.sh
Created September 23, 2022 17:27 — forked from austinsonger/wazuhinstall.sh
Wazuh Install - Single Server
# Requirements
sudo apt install curl apt-transport-https unzip wget libcap2-bin software-properties-common lsb-release -y
sudo apt install gpgv gpgsm gnupg-l10n gnupg dirmngr -y
add-apt-repository ppa:openjdk-r/ppa
sudo apt update -y
sudo curl -so /etc/profile.d/myenvvars.sh https://gist.githubusercontent.com/austinsonger/2385ff1ef5ccb014aaed4d8684dd6e54/raw/e1d9b85b3383d1a50a54eac68ab7ad7c3e0c2797/myenvvars.sh
export JAVA_HOME=/usr/
sudo apt install openjdk-11-jdk -y
# Wazuh Prep
@sameerlike141
sameerlike141 / ipv6_proxmox_online.net.md
Created August 24, 2022 13:14 — forked from zwindler/ipv6_proxmox_online.net.md
Configuring IPv6 block from Online.net On Proxmox Host and Guests

Configuring IPv6 block from Online.net On Proxmox Host and Guests

Following the documentation on online.net would get IPv6 to work only in a simple system installation but won't get IPv6 to work with virtualization environment (Exp. Proxmox) as It's missing some IPv6 forwards and proxies on sysctl.conf.

On Proxmox Host (Or Debian if single Debian Installation)

Enable IPv6 on the System:

  • Change Module Options to Enable IPv6:
@sameerlike141
sameerlike141 / lamp.sh
Created August 14, 2022 12:40 — forked from m45k174/lamp.sh
Bash script to install Apache, MySQL and PHP as well as PHPMyAdmin and some tweaks. For Debian and Ubuntu. To run, copy the script to the server and run ``bash lamp.sh``
#!/bin/sh
#######################################
# Bash script to install an AMP stack and PHPMyAdmin plus tweaks. For Debian based systems.
# Written by @AamnahAkram from http://aamnah.com
# In case of any errors (e.g. MySQL) just re-run the script. Nothing will be re-installed except for the packages with errors.
#######################################
#COLORS
@echo off
:======================================================================================================================================================
:Thanks to abbodi1406 for SppExtComObjPatcher-kms\2-Activate-Local.cmd, which used as base in this script
:Thanks to rpo for the Great and Continued help in improving this script.
:Thanks to AR_Alex for the ideas and suggestions.
:======================================================================================================================================================
::===========================================================================
fsutil dirty query %systemdrive% >nul 2>&1 || (
@sameerlike141
sameerlike141 / xposed.markdown
Created February 28, 2022 17:07 — forked from goncalor/xposed.markdown
How to install Xposed and JustTrustMe in a VM to defeat certificate pinning

Installing Xposed & JustTrustMe in a VM

Prerequisites

  • [Download][android_x86] an x86 Android image (32 bits)
  • [Download][xda_xposed] the XposedInstaller APK (see at bottom of original post)
  • [Download][xposed_zip] the Xposed framework for SDK27 (Android 8.1)
@sameerlike141
sameerlike141 / tor-openvpn.sh
Created January 19, 2022 10:35 — forked from kremalicious/tor-openvpn.sh
Install and configure Tor as proxy for all OpenVPN server traffic
# what we want:
# client -> OpenVPN -> Tor -> Internet
# Install & configure OpenVPN
# https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-ubuntu-16-04
# assumed OpenVPN configuration
# 10.8.0.1/24-Subnet
# tun0-Interface