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
pool: | |
name: Self Hosted | |
demands: npm | |
variables: | |
solution: '**/*.sln' | |
buildConfiguration: 'Release' | |
steps: | |
- task: DotNetCoreCLI@2 |
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
Card | Number | Alternate Number |
---|---|---|
Airplus | 122000000000003 | |
American Express | 34343434343434 | |
Cartebleue | 5555555555554444 | |
Dankort | 5019717010103742 | |
Diners | 36700102000000 | 36148900647913 |
Discover card | 6011000400000000 | |
JCB | 3528000700000000 | |
Laser | 630495060000000000 | 630490017740292441 |
--Drop all Users in database | |
DECLARE @sql NVARCHAR(max) | |
SET @sql = '' | |
SELECT @sql = @sql+ | |
' | |
print ''Dropping '+name+''' | |
drop user ['+name+'] | |
' |
[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: |
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 |
using EPiServer.Framework; | |
using EPiServer.Framework.Initialization; | |
using EPiServer.Logging.Compatibility; | |
using System.Configuration.Provider; | |
using System.Web.Security; | |
namespace MyEpiserverProject.Business.Initialization | |
{ | |
[InitializableModule] | |
[ModuleDependency(typeof(EPiServer.Web.InitializationModule))] |
var myUri = new Uri(fullpath); | |
var myWebRequest = WebRequest.Create(myUri); | |
var myHttpWebRequest = (HttpWebRequest)myWebRequest; | |
myHttpWebRequest.PreAuthenticate = true; | |
myHttpWebRequest.Headers.Add("Authorization", "Bearer " + AccessToken); | |
myHttpWebRequest.Accept = "application/json"; | |
var myWebResponse = myWebRequest.GetResponse(); | |
var responseStream = myWebResponse.GetResponseStream(); | |
if (responseStream == null) return null; |
Install Drush on windows
composer global require drush/drush:8.*
All of the following commands must be run in the C:\Windows\System32\inetsrv folder
This command enables pass through of error messages from PHP-FastCGI to IIS when running PHP sites, rather than just throwing a generic 500 message when something goes wrong. Replace sitename with the name of the site in IIS.
appcmd.exe set config "sitename" -section:system.webServer/httpErrors /existingResponse:"PassThrough" /commit:apphost