This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Requiremnts: Docker, Docker Compose a Server with 256 MB Of RAM. | |
# If you neeed Install docker and docker compose on ubuntu (tested on ubuntu 16) use this gist: https://gist.github.com/devlifeX/be64df7608e08853aad995c65872df59 | |
# 1) Put the content in ovpn.sh | |
# 2) chmod +x ovpn.sh | |
# 3) execute like this: ./ovpn.sh xxx.xxx.xxx.xxx (xxx's is your ip or domain address) | |
BASE=/home/$(whoami) | |
CONFIG="$BASE/openvpn-data/conf/openvpn.conf" | |
mkdir -p $BASE | |
cd $BASE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Docker section ################################################ | |
# - Stop all running docker containers | |
function stopAll { | |
containers=$(docker ps -qa) | |
if [ ! -z "$containers" ] | |
then | |
echo $containers | xargs docker container rm -f $1 | |
else | |
echo "No Containers for remove!" | grep -e "." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Listing_Import | |
{ | |
public function __construct() | |
{ | |
if ( | |
isset($_GET['task']) && | |
$_GET['task'] === "import" | |
) { | |
add_action('init', [$this, 'doAction']); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Listing_Export | |
{ | |
public function __construct() | |
{ | |
if ( | |
isset($_GET['task']) && | |
$_GET['task'] === "export" | |
) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class DotENV | |
{ | |
private $options = []; | |
public function __construct($options) | |
{ | |
$this->options = $options; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Export_Taxonomy | |
{ | |
private $options = []; | |
public function __construct($options) | |
{ | |
if ( | |
isset($_GET['task']) && | |
$_GET['task'] === "export" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Import_Taxonomy | |
{ | |
private $options = []; | |
public function __construct($options) | |
{ | |
if ( | |
isset($_GET['task']) && | |
$_GET['task'] === "import" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update | |
sudo apt-get -y install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg-agent \ | |
software-properties-common | |
echo "official GPG key" | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### NOT A SCRIPT, JUST A REFERENCE! | |
# install dante-server | |
sudo apt update | |
sudo apt install dante-server | |
# or download latest dante-server deb for Ubuntu, works for 16.04 and 18.04: | |
wget http://archive.ubuntu.com/ubuntu/pool/universe/d/dante/dante-server_1.4.2+dfsg-2build1_amd64.deb | |
# or older version: | |
wget http://ppa.launchpad.net/dajhorn/dante/ubuntu/pool/main/d/dante/dante-server_1.4.1-1_amd64.deb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "=============================================" | |
echo "== Telegram Script Installer v 0.1 ==" | |
echo "== ==" | |
echo "== by Jalcaldea ==" | |
echo "=============================================" | |
echo "Downloading necesary files..." |