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
Found in this post: https://www.reddit.com/r/PrintrBot/comments/3jm8bc/start_gcode_does_not_extrudeandmove_but_the_code/ | |
Use this to reset, center, and auto-extrudea small bit before printing. | |
G90 ; Explicitly force absolute positioning in case it was not reset previously. | |
G28 ; Home all axes. | |
G29 ; Auto-level the bed. | |
G0 X0 Y0 Z0.15 F9000 ; Move to the front-left part of the bed. | |
M109 S{print_temperature} ; Set and wait for extruder temperature. | |
G92 E0 ; Zero the extruder. |
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 | |
creation_time, | |
last_execution_time, | |
total_physical_reads, | |
total_logical_reads, | |
total_logical_writes, | |
execution_count, | |
total_worker_time, | |
total_elapsed_time, | |
total_elapsed_time / execution_count avg_elapsed_time, |
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 [object_name], | |
[counter_name], | |
[cntr_value] FROM sys.dm_os_performance_counters | |
WHERE [object_name] LIKE '%Manager%' | |
AND [counter_name] = 'Page life expectancy' |
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
^\+?[\d]{0,2}?(\ |-|\.)?\(?[\d]{3}\)?(\ |-|\.)?[\d]{3}(\ |-|\.)?[\d]{4}$ |
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
DECLARE @Table TABLE( | |
SPID INT, | |
Status VARCHAR(MAX), | |
LOGIN VARCHAR(MAX), | |
HostName VARCHAR(MAX), | |
BlkBy VARCHAR(MAX), | |
DBName VARCHAR(MAX), | |
Command VARCHAR(MAX), | |
CPUTime INT, | |
DiskIO INT, |
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
git branch --merged | grep -v "\*" | grep -v master | grep -v dev | xargs -n 1 git branch -d |
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
alias sudo="cygstart --action=runas" |
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
Hold the sync button on the console and press the eject button. This will give you some rapidly | |
flashing red lights. Make note of how many quadrants are doing this. Repeat this 3 more times to | |
obtain a 4 digit sequence. | |
Four rapidly flashing quadrants = a numerical 0 | |
Three rapidly flashing quadrants = a numerical 3 | |
Two rapidly flashing quadrants = a numerical 2 | |
One rapidly flashing quadrant = a numerical 1 | |
With the 2 flashing red lights, you will most likely get 0011 (CPU), 0012 (GPU), or 0013 (RAM). |
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
declare @result table ( | |
[SPID] int, | |
[Status] nvarchar(50), | |
[Login] nvarchar(50), | |
[HostName] nvarchar(50), | |
[BlkBy] nvarchar(50), | |
[DBName] nvarchar(50), | |
[Command] nvarchar(100), | |
[CPUTime] int, | |
[DiskIO] int, |
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
SET NOCOUNT ON | |
GO | |
PRINT 'SET SHOWPLAN_TEXT ON' | |
PRINT 'GO' | |
DECLARE @query nvarchar(max) | |
DECLARE cur CURSOR FOR | |
SELECT 'SELECT * FROM [' + sys.schemas.name + '].[' + sys.objects.name + ']' AS [--stmt] |