Skip to content

Instantly share code, notes, and snippets.

View 4j4yk's full-sized avatar
💭
I may be slow to respond.

Ajay Khampariya 4j4yk

💭
I may be slow to respond.
View GitHub Profile
# get attribute code for a group
SELECT DISTINCT
ea.attribute_code
FROM
eav_attribute AS ea
JOIN
eav_entity_attribute AS eae
ON ea.attribute_id = eae.attribute_id
JOIN
eav_attribute_group AS eag
@4j4yk
4j4yk / valet+ (valet-plus) install instructions
Last active January 29, 2025 18:03
Valet+ Mac install guide as of Apr 2022
# pre req
- `xcode-select --install`
- `brew upgrade`
- `brew update`
- `brew doctor` ( check if any issues and fix those)
- `brew tap henkrehorst/php` ( tap for valet+ spacific php)
# install brew install valet-php@7.4 ( 7.3 likely to trouble you more thn 7.4)
- `brew edit valet-php@7.4` to fix php 7.4 link and hash
- `brew install valet-php@7.4` or `brew install valet-php@7.4 --build-from-source`
@4j4yk
4j4yk / AWS Cloud Stuff.md
Last active January 1, 2022 03:08
AWS General Reference | AWS Cloud Stuff
@4j4yk
4j4yk / gist:f4e3ba66d2b7af10d086f8b70f44b5a8
Created April 30, 2020 22:48
Mac OS : ERROR: Couldn't connect to Docker daemon - you might need to run `docker-machine start default`.
issue
❯ docker-compose up -d
ERROR: Couldn't connect to Docker daemon - you might need to run `docker-machine start default`.
solution
eval $(docker-machine env default)
docker-compose up -d
@4j4yk
4j4yk / keybase.md
Last active December 22, 2017 12:39

Keybase proof

I hereby claim:

  • I am akhampariya on github.
  • I am akhampariya (https://keybase.io/akhampariya) on keybase.
  • I have a public key whose fingerprint is 6C4A E1BE 1EFC 664A 090A 5770 A4FD 92CA 6409 D5B6

To claim this, I am signing this object: