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 TABLE IF EXISTS dbo.ObjectFormerlyATable; | |
CREATE TABLE dbo.ObjectFormerlyATable | |
( | |
ID INT IDENTITY(1,1) NOT NULL | |
CONSTRAINT PK_dbo_ObjectFormerlyATable PRIMARY KEY CLUSTERED (ID ASC) | |
); | |
INSERT INTO dbo.ObjectFormerlyATable DEFAULT VALUES; |
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
https://lunrjs.com/docs/index.html |
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
-- Reference: http://geekswithblogs.net/ManicArchitect/archive/2010/11/02/142558.aspx | |
-- number processing cores | |
DECLARE @noCores TINYINT = ( | |
select COUNT(1) | |
from sys.dm_os_schedulers | |
where status = 'VISIBLE ONLINE' | |
) | |
SELECT | |
AggregationMemoryLimitMax=ceiling(100/(@noCores-2)) |
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
https://api.hsbc.com/open-banking/v2.1/atms | |
https://api.hsbc.com/open-banking/v2.1/branches | |
https://api.lloydsbank.com/open-banking/v2.1/atms | |
https://api.lloydsbank.com/open-banking/v2.1/branches | |
#https://openbanking.santander.co.uk/sanuk/external/branches | |
https://atlas.api.barclays/open-banking/v2.1/atms | |
https://atlas.api.barclays/open-banking/v2.1/branches |
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
# Config | |
$api_key = "" | |
$cf_ip4_url = "https://www.cloudflare.com/ips-v4" | |
$cf_ip6_url = "https://www.cloudflare.com/ips-v6" | |
$api_domain = "api.civo.com" | |
$api_version = "v2" | |
$fw_id = "" |
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
DECLARE | |
@oldname varchar(255) = '<old_name>' | |
,@newname varchar(255) = '<new_name>'; | |
UPDATE | |
msdb.dbo.sysjobsteps | |
SET | |
command = REPLACE(command, @oldname, @newname) | |
WHERE | |
command LIKE '%'+@oldname+'%'; |
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 System.Diagnostics; | |
namespace Roger | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
if (args.Length > 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
$dir = "c:\tmp" | |
$csvFile = "c:\tmp\result.csv" | |
# Reference: https://raw.githubusercontent.com/magnusneck/SsisPowershellTools/master/Get-SsisSql.ps1 | |
<# | |
.Synopsis | |
Extract SQL queries from SSIS (dtsx) files. | |
.DESCRIPTION | |
Extracts SQL queries from SQL Server Integration services (dtsx) 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
systemctl status mssql-server | |
runas /netonly /user:WIN-PDNIP9N5COG\justdave “C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\Ssms.exe” | |
-- Backup/Restore | |
CREATE DATABASE justdave; | |
BACKUP DATABASE justdave TO DISK = 'C:\x\justdave.bak'; |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 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
test|test|test | |
test|test|test | |
test|test|test | |
test|test|test | |
test|test|test||Something|Dark|Side | |
test|test|test |