https://www.codewithharry.com/blogpost/install-vs-code-in-android
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 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 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 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 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 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 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 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 |
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 patch apache2 -y | |
## Add mode rewrite | |
sudo a2enmod rewrite |
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
https://update.code.visualstudio.com/1.5.7.1/linux-deb-arm64/stable |