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
| #!/usr/bin/env bash | |
| SOURCE_HOST='' | |
| SOURCE_PORT='3306' | |
| SOURCE_USER='' | |
| SOURCE_PASSWORD='' | |
| SOURCE_DB='' | |
| DUMP_FILE='dump.sql' | |
| DEST_HOST='host.docker.internal' |
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 @search_value NVARCHAR(100) = '46CF7YQFBUU1159'; | |
| DECLARE @query NVARCHAR(MAX) = ''; | |
| SELECT @query = @query + | |
| 'SELECT ''' + t.name + ''' AS [Table], ''' + c.name + ''' AS [Column] FROM ' + QUOTENAME(t.name) + ' WHERE CAST(' + QUOTENAME(c.name) + ' AS NVARCHAR(MAX)) = ''' + @search_value + ''' UNION ALL ' | |
| FROM | |
| sys.columns c | |
| INNER JOIN | |
| sys.tables t ON c.object_id = t.object_id | |
| WHERE |
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 @TableName NVARCHAR(128) | |
| DECLARE @SQL NVARCHAR(MAX) | |
| SET @SQL = '' | |
| DECLARE table_cursor CURSOR FOR | |
| SELECT name FROM sys.tables WHERE name LIKE '%g%'; | |
| OPEN table_cursor; | |
| FETCH NEXT FROM table_cursor INTO @TableName; |
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
| // This gist contains a launch.json configuration for debugging multiple microservices within a | |
| // Node.js environment using Visual Studio Code. Each configuration is tailored for a specific microservice, | |
| // enabling seamless debugging across the architecture. | |
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Auth Service", | |
| "type": "node", | |
| "request": "launch", |
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
| " General Vim Settings | |
| set ignorecase | |
| set smartcase | |
| set scrolloff=15 | |
| set clipboard+=unnamed | |
| set ideajoin | |
| set multiple-cursors | |
| set relativenumber | |
| " Plugin Emulation |
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
| import RealmSwift | |
| print("DEBUG: \(Realm.Configuration.defaultConfiguration.fileURL)") | |
| // DEBUG: Optional(file:///Users/farukyildirim/Library/Developer/CoreSimulator/Devices/DB27F964-1D6E-4F65-917D-2E812EB2E92A/data/Containers/Data/Application/AA51CF8D-3B4A-4E2D-A1E4-5666CF6B53FD/Documents/default.realm) |
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
| {"lastUpload":"2021-08-21T06:15:25.153Z","extensionVersion":"v3.4.3"} |