-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommands.yaml
1029 lines (982 loc) · 33 KB
/
commands.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
---
ab:
description: |
ab is a tool for benchmarking your Apache Hypertext Transfer Protocol (HTTP)
server. It is designed to give you an impression of how your current Apache
installation performs. This especially shows you how many requests per
second your Apache installation is capable of serving.
commands:
- description: |
tell ab to fire 1000 single requests with 2 multiple requests at a time.
command: |
ab -n 1000 -c 2 https://jpcercal.com/
brew:
description: |
homebrew is the easiest and most flexible way to install the UNIX tools
Apple didn't include with macOS. It can also install software not packaged
for your Linux distribution without requiring sudo.
commands:
- description: |
install the package with the given name.
command: |
brew install --cask <cask-name>
- description: |
list all the installed packages.
command: |
brew list
- description: |
uninstall the package with the given name.
command: |
brew uninstall <package-name>
- description: |
update the package with the given name.
command: |
brew upgrade <package-name>
- description: |
update all the installed packages.
command: |
brew upgrade
- description: |
update the homebrew package manager.
command: |
brew update
- description: |
update the homebrew package manager and all the installed packages.
command: |
brew update && brew upgrade
cargo:
description: |
cargo is a package manager for Rust.
commands:
- description: |
list all the available cargo commands.
command: |
cargo --list
- description: |
add the package with the given name to the current project.
command: |
cargo add <package-name>
- description: |
install the package with the given name.
command: |
cargo install <package-name>
- description: |
build the current project.
command: |
cargo build
- description: |
check the current project for errors.
command: |
cargo check
- description: |
run the current project.
command: |
cargo run
- description: |
format the current project.
command: |
cargo fmt
- description: |
create a new cargo project with the given name.
command: |
cargo new <project-name>
- description: |
test the current project.
command: |
cargo test
cat:
description: |
concatenate files and print on the standard output.
commands:
- description: |
print the content of the .gitignore file of the current dir.
command: |
cat .gitignore
- description: |
print the content of the ~/.kube/config file.
command: |
cat ~/.kube/config
- description: |
print the content of the ~/.ssh/id_ed25519.pub file.
command: |
cat ~/.ssh/id_ed25519.pub
- description: |
print the content of the ~/.ssh/known_hosts file.
command: |
cat ~/.ssh/known_hosts
- description: |
print the content of the ~/.zshrc file.
command: |
cat ~/.zshrc
cd:
description: |
the cd command allows you to move between directories. The cd command takes
an argument, usually the name of the folder you want to move to, so the full
command is cd your-directory.
commands:
- description: |
change the current directory to the ~/projects directory.
command: |
cd ~/projects
- description: |
change the current directory to the ~/dotfiles directory.
command: |
cd ~/dotfiles
composer:
description: |
composer is a tool for dependency management in PHP. It allows you to
declare the libraries your project depends on and it will manage
(install/update) them for you.
commands:
- description: |
set the gitlab and github oauth token to be used on composer globally.
command: |
composer config
--global
--no-interaction
--auth gitlab-token.gitlab.com ${GITLAB_USER_TOKEN} &&
composer config
--global
--no-interaction
--auth github-oauth.github.com ${GITHUB_USER_TOKEN}
- description: |
the composer install command reads the composer.json file from the
current directory, resolves the dependencies, and installs them into
vendor.
command: |
composer install
curl:
description: |
curl is a command-line tool for transferring data specified with URL syntax.
commands:
- description: |
make a GET request to the localhost:3000/users endpoint and print the
response in a human-readable format.
command: |
curl --request GET --url http://localhost:3000/users | jq '.data'
- description: |
make a POST request to the localhost:3000/users endpoint with the
content-type application/json and the data '{"name": "John Doe", "email": "[email protected]"}'
command: |
curl --request POST
--url http://localhost:3000/users
--header 'Content-Type: application/json'
--data '{"name": "John Doe", "email": "[email protected]"}'
date:
description: |
display the current time in the given format.
commands:
- description: |
print the current date in the format `YYYY.MM.DD HH.MM.SS`.
command: |
date '+%Y.%m.%d %H.%M.%S'
docker:
description: |
docker is a platform designed to help developers build, share, and run
container applications. We handle the tedious setup, so you can focus on the
code.
commands:
- description: |
docker build builds an image from a Dockerfile while setting build-time
variables.
command: |
docker build .
--build-arg argumentName=argumentValue
- description: |
to use the docker mutagen official extension you must tell docker to use
it either globally or locally on each execution, this command set the
mutagen context as your global default.
command: |
docker context use desktop-linux-mutagen
- description: |
print the OS and architecture of the Docker image `<docker-image>`.
command: |
docker inspect --format='{{.Os}}/{{.Architecture}}' <docker-image>
- description: |
logs the user jpcercal in.
command: |
docker login -u jpcercal
- description: |
list all docker processes that are running right now.
command: |
docker ps
- description: |
run the maildev/maildev docker image and allocate the local port 1080
and 1025 to it.
command: |
docker run --rm -p 1080:1080 -p 1025:1025 maildev/maildev
- description: |
run the latest version of the ubuntu docker image iteractively while
it creates a volume with the content of the current directory onto /data
and gain access to the container bash after all.
command: |
docker run --rm -it -v "$(pwd)":/data -w /data ubuntu:latest bash
- description: |
stop all the running containers and remove all the containers, volumes, and networks.
command: |
docker stop $(docker ps -aq) &&
docker rm $(docker ps -aq);
docker volume rm $(docker volume ls -q);
docker network rm $(docker networkls -q)
- description: |
stop all the running containers, remove all the containers, volumes and
networks and remove all the images.
command: |
docker stop $(docker ps -aq) &&
docker rm $(docker ps -aq);
docker volume rm $(docker volume ls -q);
docker network rm $(docker networkls -q);
docker image rm --force $(docker images --filter reference="*" --quiet)
- description: |
list all the docker volumes.
command: |
docker volume ls
- description: |
call docker-compose to spin up all the containers while removing all
the orphans.
command: |
docker compose up --remove-orphans
- description: |
call docker-compose to spin up all the containers while removing all
the orphans, volumes and rebuilding all the images.
command: |
docker compose up --remove-orphans --volumes --build
du:
description: |
estimate file space usage.
commands:
- description: |
print the size of the current directory in a human-readable format.
command: |
du -sh .
echo:
description: |
write arguments to the standard output.
commands:
- description: |
print a md5 hash of a given string.
command: |
echo jpcercal | md5
fdupes:
description: |
identify or delete duplicate files.
commands:
- description: |
find and delete all the duplicate files in the ./photos/flattened
directory.
command: |
fdupes --size --delete --noprompt --recurse ./photos/flattened
ffmpeg:
description: |
ffmpeg is a very fast video and audio converter that can also grab from a
live audio/video source.
commands:
- description: |
convert the input-filename.gif to a mp4 file with the faststart flag
turned on, the pixel format set to yuv420p and the video scaled to the
nearest even number.
command: |
ffmpeg -i input-filename.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2"
find:
description: |
walk a file hierarchy.
commands:
- description: |
find recursively any file with the extension .php thaat contains on its
content the regex class.*?Cest
command: |
find . -type f \( -name '*.php' \) -exec grep -EH '\class.*?Cest' {} \;
for:
description: |
loop command.
commands:
- description: |
print the string "row #${i} - $(date)" 10 times.
command: |
for i in {1..10}; do
echo "row #${i} - $(date)"
done
fuser:
description: |
identify processes using files or sockets.
commands:
- description: |
print the process id of the process using the port 3000.
command: |
fuser 3000/tcp
gem:
description: |
gem is a package manager for the Ruby programming language.
commands:
- description: |
install the package with the given name.
command: |
gem install <package-name>
- description: |
list all the installed gems.
command: |
gem list
- description: |
uninstall the package with the given name.
command: |
gem uninstall <package-name>
- description: |
update the package with the given name.
command: |
gem update <package-name>
- description: |
update all the installed gems.
command: |
gem update
- description: |
update the gem package manager.
command: |
gem update --system
git:
description: |
git is a free and open source distributed version control system designed to
handle everything from small to very large projects with speed and
efficiency.
commands:
- description: |
remove all local git branches except the ones being filtered out.
command: |
git branch --list
| egrep --invert-match "(master|main|develop|\*)"
| xargs git branch -D
- description: |
restore all working tree files to the latest commited state.
command: |
git checkout -- .
- description: |
restore all working tree files to the latest commited state and
unstage all the staged files.
command: |
git checkout -
- description: |
record changes to the repository ammending it to the last
commit and does not stop for editing the commit message.
command: |
git commit --amend --no-edit
- description: |
apply to the git client the global configuration for `user.email`.
command: |
git config --global user.email "[email protected]"
- description: |
apply to the git client the global configuration for `user.name`.
command: |
git config --global user.name "João Paulo Cercal"
- description: |
show changes between commits, commit and working tree, etc.
command: |
git diff
- description: |
git diff of all the staged changes for the next commit relative
to the last commit.
command: |
git diff --cached
- description: |
git diff of all the staged changes for the next commit relative
to the last commit with the ability to select the files to be
commited.
command:
git diff $@ --name-only --cached | fzf -m --ansi --preview "git diff $@ --cached --color=always"
- description: |
clean up of the main branch with the latest changes from the remote
branch.
command: |
git fetch --all --prune &&
git checkout main &&
git reset --hard origin/main &&
git checkout -
- description: |
abort the process started by git rebase.
command: |
git rebase --abort
- description: |
continue the process started by git rebase.
command: |
git rebase --continue
- description: |
skip the process started by git rebase.
command: |
git rebase --skip
- description: |
start the process of git rebase with the last 5 commits.
command: |
git rebase -i HEAD~5
- description: |
rebase the current branch with the main branch from the remote.
command: |
git rebase origin/main
- description: |
list all the remotes of the current git repository.
command: |
git remote -v
- description: |
restore all the staged changes of the current working tree.
command: |
git restore --staged .
- description: |
restore all the changes of the current working tree.
command: |
git restore .
- description: |
stash all the changes of the current working tree.
command: |
git stash
- description: |
apply the last stash to the current working tree.
command: |
git stash pop
- description: |
show the status of the current git repository.
command: |
git status
go:
description: |
go is an open source programming language that makes it simple to build
secure, scalable systems.
commands:
- description: |
download and install all the dependencies of the current project.
command: |
go get -v ./...
- description: |
tidy up the go.mod file of the current project.
command: |
go mod tidy -v
- description: |
download all the dependencies of the current project.
command: |
go mod download
- description: |
format all the files of the current project.
command: |
gofmt -e -d -s -w ./...
- description: |
format all the files of the current project and fix the imports.
command: |
goimports -w ./
- description: |
run all the tests of the current project.
command: |
go test -timeout 30s -v -run ./...
- description: |
run all the tests of the current project with coverage.
command: |
go test -race -covermode atomic -coverprofile=covprofile.out -v ./...
- description: |
show the coverage of the current project based on the covprofile.out file.
command: |
go tool cover -func=covprofile.out -move atomic
- description: |
run the linter of the current project with the golangci-lint using the verbose flag.
command: |
golangci-lint run -v
head:
description: |
display first lines of a file.
commands:
- description: |
print the first 30 lines of the /etc/hosts file.
command: |
head -30 /etc/hosts
hostname:
description: |
set or print name of current host system.
commands:
- description: |
print the hostname of the current system.
command: |
hostname
http:
description: |
HTTPie: modern, user-friendly command-line HTTP client for the API era.
commands:
- description: |
make a GET request to the localhost:3000/users endpoint, following
the redirects and using the basic authentication with the username
and password.
command: |
http
--follow
--auth-type basic
--auth username:pwd
"https://localhost/"
- description: |
make a GET request to the yahoo finance API to get the current price
of the BCFF11.SA stock.
command: |
http --follow
GET "https://query1.finance.yahoo.com/v8/finance/chart/BCFF11.SA" | jq '.chart.result[0].meta.regularMarketPrice'
- description: |
make a GET request to the localhost:3000/users endpoint with the
content-type application/json and print the response in a human-readable
format.
command: |
http --follow
GET "http://localhost:3000/users" | jq
- description: |
make a POST request to the localhost:3000/users endpoint with the
content-type application/json and the data
'{ "name": "John Doe", "email": "[email protected]" }' and print
the response in a human-readable format.
command: |
http --follow
POST "http://localhost:3000/users"
--raw '{ "name": "John Doe", "email": "[email protected]" }' | jq
kill:
description: |
terminate or signal a process.
commands:
- description: |
kill the process with the pid 123 using the SIGTERM signal.
command: |
kill SIGTERM 123
kubernetes:
description: |
kubectl controls the Kubernetes cluster manager.
commands:
- description: |
print the current context of the kubernetes cluster.
command: |
kubectl config current-context
- description: |
list all available Kubernetes context names.
command: |
kubectl config view | yq '.contexts[].name'
- description: |
get all the available contexts of the kubernetes cluster.
command: |
kubectl config get-contexts
- description: |
list all available Kubernetes context names.
command: |
kubectl config view | yq '.contexts[].name'
- description: |
switch Kubernetes Context.
command: |
kubectl config use-context <context-name>
- description: |
get all the namespaces of the kubernetes cluster.
command: |
kubectl get namespace
- description: |
get all the pods of the kubernetes cluster.
command: |
kubectl get pods
- description: |
execute a command in a pod of the kubernetes cluster.
command: |
kubectl exec -it <pod-name> bash
- description: |
port forward the port 5432 of the kubernetes cluster to the local port 5432.
command: |
kubectl port-forward <pod-name> 5432:5432
kubens:
description: |
kubens is a utility to switch between Kubernetes namespaces.
commands:
- description: |
list all the available namespaces.
command: |
kubens
- description: |
switch to the namespace with the given name.
command: |
kubens <namespace-name>
last:
description: |
indicate last logins of users and ttys.
commands:
- description: |
print the last reboot of the system.
command: |
last reboot
ls:
description: |
list directory contents.
commands:
- description: |
list the content of the current directly in a list, human-readable
including all the hidden files.
command: |
ls -lha
- description: |
list only the filenames of the current directory.
command: |
ls -l | awk '{ print $9 }'
lsof:
description: |
list open files.
commands:
- description: |
check if the port 3000 is being used by any process.
command: |
lsof -i tcp:3000
- description: |
check if the port 80 is being used by any process.
command: |
lsof -i tcp:80
magick:
description: |
convert between image formats as well as resize an image, blur, crop,
despeckle, dither, draw on, flip, join, re-sample, and much more.
commands:
- description: |
convert all the .heic files to .jpg files.
command: |
magick mogrify -monitor -format jpg "*.[hH][eE][iI][cC]"
nc:
description: |
arbitrary TCP and UDP connections and listens
commands:
- description: |
listen to the port 9200.
command: |
nc -z elasticsearch 9200
- description: |
listen to the port 6379.
command: |
nc -z redis 6379
ngrok:
description: |
ngrok is a secure unified ingress platform that combines your reverse proxy,
firewall, API gateway and global load balancing into a production service.
commands:
- description: |
start a ngrok tunnel to the port 80.
command: |
ngrok http 80
nmap:
description: |
network exploration tool and security / port scanner.
commands:
- description: |
scan the network
command: |
nmap -sP 192.168.1.0/24
node:
description: |
server-side JavaScript runtime.
commands:
- description: |
login to the npm registry with the legacy auth type.
command: |
npm login --registry http://npm.domain.dev --auth-type legacy
- description: |
run the build command of the current project defined on the package.json file.
command: |
npm run build
- description: |
run the test command of the current project defined on the package.json file
with the u flag turned on.
command: |
npm run test -- -u
nvim:
description: |
nvim is a text editor based on Vim.
commands:
- description: |
open the /etc/hosts file with nvim.
command: |
nvim /etc/hosts
- description: |
open the ~/.composer/auth.json file with nvim.
command: |
nvim ~/.composer/auth.json
- description: |
open the ~/.gitconfig file with nvim.
command: |
nvim ~/.gitconfig
- description: |
open the ~/.ssh/known_hosts file with nvim.
command: |
nvim ~/.ssh/known_hosts
- description: |
open the /etc/hosts file with nvim.
command: |
nvim /etc/hosts
pbcopy:
description: |
pbcopy, pbpaste - provide copying and pasting to the pasteboard (the
Clipboard) from command line.
commands:
- description: |
copy the content of the ~/.ssh/id_rsa.pub file to the clipboard.
command: |
pbcopy < ~/.ssh/id_rsa.pub && cat ~/.ssh/id_rsa.pub
ping:
description: |
send ICMP ECHO_REQUEST packets to network hosts.
commands:
- description: |
ping a website to check if it's up and running.
command: |
ping google.com
plumber:
description: |
plumber is a CLI devtool for inspecting, piping, messaging and redirecting
data in message systems like Kafka, RabbitMQ , GCP PubSub and many more.
commands:
- description: |
read the aws-sqs queue_name with the auto-delete flag turned on.
command: |
plumber read aws-sqs
-f
--queue-name=queue_name
--auto-delete
--aws-region=eu-central-1
--aws-access-key-id=AKIASFYAHAJW5NPOUYED
--aws-secret-access-key=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
- description: |
read the kafka migrations topic with the follow and json flags turned on.
command: |
plumber read kafka
--topic migrations
--address="localhost:55001"
--follow
--json
- description: |
write the kafka migrations topic with the input-data specified.
command: |
plumber write kafka
--address="localhost:55001"
--topic migrations
--input-data '{"hello":"world"}'
rm:
description: |
remove directory entries.
commands:
- description: |
force remove the vendor directory.
command: |
rm -Rf vendor
- description: |
force remove the node_modules directory.
command: |
rm -Rf node_modules
ls:
description: |
list directory contents.
commands:
- description: |
list the content of the current directly in a list, human-readable
including all the hidden files.
command: |
ls -lha
spryker:
description: |
spryker is the leading composable commerce platform for enterprises with
sophisticated business models to enable growth, innovation, and
differentiation.
commands:
- description: |
spin up the cli container and run the composer install command
once it's up running.
command: |
docker/sdk cli composer install
- description: |
spin up the cli container and run the console with the
code:sniff:style command to fix all the files that do not
match the current rules/constrainst defined on the project.
command: |
docker/sdk cli vendor/bin/console c:s:s -f
- description: |
spin up the cli container and run the console with the propel:install
command which will run config convert, create database, postgres
compatibility, copy schemas, runs Diff, build models and migrate tasks.
command: |
docker/sdk cli vendor/bin/console propel:install
- description: |
use git to clone the content of the repository spryker/docker-sdk
onto the current directory. Spryker Docker SDK helps to set up a
Docker environment for your Spryker project.
command: |
git clone [email protected]:spryker/docker-sdk.git docker
- description: |
prepare all the files to run the application based on the
deploy.dev.yml file defined on the project root dir of any
spryker installation.
command: |
docker/sdk boot -s deploy.dev.yml
- description: |
spin up the cli container and run npm to watch for changes
in the Yves frontend files and rebuilds the assets when necessary.
command: |
docker/sdk cli npm run yves:watch
- description: |
prepare all the files to run the application based on the
deploy.dev.yml file defined on the project root dir of any
spryker installation & build the application including the
data reset and the front assets compilation.
command: |
docker/sdk boot -s deploy.dev.yml &&
docker/sdk up --data --build --assets
- description: |
spin up all the containers needed to run the application with the
debug mode turned on.
command: |
docker/sdk up -x
- description: |
spin up the cli container and run yves with the router:debug
command that will allow to see all the routes registered on yves.
command: |
docker/sdk cli yves router:debug
- description: |
spin up the cli container and run the vendor/bin/console with xdebug
turned on.
command: |
docker/sdk console -x
- description: |
spin up the cli container and the console with the code:phpstan
command that will run PHPStan static analyzer for project or core.
command: |
docker/sdk console code:phpstan
- description: |
spin up the cli container and run the console with the
code:sniff:style command to fix all the files that do not
match the current rules/constrainst defined on the project.
command: |
docker/sdk console code:sniff:style -f
- description: |
spin up the cli container and run the console with the
data:import command that will executes your importers (full-import).
Add this command with another name e.g.
"new DataImportConsole('data:import:category')" to your
ConsoleDependencyProvider and you can run a single DataImporter
which is mapped to the latter part of the command name.
command: |
docker/sdk console data:import
- description: |
run spryker's data:import:cms-block command
command: |
docker/sdk console data:import:cms-block
- description: |
run spryker's data:import:glossary command
command: |
docker/sdk console data:import:glossary
- description: |
run spryker's transfer:generate command
command: |
docker/sdk console transfer:generate
- description: |
run spryker's docker/sdk reset command
command: |
docker/sdk reset
- description: |
run spryker's codecept build command
command: |
docker/sdk testing -x codecept build
- description: |
run spryker's codecept test command
command: |
docker/sdk testing -x codecept run -g ClassNameTest
screen:
description: |
screen manager with VT100/ANSI terminal emulation.
commands:
- description: |
open the screen of the docker vm.
command: |
screen ~/Library/Containers/com.docker.docker/Data/vms/0/tty
sh:
description: |
sh is a POSIX-compliant command interpreter (shell). It is implemented by
re-execing as either bash(1), dash(1), or zsh(1) as determined by the
symbolic link located at /private/var/select/sh. If /private/var/select/sh
does not exist or does not point to a valid shell, sh will use one of the
supported shells.
commands:
- description: |
wait for the postgres database to be up and running.
command: |
sh -c "while ! nc -z postgres 5432; do sleep 0.1; done"
source:
description: |
Source the file argument.
commands:
- description: |
source the .env file.
command: |
source .env
- description: |
source the .zshrc file.
command: |
source ~/.zshrc
ssh:
description: |
ssh (SSH client) is a program for logging into a remote machine and for
executing commands on a remote machine. It is intended to provide secure
encrypted communications between two untrusted hosts over an insecure
network.
commands:
- description: |
add the ssh key to the keychain.
command: |
ssh-add --apple-use-keychain ~/.ssh/id_ed25519
- description: |
generate a new ssh key with the ed25519 algorithm.
command: |
ssh-keygen -t ed25519 -C "[email protected]"
- description: |
generate a new ssh key with the rsa algorithm.
command: |
ssh-keygen -t rsa -b 4096 -C "[email protected]"
- description: |
start the ssh agent.
command: |
eval "$(ssh-agent -s)"
- description: |
create the ~/.ssh/config file.
command: |
touch ~/.ssh/config
tail:
description: |
the tail utility displays the contents of file or, by default, its standard
input, to the standard output.
commands:
- description: |
print the last 30 lines of the /etc/hosts file.
command: |
tail -30 /etc/hosts
turbinekreuzberg:
description: |
list of commands that I used to use when I worked at
Turbine Kreuzberg.
commands:
- description: |
authenticate on aws to connect to turboshop on prod
command: |
aws sso login --profile TXBTurboshopDeveloperAccess-440308253360
- description: |
connects to turboshop production database
command: |