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://alexshomenetwork.com/linux-desktop-in-browser/ |
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
/** | |
* Thư viện AmLich. | |
* Example | |
* $am_lich = new AmLich(); | |
* $al = $am_lich->convertSolar2Lunar(30, 10, 2023, 7.0); | |
* Ngày: $al[0], Tháng: $al[1], Năm: $al[2] | |
*/ | |
class AmLich { | |
public function INT($d) { |
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
{ | |
"name": "drupal/recommended-project", | |
"description": "Project template for Drupal 9 projects with a relocated document root", | |
"type": "project", | |
"license": "GPL-2.0-or-later", | |
"homepage": "https://www.drupal.org/project/drupal", | |
"support": { | |
"docs": "https://www.drupal.org/docs/user_guide/en/index.html", | |
"chat": "https://www.drupal.org/node/314178" | |
}, |
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 | |
namespace Drupal\nh_phahe\Service; | |
use Drupal\Component\Utility\NestedArray; | |
use Drupal\Core\Form\FormStateInterface; | |
use Drupal\Core\StringTranslation\StringTranslationTrait; | |
use Drupal\node\Entity\Node; | |
/** |
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 mv /etc/localtime /etc/localtime.bk | |
sudo ln -s /usr/share/zoneinfo/Asia/Bangkok /etc/localtime | |
## install options | |
sudo apt update | |
sudo apt install xdg-utils vlc ffmpeg | |
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
# WGET, (Add Last Line to /etc/wgetrc) - check_certificate = off | |
sudo bash -c "echo 'check_certificate = off' >> /etc/wgetrc" | |
# CURL, You can add insecure option to your $HOME/.curlrc file: | |
sudo bash -c "echo 'insecure' >> $HOME/.curlrc" |
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 | |
namespace Drupal\example\Form; | |
use Drupal\Core\Form\ConfigFormBase; | |
use Drupal\Core\Form\FormStateInterface; | |
/** | |
* Class AjaxAddMoreForm. | |
* |
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
|| 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 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' }); | |
}); |
NewerOlder