This file contains 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 | |
d.name AS DatabaseName, | |
mf.type_desc AS FileType, | |
mf.physical_name AS FilePath | |
FROM | |
sys.master_files mf | |
JOIN | |
sys.databases d ON mf.database_id = d.database_id | |
WHERE | |
d.name NOT IN ('master', 'model', 'msdb', 'tempdb') -- Exclude internal databases |
This file contains 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
{ | |
"type": [ | |
"h-entry" | |
], | |
"properties": { | |
"summary": [ | |
"Want to read: Bergaji dan pokai by Suraya Zainudin, ISBN: 9789672459552" | |
], |
This file contains 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 YourDatabaseName; -- Replace 'YourDatabaseName' with your actual database name | |
CREATE PROCEDURE sp_KillDeadlocks | |
AS | |
BEGIN | |
SET NOCOUNT ON; | |
DECLARE @deadlockID INT; | |
-- Create a temporary table to store deadlock information |
This file contains 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
Release notes of 5.15.2 (18096) | |
Resolved Issues | |
-Minor bug fixes | |
-Security enhancements | |
Release notes of 5.15.1 (17948) | |
Resolved Issues | |
-Minor bug fixes | |
Release notes of 5.15.0 (17890) |
This file contains 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
/* | |
Snippet is nuts and bolts for creating/moving to an isolated tempdb drive. | |
After you run this, SQL Server must be restarted for it to take effect | |
*/ | |
DECLARE @DriveSizeGB INT = 40 | |
,@FileCount INT = 9 | |
,@RowID INT | |
,@FileSize VARCHAR(10) | |
,@DrivePath VARCHAR(100) = 'T:\' + @@SERVICENAME + '\'; |
This file contains 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
-vmargs | |
-Xms512m | |
-Xmx1536m | |
-Dfile.encoding=UTF-8 | |
-Dosgi.requiredJavaVersion=1.8 | |
-XX:+UseG1GC | |
-XX:+UseStringDeduplication | |
-XX:MaxMetaspaceSize=512m |
This file contains 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
# let see how many files we have | |
$ find . -type f | wc -l | |
36367 | |
# lets check every file status | |
$ time find . -type f -exec stat {} \; > /dev/null | |
real 0m40.107s | |
user 0m14.381s | |
sys 0m26.410s |
This file contains 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
class QuizPage extends StatefulWidget { | |
@override | |
_QuizPageState createState() => _QuizPageState(); | |
} | |
class _QuizPageState extends State<QuizPage> { | |
int _currentQuestionIndex = 0; | |
List<QuizQuestion> _questions = [ QuizQuestion( question: 'What is the capital of France?', answers: ['Paris', 'London', 'New York', 'Tokyo'], | |
correctAnswer: 'Paris', | |
), |
This file contains 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
/* | |
* SimpleTimer.cpp | |
* | |
* SimpleTimer - A timer library for Arduino. | |
* Author: mromani@ottotecnica.com | |
* Copyright (c) 2010 OTTOTECNICA Italy | |
* | |
* This library is free software; you can redistribute it | |
* and/or modify it under the terms of the GNU Lesser | |
* General Public License as published by the Free Software |
This file contains 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
# Just some notes on enabling smart http with nginx as well as authentication on push for repos | |
# install git, cgit and apache2-utils (for authentication) | |
apt install git cgit apache2-utils fcgiwrap | |
# create a git user | |
adduser git | |
su git | |
cd | |
mkdir .ssh && chmod 700 .ssh | |
touch .ssh/authorized_keys && chmod 600 .ssh/authorized_keys |
NewerOlder