https://www.codewithharry.com/blogpost/install-vs-code-in-android
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 | |
namespace Drupal\example\Form; | |
use Drupal\Core\Form\ConfigFormBase; | |
use Drupal\Core\Form\FormStateInterface; | |
/** | |
* Class AjaxAddMoreForm. | |
* |
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
|| visible in terminal || visible in file || existing | |
Syntax || StdOut | StdErr || StdOut | StdErr || file | |
==========++==========+==========++==========+==========++=========== | |
> || no | yes || yes | no || overwrite | |
>> || no | yes || yes | no || append | |
|| | || | || | |
2> || yes | no || no | yes || overwrite | |
2>> || yes | no || no | yes || append | |
|| | || | || | |
&> || no | no || yes | yes || overwrite |
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
<VirtualHost 10.0.0.195:80> | |
ServerAlias *.tunnel.example.com | |
ProxyPass / http://localhost:7080/ | |
ProxyPassReverse / http://localhost:7080/ | |
UseCanonicalName on | |
ProxyPreserveHost on | |
</VirtualHost> | |
# Support ssl .well-known folder for virtualmin | |
<VirtualHost *:80> |
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
const spdy = require('spdy'); | |
const fs = require('fs'); | |
require('total4'); | |
// Registers a route | |
ROUTE('GET /', function() { | |
// this === Controller | |
this.json({ message: 'Hello world' }); | |
}); |
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
require('total4'); | |
const fs = require('fs'); | |
var contrib = PATH.root() + '/../../docroot/modules/contrib' | |
const directories = source => fs.readdirSync(source, { | |
withFileTypes: true | |
}).reduce((a, c) => { | |
c.isDirectory() && a.push(c.name) |
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
https://developpaper.com/aliyun-centos-7-6-install-php7-3/ |
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
import { fileURLToPath, URL } from 'url' | |
import { defineConfig } from 'vite' | |
import vue from '@vitejs/plugin-vue' | |
import vueJsx from '@vitejs/plugin-vue-jsx' | |
// https://vitejs.dev/config/ | |
export default defineConfig({ | |
plugins: [vue(), vueJsx()], | |
resolve: { |
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 | |
$exe_command = 'ping google.com'; | |
$descriptorspec = array( | |
0 => array("pipe", "r"), // stdin | |
1 => array("pipe", "w"), // stdout -> we use this | |
2 => array("pipe", "w") // stderr | |
); | |
$process = proc_open($exe_command, $descriptorspec, $pipes); | |
if (is_resource($process)) | |
{ |
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
pecl uninstall zip && pecl install zip | |
# if has error with zipconf.h | |
cp /usr/local/lib/libzip/include/zipconf.h /usr/local/include/zipconf.h | |
pecl install zip |