type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis
type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis
| # Laravel queue worker using systemd | |
| # ---------------------------------- | |
| # | |
| # /lib/systemd/system/queue.service | |
| # | |
| # run this command to enable service: | |
| # systemctl enable queue.service | |
| [Unit] | |
| Description=Laravel queue worker |
| -- Get Max ID from table | |
| SELECT MAX(id) FROM table; | |
| -- Get Next ID from table | |
| SELECT nextval('table_id_seq'); | |
| -- Set Next ID Value to MAX ID | |
| SELECT setval('table_id_seq', (SELECT MAX(id) FROM table)); |
| FROM nginx:alpine | |
| # stock verison from php:alpine image | |
| # ensure www-data user exists | |
| RUN set -x \ | |
| && addgroup -g 82 -S www-data \ | |
| && adduser -u 82 -D -S -G www-data www-data | |
| # 82 is the standard uid/gid for "www-data" in Alpine | |
| # http://git.alpinelinux.org/cgit/aports/tree/main/apache2/apache2.pre-install?h=v3.3.2 |
| println object.properties | |
| .sort{it.key} | |
| .collect{it} | |
| .findAll{!['class', 'active'].contains(it.key)} | |
| .join('\n') |
| public class TextViewDrawableSize extends TextView { | |
| private static final int DEFAULT_COMPOUND_DRAWABLE_SIZE = -1; | |
| private int compoundDrawableWidth; | |
| private int compoundDrawableHeight; | |
| public TextViewDrawableSize(Context context) { | |
| this(context, null); | |
| } | |
| public TextViewDrawableSize(Context context, AttributeSet attrs) { |