$ wc -l public/metronic/**/*.css
-c The number of bytes in each input file is written to the standard output. This will cancel out any
prior usage of the -m option.
-l The number of lines in each input file is written to the standard output.
-m The number of characters in each input file is written to the standard output. If the current
locale does not support multibyte characters, this is equivalent to the -c option. This will cancel
/** @var PointAccount $pointAccountModel */
$pointAccountModel = PointAccount::getModel();
$foreignKey = $pointAccountModel->businessOwner()->getForeignKey();
$localKey = $this->getKeyName();
return new HasOne(
$pointAccountModel->newQuery()->setEagerLoads([]),
$this,
"{$pointAccountModel->getTable()}.{$foreignKey}",
AWS CWLog S3 Download
$ aws --profile <PROFILE> --region ap-northeast-2 s3 cp s3://elasticbeanstalk-ap-northeast-2-510676036070/resources/environments/logs/publish/<EB_ENVIRONMENT_ID>/ . \
--recursive \
--exclude "*" \
--include "*_var_app_current_storage_logs_rotated_laravel.log15215*****" \
--include "*_var_app_current_storage_logs_rotated_laravel.log15216*****"
$ gzip -d ./*/*.gz
$ netstat -an | grep tcp | grep 6379
-a With the default display, show the state of all sockets; normally sockets used by server processes are
not shown. With the routing table display (option -r, as described below), show protocol-cloned routes
(routes generated by a RTF_PRCLONING parent route); normally these routes are not shown.
-n Show network addresses as numbers (normally netstat interprets addresses and attempts to display them
symbolically). This option may be used with any of the display formats.
$ base64 <<< foo:bar
# Zm9vOmJhcgo=
$ base64 -D <<< Zm9vOmJhcgo=
# foo:bar
컨플루언스 심볼 Confluence Wiki Symbol
- (y) 👍
- (n) 👎
- (on) 💡
- (off) offed 💡
- (*g) green ⭐
- (*b) blue ⭐
- (/) ✅
- (x) ❌
로컬 브랜치 이름을 바꾸었을 때, 업스트림 원격 브랜치에 연결하는 방법
$ git branch BRANCH_NAME -u origin/BRANCH_NAME
커밋 쪼개기
$ git rebase -i ^
$ touch /tmp/.config/psysh/config.php
$ echo "<?php return [ 'useReadline' => false ];" > /tmp/.config/psysh/config.php
$ php artisan tinker
>>> while (true) { $foo = 'bar'; }
process %cpu mem mem
php 97.3 6.0MB 8.2MB
>>> while (true) { $foo = 'bar'; usleep(1); }
php 53.0 6.2MB 8.4MB