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
tf history /server:http://server:8080/tfs/xxx "$/path" /recursive /format:detailed > "c:\path\search.txt" |
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
7za x *.7z -oExtracted |
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
;Lenovo A7600 | |
%SingleAdbInterface% = USB_Install, USB\VID_17EF&PID_7731 | |
%CompositeAdbInterface% = USB_Install, USB\VID_17EF&PID_7731&MI_01 | |
%CompositeAdbInterface% = USB_Install, USB\VID_17EF&PID_7731&REV_0216&MI_01 |
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 xxx_Master | |
-- Get workflow state names, ids, and counts | |
/* | |
select i2.Name, wh.NewState, count(*) | |
from WorkflowHistory wh | |
left join Items i2 on wh.NewState = i2.ID | |
group by i2.Name, wh.NewState | |
*/ |
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
using Sitecore.Data; | |
using System; | |
using System.Linq; | |
namespace JamesRSkemp.Apps.OneOffs | |
{ | |
public partial class DeleteExtraVersions : System.Web.UI.Page | |
{ | |
private Database db = Database.GetDatabase("master"); |
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
// Thanks to OpenGL ES 2 for Android by Kevin Brothaler | |
float red = Color.red(Color.GREEN) / 255f; | |
float green = Color.green(Color.GREEN) / 255f; | |
float blue = Color.blue(Color.GREEN) / 255f; | |
int parsedColor = Color.parseColor("#0099CC"); | |
float red = Color.red(parsedColor) / 255f; | |
float green = Color.green(parsedColor) / 255f; | |
float blue = Color.blue(parsedColor) / 255f; |
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
# make sure poshgit and git are installed via Chocolatey (via admin) | |
choco list -l | |
# update PowerShell profile | |
notepad $profile | |
# add these lines at the top (to find ssh-agent) | |
$env:path += ";" + (Get-Item "Env:ProgramFiles(x86)").Value + "\Git\bin" | |
# reload profile | |
. $profile | |
# check Git config | |
git config --global -l |
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
$( ":header" ); | |
// An alternative to the longer: | |
$('h1, h2, h3, h4, h5, h6'); |
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 xxx_Master | |
select top 10 ItemId, count(*) | |
from VersionedFields | |
-- Field that all items will have. | |
where FieldId = '5DD74568-4D4B-44C1-B513-0AF5F4CDA34F' | |
-- exclude any items that you'd like | |
and ItemId not in ('8C4CCA29-6750-4DCF-A3F9-970CC5896427') | |
group by ItemId | |
order by count(*) desc |
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 xxx_Core | |
select top 10 * | |
from Links | |
where SourceDatabase = 'master' | |
-- Item ID of the control that we want to find usage for. | |
and TargetItemID = '86C15AC5-661B-4288-A997-DCB251CC739E' |