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
#!/bin/bash | |
set -euo pipefail | |
IFS=$'\n\t' | |
# How to use? | |
# https://medium.com/@ozgurtrgy/aspnet-core-zero-downtime-deployment-to-linux-with-nginx-b8b230bf1577 | |
# the variables depend on you. | |
PACKAGE_TAR_NAME="artifacts.tar.gz" | |
VERSION="1005" |
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
package password | |
import ( | |
"reflect" | |
"strings" | |
"github.com/qor/auth" | |
"github.com/qor/auth/auth_identity" | |
"github.com/qor/auth/claims" | |
"github.com/qor/qor/utils" |
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
private IQueryable<T> WhereEqual<T>(IQueryable query, string prop, object param) | |
{ | |
var select = Expression.Parameter(typeof(T), "select"); | |
MemberExpression property = null; | |
foreach (var node in prop.Split('.')) | |
{ | |
property = property == null | |
? Expression.Property(select, node) | |
: Expression.Property(property, node); |
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 | |
/** | |
* Application entry point | |
* | |
* Example - run a particular store or website: | |
* -------------------------------------------- | |
* require __DIR__ . '/app/bootstrap.php'; | |
* $params = $_SERVER; | |
* $params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE] = 'website2'; | |
* $params[\Magento\Store\Model\StoreManager::PARAM_RUN_TYPE] = 'website'; |
NewerOlder