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
| @echo off | |
| title PostgreSQL Portable | |
| cls | |
| :: set default code page | |
| chcp 1252 > nul | |
| :: initialise a new database on first use | |
| if not exist "%PGDATA%" ( | |
| echo. |
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
| SELECT | |
| sch.name AS table_schema | |
| ,tp.name AS table_name | |
| ,schFK.name AS fk_schema | |
| ,fk.name AS fk_name | |
| ,STUFF | |
| ( | |
| ( | |
| SELECT ', ' + c.name |
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
| SELECT | |
| -- name | |
| DISTINCT collation_name | |
| FROM sys.databases | |
| WHERE (1=1) | |
| -- AND name = 'tempdb'; | |
| SELECT name, collation_name | |
| FROM sys.databases | |
| WHERE (1=1) |
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
| namespace BaristaLabs.SkinnyHtml2Pdf.Web | |
| { | |
| /* | |
| function waitForEvent() | |
| { | |
| return new Promise((resolve, reject) => | |
| { |
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
| SELECT | |
| cc.schema_name | |
| ,cc.table_name | |
| ,cc.computed_column_name | |
| ,dc.name AS dependent_column_name | |
| ,fk.REFERENCED_TABLE_SCHEMA AS referenced_table_schema | |
| ,fk.REFERENCED_TABLE_NAME AS referenced_table_name | |
| ,fk.REFERENCED_COLUMN_NAME AS referenced_column_name |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate"> | |
| <meta http-equiv="Pragma" content="no-cache"> | |
| <title>Awaiting Worker Request</title> |
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
| // .NET | |
| System.Guid.NewGuid().ToString() | |
| // JS: | |
| function generateUUID() { | |
| return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { | |
| var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8); |
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 @schemaName nvarchar(128); | |
| DECLARE @tableName nvarchar(128); | |
| DECLARE @columnName nvarchar(128); | |
| DECLARE @constraintName nvarchar(128); | |
| DECLARE @dropConstraintSQL nvarchar(MAX); | |
| SET @schemaName = 'dbo'; | |
| SET @tableName = 'T_ChecklistVersion'; | |
| SET @columnName = 'CLV_Obsoleted'; |
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
| SELECT | |
| s.name AS schema_name | |
| ,t.name AS table_name | |
| ,cc.name AS column_name | |
| ,cc.definition AS computed_column_definition | |
| ,COLUMNPROPERTY(cc.object_id, cc.name, 'ordinal') AS ordinal_position | |
| -- ,sys_ordinal_position.derived_ordinal_position | |
| FROM sys.computed_columns AS cc -- damn, object_id refers to table | |
| INNER JOIN sys.tables t ON cc.object_id = t.object_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
| ./options/ide.general.xml: <entry key="ide.browser.jcef.enabled" value="false" /> | |
| /root/.config/JetBrains/Rider2024.2/options/ide.general.xml | |
| <application> | |
| <component name="GeneralSettings"> | |
| <option name="reopenLastProject" value="false" /> | |
| <option name="confirmExit" value="false" /> |