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
}
angular.module('myModule')
.directive('resizeImg', function() {
return {
restrict: 'A',
link: function(scope, element, attrs) {
var width = element.parent().width();
var maxHeight = attrs.height;
var newHeight, newWidth;