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
# /etc/wsl.conf | |
[network] | |
generateResolvConf = false | |
# /etc/resolv.conf | |
nameserver 8.8.8.8 | |
nameserver 1.1.1.1 |
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
sudo service php7.4-fpm start | |
status=$1 | |
cols=$(($COLUMNS - 29)) | |
red=$(tput setaf 1) | |
normal=$(tput sgr0) | |
if [[ $status -eq 0 ]]; then | |
printf " * Starting php7.4-fpm\033[%dC[ OK ]\n" $(($cols)) | |
else | |
printf " * Starting php7.4-fpm\033[%dC[${red}fail${normal}]\n" $(($cols)) | |
fi |
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
[Unit] | |
Description=The command to make the Keychron K2 work | |
[Service] | |
Type=oneshot | |
ExecStart=/bin/bash -c "echo 0 > /sys/module/hid_apple/parameters/fnmode" | |
[Install] | |
WantedBy=multi-user.target |
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
# Running android from terminal | |
/home/ian/Android/Sdk/emulator/emulator @Pixel_4_API_30 -dns-server 8.8.8.8 | |
# Flutter coverage (needs the lcov installed | |
flutter test --coverage test/src/something/**test.dart && genhtml -o coverage coverage/lcov.info |
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
[buildPlans.iosevka-ian-custom] | |
family = "Iosevka Ian Custom" | |
spacing = "normal" | |
serifs = "sans" | |
no-cv-ss = false | |
[buildPlans.iosevka-ian-custom.variants] | |
inherits = "ss14" | |
[buildPlans.iosevka-ian-custom.weights.thin] |
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
import 'package:flutter_test/flutter_test.dart'; | |
import 'package:oakberry_superapp/app/error/failures.dart'; | |
abstract class Result<L, R> { | |
static Result<L, R> failure<L, R>(L error) => _Left(error); | |
static Result<L, R> success<L, R>(R data) => _Right(data); | |
bool get isFailure => this is _Left<L, R>; | |
bool get isSuccess => this is _Right<L, R>; |
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
# download this file to your project folder and excute | |
# chmod +x generate-ios.sh | |
# then run using | |
# ./generate-ios.sh | |
# flutter build defaults to --release | |
flutter build ios | |
# make folder, add .app then zip it and rename it to .ipa | |
mkdir -p Payload |