Skip to content

Instantly share code, notes, and snippets.

MySQL

Databases

Tables

Create

Create ... Select

Git

Remote

Get informations about the remote

git remote show origin

Tags

List local tags

Debian System Administration - Useful commands

TAR

Compress

tar -pczf [file_name].tar.gz [folder_or_file_name]

Uncompress

#Python Cheat Sheet

Basics

This is a short list of different packages to install to enhace your production in Python

pip

pip is a tool for installing and managing Python packages

activate-venv() {
source ~/.virtualenvs/$1/bin/activate
}
@Geoffrey-T
Geoffrey-T / sf-console.md
Last active December 22, 2015 17:39
Symfony2 console

Console

Create Bundle

console generate:bundle

Generate Controller

console generate:controller

Generate Entity

console generate:entity

Des deux côtés

Yeoman

npm install -g yeoman

Yo

Génère des "squelletes" d'applications

Grunt

Lanceur de taches (compilation du JS, lancement du serveur, compilation des templates...)

@Geoffrey-T
Geoffrey-T / symfony.conf
Last active December 25, 2015 02:29
Mac symfony vhost
#add this file in /Applications/MAMP/conf/apache/extra
#and Add this line :
# Include /Applications/MAMP/conf/apache/extra/symfony.conf
# In httpd.conf file /Applications/MAMP/conf/apache
# Add this in /etc/hosts -> 127.0.0.1 symfony.dev
# Restart your apache server
# test in your browser : http://symfony.dev
# enjoy ! ou pas :(
# check config with terminal : php app/check.php
# check server config in url /config.php