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
# build - Workflow name | |
# [0:X] - X - items to delete | |
gh run list -w "build" --limit 10000 --json createdAt,databaseId -q ". |= sort_by(.createdAt)[0:100] | .[].databaseId" | xargs -IID gh run delete ID |
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
var title = "Photo title"; | |
var description = "Photo description"; | |
document.querySelectorAll('.together_description').forEach(elm => { elm.value = description; elm.dispatchEvent(new Event("change")) }); | |
document.querySelectorAll('.together_title').forEach(elm => { elm.value = title; elm.dispatchEvent(new Event("change")) }); | |
document.getElementById("batch_edit_together_form_save_button").scrollIntoView(); |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\Directory\shell\mintty] | |
@="Open Shell Here" | |
[HKEY_CLASSES_ROOT\Directory\shell\mintty\command] | |
@="c:\\cygwin\\bin\\mintty.exe -e /bin/xhere /bin/fish.exe \"%L\"" | |
[HKEY_CLASSES_ROOT\Drive\shell\mintty] | |
@="Open Shell Here" |
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
# run ln -s /cygdrive/c/Program\ Files/Perforce/p4merge.exe /usr/bin/p4merge | |
[diff] | |
tool = p4diff | |
[merge] | |
keepBackup = false | |
tool = p4merge | |
[mergetool "p4merge"] | |
cmd = /usr/bin/p4merge \"$(cygpath -w \"$BASE\")\" \"$(cygpath -w \"$LOCAL\")\" \"$(cygpath -w \"$REMOTE\")\" \"$(cygpath -w \"$MERGED\")\" | |
prompt = false |
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
:: http://stackoverflow.com/questions/203090/how-to-get-current-datetime-on-windows-command-line-in-a-suitable-format-for-us | |
@ECHO off | |
set v_day= | |
set v_month= | |
set v_year= | |
SETLOCAL ENABLEEXTENSIONS | |
if "%date%A" LSS "A" (set toks=1-3) else (set toks=2-4) | |
::DEBUG echo toks=%toks% | |
for /f "tokens=2-4 delims=(-)" %%a in ('echo:^|date') do ( |
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 System; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using System.Web.Mvc; | |
using System.Web.Routing; | |
public static class LabelExtensions | |
{ | |
public static MvcHtmlString LabelFor<TModel, TValue>(this HtmlHelper<TModel> html, Expression<Func<TModel, TValue>> expression, object htmlAttributes) | |
{ |
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
@echo off | |
set curdir=%~dp0 | |
set outputdir=.\bin\ | |
set xunitfile="xunit.console.clr4.x86.exe" | |
set instr="c:\Program Files\Microsoft Visual Studio 10.0\Team Tools\Performance Tools\VSInstr.exe" | |
set perfcmd="c:\Program Files\Microsoft Visual Studio 10.0\Team Tools\Performance Tools\VSPerfcmd.exe" | |
mkdir %outputdir% |