Card | Number | Alternate Number |
---|---|---|
Airplus | 122000000000003 | |
American Express | 34343434343434 | |
Cartebleue | 5555555555554444 | |
Dankort | 5019717010103742 | |
Diners | 36700102000000 | 36148900647913 |
Discover card | 6011000400000000 | |
JCB | 3528000700000000 | |
Laser | 630495060000000000 | 630490017740292441 |
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
CSS and JS not working? You'll get "MIME type ('text/html') is not a supported stylesheet MIME type". | |
Run the following command in Drush | |
drush -y config-set system.performance css.preprocess 0 | |
drush -y config-set system.performance js.preprocess 0 |
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] | |
;;;;;;;;;;;;;;;;;;; | |
; About php.ini ; | |
;;;;;;;;;;;;;;;;;;; | |
; PHP's initialization file, generally called php.ini, is responsible for | |
; configuring many of the aspects of PHP's behavior. | |
; PHP attempts to find and load this configuration from a number of locations. | |
; The following is a summary of its search order: |
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
--Drop all Users in database | |
DECLARE @sql NVARCHAR(max) | |
SET @sql = '' | |
SELECT @sql = @sql+ | |
' | |
print ''Dropping '+name+''' | |
drop user ['+name+'] | |
' |
Wipes the DNS cache on your local machine. Useful for when you've migrated a server and your machine is still caching the old IP address.
Clear-DnsClientCache
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
pool: | |
name: Self Hosted | |
demands: npm | |
variables: | |
solution: '**/*.sln' | |
buildConfiguration: 'Release' | |
steps: | |
- task: DotNetCoreCLI@2 |
Open CMD as an administrator and run the following commands in sequence:
net stop winnat
net start winnat
> #r "C:/MyApp/bin/Debug/Foo.dll"
> using MyApp;
> var personType = typeof(Person);
> var personProperties = personType.GetProperties();
> foreach(var personProperty in personProperty) { Console.WriteLine($"{nameof(Person)}.{personProperty.Name}"); }
This will return a list of all of the properties to the Console
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
window.onload = () => { | |
/* | |
Custom jquery-validation handling for check boxes must equal true | |
Decorate C# model bool properties with | |
[Range(typeof(bool), 'true', 'true', ErrorMessage = 'Add your error message')] | |
to make their corresponding checkbox validate to 'must equal true' | |
*/ | |
var defaultRangeValidator = $.validator.methods.range; | |
$.validator.methods.range = function (value, element, param) { | |
if (element.type === 'checkbox') { |
Make sure you install Microsoft.EntityFrameworkCore.Design from nuget to allow migrations in the project. Then, open terminal and navigate to the root folder of the project in the solution that contains the EF implementation that you want to enable migrations on.
Create initial snapshot
dotnet ef migrations add InitialCreate
Run migration
dotnet ef database update