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
| var $domNodeToIterateOver = $('.del-button .option .yes'), currentTime = 0, timeInterval = 1500; $domNodeToIterateOver.each(function() { var _this = $(this); currentTime = currentTime + timeInterval; setTimeout(function() { _this.click(); }, currentTime);}); |
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
| using Microsoft.AspNetCore.Authentication.JwtBearer; | |
| using Microsoft.OpenApi.Models; | |
| var builder = WebApplication.CreateBuilder(args); | |
| builder.Services.AddAuthentication(options => | |
| { | |
| options.DefaultAuthenticateScheme = JwtBearerDefaults.AuthenticationScheme; | |
| options.DefaultChallengeScheme = JwtBearerDefaults.AuthenticationScheme; | |
| }) |
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
| touch .gitignore |
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
| public sealed class Singleton | |
| { | |
| private static readonly Lazy<Singleton> lazy = | |
| new Lazy<Singleton>(() => new Singleton()); | |
| public static Singleton Instance { get { return lazy.Value; } } | |
| private Singleton() | |
| { | |
| } |
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
| $files = Get-ChildItem -Path . -Filter *.mp4 | |
| foreach($file in $files) | |
| { | |
| $filename = $file.name | |
| $basename = $file.BaseName | |
| $command = "ffmpeg -i `"$filename`" -codec:a libmp3lame -q:a 0 `"$basename.mp3`"" | |
| Write-Host $command |
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
| %TEMP%\Temporary ASP.NET Files | |
| C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files | |
| C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files | |
| C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files | |
| C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files |
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
| IF EXISTS(SELECT * FROM sysobjects where id = object_id(N'<schema>.<procedureName>') and OBJECTPROPERTY(id, N'IsProcedure') = 1) | |
| DROP PROCEDURE <schema>.<procedureName> | |
| GO | |
| CREATE PROCEDURE <schema>.<procedureName> <@parameters | |
| AS | |
| BEGIN | |
| END |
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
| IF EXISTS(SELECT * FROM sysobjects where id = object_id(N'<schema>.<view>') and OBJECTPROPERTY(id, N'IsView') = 1) | |
| DROP VIEW <schema>.<view> | |
| GO | |
| CREATE VIEW dbo.vw_Mon_Casino | |
| AS | |
| GO |
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
| USE master | |
| GO | |
| --Run to varify backup and view Logical and Physical Names | |
| RESTORE FILELISTONLY | |
| FROM disk = 'C:\<backfile>' | |
| --Run once you are happy with everything | |
| RESTORE DATABASE <databasename> | |
| FROM disk = 'C:\<backfile>' |
NewerOlder