This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
#NOME : HENRIQUE LUZ RODRIGUES | |
# Abro uma caixa com a menssagem seguinte.! | |
zenity --warning --text="PARA FUNCIONAR CORRETAMENTE EXECUTE COMO ROOT" | |
#Crio o Menu com as opções usando um case.! | |
Menu () { | |
main=$(zenity --width=710 --height=510 --list --column "Gerência de usuários." \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#coding: utf-8 | |
from django.db.models import FileField | |
from django.forms import forms | |
from django.template.defaultfilters import filesizeformat | |
from django.utils.translation import ugettext_lazy as _ | |
class ContentTypeRestrictedFileField(FileField): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def delete_selected(modeladmin, request, queryset): | |
if not modeladmin.has_delete_permission(request, queryset=queryset): | |
raise PermissionDenied | |
for obj in queryset: | |
obj.delete() | |
delete_selected.short_description = "Delete selected objects" | |
class MyModelAdmin(admin.ModelAdmin): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -xe | |
repository=https://github.com/HenriqueLR/task-list-dev.git | |
path_build=docs/build/html | |
create_dir(){ | |
rm -rf $path_build; | |
mkdir -p $path_build; | |
cd $path_build; | |
} |