Skip to content

Instantly share code, notes, and snippets.

View amanjuman's full-sized avatar
😉
Ill

Aman Juman amanjuman

😉
Ill
View GitHub Profile
@amanjuman
amanjuman / uBlock Origin Facebook Unseen
Last active September 4, 2019 15:32
uBlock Origin Facebook Unseen
For Unseen and Typing Block
https://www.facebook.com/ajax/mercury/change_read_status.php$xmlhttprequest
Not Tested
https://www.facebook.com/ajax/messaging/typ.php
https://*-edge-chat.facebook.com
For both messenger and web
/^https?\:\/\/\d+-edge-chat\.(facebook|messenger)\.com\/pull\?.*state=offline/$xmlhttprequest
NEW
/ajax/mercury/change_read_status.php$domain=facebook.com
||facebook.com/ajax/mercury/change_read_status.php$xmlhttprequest
@amanjuman
amanjuman / SoftEther VPN Server Setup in Raspberry Pi 3
Last active October 18, 2023 05:20
SoftEther VPN Server Setup in Raspberry Pi 3
sudo su
cd /root/
wget https://www.softether-download.com/files/softether/v4.34-9745-rtm-2020.04.05-tree/Linux/SoftEther_VPN_Server/32bit_-_ARM_EABI/softether-vpnserver-v4.34-9745-rtm-2020.04.05-linux-arm_eabi-32bit.tar.gz
tar xzf softether-vpnserver-v4.34-9745-rtm-2020.04.05-linux-arm_eabi-32bit.tar.gz && rm softether-vpnserver-v4.34-9745-rtm-2020.04.05-linux-arm_eabi-32bit.tar.gz
cd vpnserver && sudo make
cd ..
sudo mv vpnserver /usr/local && cd /usr/local/vpnserver/
sudo chmod 600 *
apt-get update && apt-get upgrade -y
apt-get install nginx -y
apt-et install mysql-server -y
apt-get install php -y
apt-get install php7.0-fpm php7.0-mcrypt php7.0-curl php7.0-cli php7.0-mysql php7.0-gd php7.0-xsl php7.0-json php7.0-bcmath php7.0-intl php-pear php7.0-dev php7.0-common php7.0-mbstring php7.0-zip php-soap libcurl3 curl -y
apt-get install zip unzip -y
mkdir /var/www/magento2
cd /var/www/magento2/
unzip /root/Magento-CE-2.2.5-2018-06-26-09-16-26.zip
@amanjuman
amanjuman / Install Sendy on LAMP with No Error
Last active July 16, 2023 08:37
Install Sendy on LAMP with No Error
## Update and Upgrade Repos
sudo su
sudo apt update -y && sudo apt upgrade -y && sudo apt dist-upgrade -y && sudo apt autoremove -y
## Setup SWAP
sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
sudo /sbin/mkswap /var/swap.1
sudo /sbin/swapon /var/swap.1
sudo sh -c 'echo "/var/swap.1 swap swap defaults 0 0 " >> /etc/fstab'
@amanjuman
amanjuman / windows10activation
Last active April 30, 2024 20:38
Activate Windows 10 without Any Activator
1. Open CMD as Administrator
2. Paste the following commands into the Cmd: One by one, follow the order.
cscript slmgr.vbs /ipk "SERIAL NUMBER HERE"
Replace SERIAL NUMBER HER with any of these, according your Windows 10 installation type.
Home/Core TX9XD-98N7V-6WMQ6-BX7FG-H8Q99
Home/Core (Country Specific) PVMJN-6DFY6-9CCP6-7BKTT-D3WVR
Home/Core (Single Language) 7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH
@amanjuman
amanjuman / Sendy Nginx Config
Last active February 26, 2024 20:04
Sendy Nginx Config for PHP8.1 FPM
sudo su
//Setup Hostname
hostnamectl set-hostname subdomain.domain.tld
## Basic
sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get autoremove -y && sudo apt-get install software-properties-common
//Setup SWAP
sudo fallocate -l 1G /swapfile;
ls -lh /swapfile;
@amanjuman
amanjuman / Full Linux Server Backup with Duplicity & S3
Created October 11, 2018 20:49
Full Linux Server Backup with Duplicity & S3
# Install Duplicity
sudo apt-get update
sudo apt-get install duplicity duply python-boto screen
#Create a profile of backup.
duply backupfullserver create
#Generate Secure Password for GPG
@amanjuman
amanjuman / Mautic LEMP with PHP7.0FPM in Ububtu 14.04 x64
Created October 23, 2018 01:56
Mautic LEMP Config with PHP7.0FPM in Ububtu 14.04 x64
server
{
listen 80;
listen [::]:80;
server_name subdomain.example.com;
if ($host = subdomain.example.com)
{
return 301 https://$host$request_uri;
@amanjuman
amanjuman / softether.sh
Created November 30, 2018 18:01 — forked from bouroo/softether.sh
Install softether vpn server on ubuntu 16.04+
#!/usr/local/env bash
# Register digitalocean with free credit https://m.do.co/c/4879bb02d178
# Create vps with 5usd price
if [ "$(whoami)" != "root" ]; then
SUDO=sudo
fi
# Update system
${SUDO} apt-get update && ${SUDO} apt-get -y upgrade
@amanjuman
amanjuman / vpnclient
Created November 30, 2018 18:09 — forked from legokichi/vpnclient
softether vpn client for ubuntu /etc/init.d/vpnclient
#! /bin/sh
### BEGIN INIT INFO
# Provides: vpnclient
# Required-Start: $all
# Required-Stop: $network $local_fs $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start VPN Client at boot time
# chkconfig: 345 44 56
# description: Start VPN Client at boot time.