Skip to content

Instantly share code, notes, and snippets.

/usr/local/psa/admin/bin/php -er "eval(file_get_contents(''));"
View index.html
<!doctype html>
<title>SSH Client</title>
<script type="text/javascript" src="//"></script>
<script type="text/javascript" src="//"></script>
body {
margin: 0;
padding: 0;
perfectwebtech /
Created Apr 27, 2021 — forked from calvinh8/
MongoDB Setup Guide for AWS EC2 Instances with Auth Enabled

MongoDB AWS EC2 Setup Guide

You can see my latest update in my blog here


Big thanks to Elad Nava and Shane Rainville for writing the above articles that allow me to conduct this guide. If by all means that I violated original post's copyright, please contact me.

perfectwebtech /
Created Nov 10, 2020 — forked from baniol/
MongoDB automatic backup

Maintaining even a small mongodb application in production requires regular backups of remotely stored data. MongoDB gives you three ways to acomplish it. In this post I'm using monogodump command for creating a backup and mongorestore for recreating the data. The purpose of this writing is to provide a simple way of periodic database dumps from a remote server to a Dropbox cloud storage.

Remember that for using mongodump you have to have a mongod process running.

Dumping a database

Suppose that you want make a backup of your books database.

To create a dump use mongodump -d books -o which will result in a book folder containing bson files with all collections.

perfectwebtech /
Created Oct 3, 2020 — forked from mrbar42/
bash scripts to create VOD HLS stream with ffmpeg almighty (tested on Linux and OS X)


bash beach.mkv

will produce:

      |- playlist.m3u8
 |- 360p.m3u8
perfectwebtech /
Created Sep 27, 2020 — forked from tracyhatemice/
setting up ocserv (open source AnyConnect alternative) on a new Debian, use passwd auth by default
echo "this file isn't supposed to run"
exit 0
# <------------------------------ Enviroment Variables ------------------------------->
FQDN = <Server DNS Name> # can also get from PTR record
ORG_NAME = <Org name>
RELEASE_NAME = $(lsb_release -sc)
# <------------------------------ Network Stack Setups ------------------------------->
# Please edit /etc/default/ufw first