Skip to content

Instantly share code, notes, and snippets.

Avatar
😐
- =

Derek Zhu hereisderek

😐
- =
View GitHub Profile
View rclone.log
# rclone's log
Jun 28 16:12:36 pi2 rclone[499]: Video/Others/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxrwx, err=<nil>
Jun 28 16:12:36 pi2 rclone[499]: Video/Others/: Lookup: name="mi_camera"
Jun 28 16:12:36 pi2 rclone[499]: Video/Others/: >Lookup: node=Video/Others/mi_camera/, err=<nil>
Jun 28 16:12:36 pi2 rclone[499]: Video/Others/mi_camera/: Attr:
Jun 28 16:12:36 pi2 rclone[499]: Video/Others/mi_camera/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxrwx, err=<nil>
Jun 28 16:12:36 pi2 rclone[499]: Video/Others/mi_camera/: Lookup: name="netease_.swp"
Jun 28 16:12:36 pi2 rclone[499]: Video/Others/mi_camera/: >Lookup: node=Video/Others/mi_camera/netease_.swp, err=<nil>
@hereisderek
hereisderek / install_oh_my_zsh.sh
Last active May 18, 2020
install oh my zsh to ~/.config/oh-my-zsh
View install_oh_my_zsh.sh
sh -c "mkdir -p ~/.config/; ZSH=~/.config/oh-my-zsh $(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
View flutter build with multi-dimensional gradle flavor
./gradlew tasks --all[?1l>[?2004l
]2;./gradlew tasks --all]1;./gradlew
<-------------> 0% CONFIGURING [0s]> root project > Resolve dependencies of :classpath<-------------> 0% CONFIGURING [0s]> root project > :app<-------------> 0% CONFIGURING [0s]> root project > :app<-------------> 0% CONFIGURING [0s]> root project > :app<-------------> 0% CONFIGURING [0s]> root project > :app<-------------> 0% CONFIGURING [0s]> root project > :app<-------------> 0% CONFIGURING [0s]> root project > :app<-------------> 0% CONFIGURING [0s]> root project > :app
> Configure project :app
C
@hereisderek
hereisderek / util.dart
Created Sep 14, 2018
dart utility class
View util.dart
import 'dart:math' as Math;
import 'dart:ui';
//import 'package:flutter/foundation.dart';
//import 'package:recorder/util/logger.dart';
import 'package:uuid/uuid.dart';
const _TAG = 'Util';
@hereisderek
hereisderek / flutter log
Last active Sep 13, 2018
flutter #20781 log
View flutter log
```
flutter doctor -v
Building flutter tool...
[✓] Flutter (Channel derek/master, v0.8.3-pre.50, on Mac OS X 10.14 18A389, locale en-US)
• Flutter version 0.8.3-pre.50 at /Volumes/Persistence/Library/Google/flutter
• Framework revision efab60dbe9 (21 hours ago), 2018-09-12 15:44:23 -0700
• Engine revision 12315736f9
• Dart version 2.1.0-dev.4.0.flutter-05ccfa8502
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.2)
@hereisderek
hereisderek / main.dart
Last active Sep 13, 2018
Dart language snippit
View main.dart
void main() {
/// maps
/// result:
/// map0: {1: 1, 2: 2}
/// map1: {1: 1, 2: 2}
/// map2: {1: 2, 2: 3}
Map<String, int> map = {'1' : 1, '2' : 2};
print('map0: $map');
@hereisderek
hereisderek / main.dart
Last active Sep 11, 2018
dart 'with' mixin classes
View main.dart
abstract class SayI{
String say();
String get str;
}
abstract class SayMixinA implements SayI{
String get str;
String say() {
@hereisderek
hereisderek / .ignore
Last active Apr 27, 2021
my homebrew install list
View .ignore
dump.list
View macos 10.14 developer beta 1 category url
https://swscan.apple.com/content/catalogs/others/index-10.14seed-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog.gz
catalogs = {"CustomerSeed":"https://swscan.apple.com/content/catalogs/others/index-10.14customerseed-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog",
"DeveloperSeed":"https://swscan.apple.com/content/catalogs/others/index-10.14seed-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog",
"PublicSeed":"https://swscan.apple.com/content/catalogs/others/index-10.14beta-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog",
"PublicRelease":"https://swscan.apple.com/content/catalogs/others/index-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog"}
@hereisderek
hereisderek / versions.gradle
Last active May 19, 2018
latest android dependencies collection with (hopefully) latest version number
View versions.gradle
/*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software