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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure("2") do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
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 | |
## Install apache | |
echo "Install apache..." | |
sudo apt install zip unzip apache2 -y | |
sudo service apache2 start | |
## Install virtualhost to create vhost | |
echo "Install virtualhost create script..." |
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
require('total4'); | |
const serverless = require('serverless-http'); | |
async function Server(req, res, options) { | |
F.console = NOOP; | |
return new Promise(function (resolve, reject) { | |
F.custom('prod', undefined, req, res, options, () => resolve(true)); | |
}) | |
} |
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
require('total4'); | |
ROUTE('GET /test', function () { | |
this.json({'data': 'OK'}); | |
}) | |
NEWSCHEMA('Customers', function(schema) { | |
schema.setQuery(function($) { | |
$.callback({time: NOW.toTimeString()}); | |
}); |
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
cd "%USERPROFILE%\AppData\Roaming\JetBrains\PhpStorm2020*" | |
::copy /y "options\recentProjectDirectories.xml" %tmp%\recentProjectDirectories.xml | |
rmdir "eval" /s /q | |
del "options\other.xml" | |
reg delete "HKEY_CURRENT_USER\Software\JavaSoft\Prefs" /f | |
:: This will work for idea 2018.3 and later | |
:: | |
:: It is Highly Advised to Purchase the JetBrain Softwares | |
:: This is only for the case You just want to Extend the |
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 | |
$header = ["position" , "team", "played", "goals difference", "points"]; | |
$records = [ | |
[1, "Chelsea", 26, 27, 57], | |
[2, "Arsenal", 26, 22, 56], | |
[3, "Manchester City", 25, 41, 54,], | |
[4, "Liverpool", 26, 34, 53], | |
[5, "Tottenham", 26, 4, 50], | |
[6, "Everton", 25, 11, 45], | |
[7, "Manchester United", 26, 10, 42], |
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 | |
## Install apache | |
echo "Install apache..." | |
sudo apt install zip unzip apache2 -y | |
sudo service apache2 start | |
## Install virtualhost to create vhost | |
echo "Install virtualhost create script..." |
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 | |
## Fix locale | |
# https://github.com/iam-rocketman/ubuntu-locale-fix/blob/master/fix_locale.sh | |
echo "Install Java JDK" | |
sudo apt install default-jdk -y | |
## Install apache | |
echo "Install apache..." | |
sudo apt install apache2 -y |
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
command > /dev/null 2>&1 & |
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
<VirtualHost *:80> | |
ServerAdmin webmaster@localhost | |
ServerName drupal.local | |
ServerAlias drupal.local | |
DocumentRoot /data/data/com.termux/files/home/projects/drupal/web | |
<Directory /> | |
AllowOverride All | |
</Directory> | |
<Directory /data/data/com.termux/files/home/projects/drupal/web> |