Skip to content

Instantly share code, notes, and snippets.

@thanhdevapp
thanhdevapp / cloudSettings
Created May 5, 2017 10:52
Visual Studio Code Settings Sync Gist
{"lastUpload":"2017-05-05T10:52:53.962Z","extensionVersion":"v2.7.0"}
@thanhdevapp
thanhdevapp / web.config
Last active July 20, 2017 03:19
Web config laravel 5x IIS hosting plesk 17
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<security>
<requestFiltering allowDoubleEscaping="True" />
</security>
<defaultDocument>
<files>
<clear />
<add value="index.php" />
@thanhdevapp
thanhdevapp / cloudSettings
Created September 7, 2017 17:29
Visual Studio Code Settings Sync Gist
{"lastUpload":"2017-09-07T17:29:09.041Z","extensionVersion":"v2.8.3"}
@thanhdevapp
thanhdevapp / cloudSettings
Created October 21, 2017 02:58
Visual Studio Code Settings Sync Gist
{"lastUpload":"2017-10-21T02:58:10.700Z","extensionVersion":"v2.8.3"}
//FILTER
this.query[ 'fields' ] = [ 'id', 'name', 'email' ];
//WHERE
this.query.where = { or: [ { name: { like: `.*${model.keyword}.*`, options: `i` } }, { email: { like: `.*${model.keyword}.*`, options: `i` } }] };
@thanhdevapp
thanhdevapp / cloudSettings
Created December 11, 2017 03:01
Visual Studio Code Settings Sync Gist
{"lastUpload":"2017-12-11T03:01:50.945Z","extensionVersion":"v2.8.7"}
try {
function getNextSequenceValue(sequenceName){
var sequenceDocument = db.getCollection('counters').findAndModify({
query:{_id: sequenceName },
update: {$inc:{sequence_value:1}},
new:true
});
@thanhdevapp
thanhdevapp / cloudSettings
Last active August 13, 2018 08:59
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-08-13T08:55:14.737Z","extensionVersion":"v3.0.0"}
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.net>
<defaultProxy>
<proxy usesystemdefault="true" proxyaddress="http://45.117.171.21:6868" bypassonlocal="true" />
</defaultProxy>
</system.net>
<system.webServer>
<rewrite>
<outboundRules>
@thanhdevapp
thanhdevapp / gist:03184ea440d77c1e0001f13ef519f6e6
Created March 7, 2019 16:47
Create service dotnet core linux hosting
1: run command
sudo vi /etc/systemd/system/yourservice.service
2. copy paste to file
[Unit]
Description=Example .NET Web API App running on Ubuntu
[Service]