Git + lfs
- Track file as lfs:
$ git lfs track "*.psd"
- Migrate files after add to lfs .gitattributes: $ git lfs migrate import --everything$(awk '/filter=lfs/ {printf " --include='''%s'''", $1}' .gitattributes)
Git + lfs
$ git lfs track "*.psd"
import 'package:flutter_gherkin/flutter_gherkin.dart'; | |
import 'package:flutter_test/flutter_test.dart'; | |
import 'package:gherkin/gherkin.dart'; | |
final givenITapDropdownItem = given2<String, String, FlutterWorld>(RegExp(r'I tap (?:a|an|the) {string} within (?:a|an|the) {string} dropdown'), (menuItemKey, dropdownKey, context) async { | |
await context.world.appDriver.waitForAppToSettle(); | |
final finder = context.world.appDriver.findBy(dropdownKey, FindType.key); | |
await context.world.appDriver.scrollIntoView( | |
finder, |
using UnityEditor; | |
using UnityEngine; | |
using System.IO; | |
using System.Text; | |
using System.Collections.Generic; | |
using System.Reflection; | |
[InitializeOnLoad] | |
public class FileExtensionGUI | |
{ |
[ApiController] | |
[Route("[controller]")] | |
public class ExampleController : ControllerBase | |
{ | |
// SwaggerResponse supported, i prefer old one. | |
[HttpGet] | |
[SwaggerOperation("LoginUser")] | |
[SwaggerResponse(statusCode: StatusCodes.Status200OK, type: null, description: "signed user email account")] | |
[SwaggerResponse(statusCode: StatusCodes.Status400BadRequest, type: null, description: "wrong email or password")] | |
[Route("/users/login")] |
#!/bin/sh | |
ps -eo size,pid,user,command --sort -size | \ | |
awk '{ hr=$1/1024 ; printf("%13.2f Mb ",hr) } { for ( x=4 ; x<=NF ; x++ ) { printf("%s ",$x) } print "" }' |\ | |
cut -d "" -f2 | cut -d "-" -f1 | less |
Just insert it before bad tester.pumpAndSettle() and analyze output.
await TestAsyncUtils.guard<int>(() async {
final DateTime endTime =
tester.binding.clock.fromNowBy(Duration(seconds: 30));
int count = 0;
do {
if (tester.binding.clock.now().isAfter(endTime)) {
break;
For those having slow wsl2 network speed on windows11. | |
https://github.com/microsoft/WSL/issues/4901#issuecomment-1489783550 |
# bash/zsh git prompt support | |
# | |
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]> | |
# Distributed under the GNU General Public License, version 2.0. | |
# | |
# This script allows you to see repository status in your prompt. | |
# | |
# To enable: | |
# | |
# 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh). |