Skip to content

Instantly share code, notes, and snippets.

View hugopereira84's full-sized avatar

Hugo Pereira hugopereira84

View GitHub Profile
@hugopereira84
hugopereira84 / add_mt_interceptor
Last active July 25, 2017 14:38
Tips in interceptor
Connect to jasmin:
$ telnet 127.0.0.1 8990
$ jcliadmin
$ jclipwd
List mt interceptor in cli:
$ mtinterceptor -l
Adicionar novo:
$ mtinterceptor -a
@hugopereira84
hugopereira84 / enter_docker
Created July 10, 2017 11:40
Docker - Enter Running Container with new TTY
To show only running containers use:
$ docker ps
h docker 1.3, there is a new command docker exec.
This allows you to enter a running docker:
$ docker exec -it [container-id] bash
List Containers that are running:
$ docker ps
Enter a running docker:
$ docker exec -it [container-id] bash
@hugopereira84
hugopereira84 / netstat
Last active September 6, 2017 17:06
Tooltips cli
Displays active TCP connections specified by Protocol:
$ netstat -tulnp
@hugopereira84
hugopereira84 / create_entitie
Created March 1, 2017 00:11
Create entitie
Create entitie:
php app/console doctrine:generate:entity
- The entity shorcute name: CoreUserBundle:User
- Configuration format (yml, xml, php, or annotation): use default
- Introduce fieldsnames
- Do you want to generate an empty repository class: use default
@hugopereira84
hugopereira84 / create_bundle
Last active March 1, 2017 00:12
Create bundle
Create bundle symfony:
php app/console generate:bundle
- Bundle Namespace: Core/Bundle/UserBundle
- Bundle Name: use default
- Target directory: use default
- Configuration format (yml, xml, php, or annotation): yml
- Do you want to generate the whole directory structure: use default
@hugopereira84
hugopereira84 / cli_run_workers
Last active August 7, 2017 08:26
Empresa ZAP - Zapweb
/* to run workers */
$ workers/resque worker:start
@hugopereira84
hugopereira84 / django_virtualEnv
Last active March 14, 2017 18:06
Best pratices in projects
Starting a Django Project the Right Way:
https://jeffknupp.com/blog/2012/02/09/starting-a-django-project-the-right-way/
Start with django:
https://realpython.com/learn/start-django/
@hugopereira84
hugopereira84 / apache_with_nodejs
Last active October 27, 2016 13:41
Tips Nodejs
You can see how in:
. https://www.thepolyglotdeveloper.com/2015/01/run-nodejs-application-lamp-stack-server/
. http://www.codingtricks.biz/run-nodejs-application-apache/