This file contains 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 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 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 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 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 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 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 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..." |
This file contains 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 | |
sudo sed -i -e 's/nameserver/\#/g' /etc/resolv.conf | |
sudo sh -c 'echo "nameserver 178.22.122.100" >> /etc/resolv.conf' | |
sudo sh -c 'echo "nameserver 185.51.200.2" >> /etc/resolv.conf' | |
echo done! |
This file contains 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
Version 9: | |
$ curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash - | |
Version 8: | |
$ curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - | |
$ sudo apt-get install -y nodejs | |
$ npm install -g npm@latest | |
$ echo "alias node='nodejs'" >> ~/.bashrc | |
$ source ~/.bashrc |