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" /> |
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 HubSpotClient.Trash | |
{ | |
internal class FileRightsModifier | |
{ | |
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
# Create a private key for example.int: | |
# Generate a private key for the domain example.int: | |
openssl genpkey -algorithm RSA -out /etc/maddy/certs/example.int/privkey.pem -pkeyopt rsa_keygen_bits:2048 | |
# Generate a CSR for example.int: | |
# Create a Certificate Signing Request (CSR) using the private key: | |
openssl req -new -key /etc/maddy/certs/example.int/privkey.pem -out /etc/maddy/certs/example.int/example.int.csr -subj "/C=US/ST=California/L=San Francisco/O=My Company/OU=IT Department/CN=example.int" |
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 DISTINCT referenced_schema_name, referenced_entity_name | |
FROM sys.dm_sql_referenced_entities('dbo.V_COR_Objekte_Kategorien', 'OBJECT') | |
WHERE (1=1) | |
-- AND referenced_entity_name NOT IN('T_OV_Ref_ObjektTyp', 'T_SYS_ApertureColorToHex') | |
ORDER BY referenced_entity_name |