Skip to content

Instantly share code, notes, and snippets.

View amanjuman's full-sized avatar
😉
Ill

Aman Juman amanjuman

😉
Ill
View GitHub Profile
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 / 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 / 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.
@amanjuman
amanjuman / OpenVZ VPS Resolve Config Persistent
Created January 21, 2019 17:16
OpenVZ VPS Resolve Config Persistent
sudo apt-get install e2fsprogs -y
;Unlock auto reset on boot
sudo chattr -i /etc/resolv.conf
;Lock on auto reset on boot
sudo chattr +i /etc/resolv.conf
;OR create script
@amanjuman
amanjuman / Ring of Elysium Referral Code - 26 January (Working)
Last active February 4, 2019 04:40
Ring of Elysium Referral Code - 26 January (Working)
Ring of Elysium Referral Code: GFJ7N9QGNF5
Ring of Elysium Referral Code 2019
@amanjuman
amanjuman / initd-nodhcp
Created May 14, 2019 10:28 — forked from abegodong/initd-nodhcp
Softether VPN + DNSMasq
#!/bin/sh
# chkconfig: 2345 99 01
# description: SoftEther VPN Server
DAEMON=/usr/local/vpnserver/vpnserver
LOCK=/var/lock/subsys/vpnserver
SERVER_IP=[SERVER_IP]
test -x $DAEMON || exit 0
case "$1" in
start)
$DAEMON start
@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

Keybase proof

I hereby claim:

  • I am amanjuman on github.
  • I am amanjuman (https://keybase.io/amanjuman) on keybase.
  • I have a public key ASBCUl9ZbQE9hfR_mbhHRB3RKTzP1ZjN3QSqAy38upQPJwo

To claim this, I am signing this object:

@amanjuman
amanjuman / Shadowsocks Server Setup and Files
Last active September 27, 2019 14:59
Shadowsocks Server Setup and Files
sudo apt-get update && sudo apt-get upgrade -y
wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocksR.sh && chmod +x shadowsocksR.sh
./shadowsocksR.sh 2>&1 | tee shadowsocksR.log
nano /etc/shadowsocks.json
{
"server":"0.0.0.0",
"server_ipv6":"[::]",
"port_password": {
"1001": "user1",
@amanjuman
amanjuman / nginx-autocomplete
Created February 16, 2020 18:10
Nginx bash autocomplete script
# Name: nginx
# Desc: Nginx bash autocomplete script
# Ver: 1.0
_nginx_allcomp()
{
command ls /etc/nginx/$1 2>/dev/null
}
_nginx_sites()