0%

此文章援引自 自建WireGuard VPN服务器教程 仅供参考

一键安装wirguard脚本代码(CentOS7+/Ubuntu18.04+/Debian9+)

首先安装的是服务器端,这里以CentOS7举例,使用root用户登录到系统后,运行如下命令,如果提示curl命令不存在,使用yum install curl进行安装

1
curl -O https://raw.githubusercontent.com/atrandys/wireguard/master/wg_mult.sh && chmod +x wg_mult.sh && ./wg_mult.sh


输入数字1进行安装,2是卸载。一键脚本会自动安装,一般几分钟就能安装好,很快。

Read more »

书接上文 新加坡购买HDB组屋流水账-准备篇
当你已经做好了所有准备工作而且假定你也经找到了自己心仪的房子,这时候你就可以开始购买你的首套HDB组屋了。文中的步骤是有先后顺序的。

要求卖家出具购买选择权 OTP

一般来说卖家会聘请一个中介来帮他做相关的手续,当买卖双方对房屋价格,是否要延期(即在所有买卖手续完成后,卖家还可以在其原房屋内居住一段时间,法律认可不超过3个月)以及其他一些条件达成一致时,卖家的中介就会拿出一份格式化的OTP要求双方在上面签字,OTP上就是房屋的价格,期权费(Option Fee)数额(现金,不超过1000新币,不能为0),执行时间以及买卖双方的姓名,身份证号码等信息。与此同时,你做为买家应该按照OTP中的约定向卖家转账定金金额并同中介确认此金额卖家已经收到(whatsapp 上发个信息即可)。中介会将双方签好字的OTP扫描然后发给双方。

Read more »

新加坡组屋政策是新加坡政府的一项惠及其广大中低收入群体的福利性政策。组屋有些类似中国国内的廉租房,但是又不太一样,最突出的特点就是组屋会出现在市区的任意位置,无论是中心商业区,高档社区还是其他普通的地段。组屋的周边都会有配套的利民设施,诸如公交车站,托儿所,诊所,食阁,超市等等,你不用必须拥有交通工具就可以比较方便的解决基本的生活需求。
我在这里记录下自己在购买转售组屋时的一些流程及遇到的问题,本文仅为2022年左右持有新加坡PR的中国籍夫妻(两人都要21周岁以上)共同申请购买转售组屋并使用银行贷款的情况,因各项政策都会随时调整,此文仅供有相同情况的人参考
HDB RESALE PORTAL中购买组屋一共分为9个步骤,文中会列出

Singpass

首先你需要有自己的Singpass,没有这个很多事都没法简单的办理,所以如果你还没有抓紧申请一个

Read more »

Here is a simple way to export the html table to excel file, you can use the following code to export the table to excel file. Thanks for the author of this library

Include the JS file

1
2
3
4
5
6
7
8
9
<script src="https://rusty1s.github.io/table2excel/dist/table2excel.js"></script>

<script>
var table2excel = new Table2Excel();

document.getElementById('export').addEventListener('click', function() {
table2excel.export(document.getElementById('table_export'));
});
</script>

Html

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<table id="table_export">
<thead>
<tr>
<th>Name</th>
<th>Age</th>
<th>Email</th>
</tr>
</thead>
<tbody>
<tr>
<td>John</td>
<td>25</td>
<td>john@example.com</td>
</tr>
<tr>
<td>Mary</td>
<td>28</td>
<td>mary@example.com</td>
</tr>
</tbody>
</table>
<button id="export">Export to Excel</button>

You can download the zipped js file here

Preface

Here is the list of the software that we use in this article:

Install Imagick extension on Xampp PHP8.1 Windows just follow the steps below:

Steps

  1. unzip php_imagick-3.7.0-8.1-ts-vs16-x64.zip , copy php_imagick.dll to xampp/php/ext folder
  2. mv php_imagick-3.7.0-8.1-ts-vs16-x64 folder to c:\ and add this folder to enviroument path , move up it on the top of php8.1 path
  3. unzip ImageMagick-7.1.0-18-vc15-x64.zip , copy bin/*.dll except ImageMagickObject.dll to xampp/apache/bin
  4. edit php.ini add one line of the extension part
    extension=php_imagick.dll
  5. restart apache

References