Skip to content

Instantly share code, notes, and snippets.

@flaviolopes
flaviolopes / settings.py
Created June 21, 2017 22:41
settings.py
"""
Django settings for eventex project.
Generated by 'django-admin startproject' using Django 1.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
@flaviolopes
flaviolopes / list2.py
Created May 21, 2017 23:57
Exercícios - WTTD
#!/usr/bin/python -tt
# Copyright 2010 Google Inc.
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
# Google's Python Class
# http://code.google.com/edu/languages/google-python-class/
# Additional basic list exercises
@flaviolopes
flaviolopes / string2.py
Created May 21, 2017 23:56
Exercicios - WTTD
#!/usr/bin/python2.4 -tt
# Copyright 2010 Google Inc.
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
# Google's Python Class
# http://code.google.com/edu/languages/google-python-class/
# Additional basic string exercises
@flaviolopes
flaviolopes / list1.py
Created May 21, 2017 23:55
Google Exercises - WTTD
#!/usr/bin/python -tt
# Copyright 2010 Google Inc.
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
# Google's Python Class
# http://code.google.com/edu/languages/google-python-class/
# Basic list exercises
# Fill in the code for the functions below. main() is already set up
@flaviolopes
flaviolopes / string1.py
Created May 21, 2017 23:48
Google Exercises - WTTD
#!/usr/bin/python -tt
# Copyright 2010 Google Inc.
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
# Google's Python Class
# http://code.google.com/edu/languages/google-python-class/
# Basic string exercises
# Fill in the code for the functions below. main() is already set up
#!/usr/bin/perl
use strict;
use warnings;
use 5.010;
use Archive::Tar;
use File::Find;
use Date::Simple (':all');
#!/usr/bin/perl
use strict;
use warnings;
use 5.010;
use Archive::Tar;
use File::Find;
use Date::Simple (':all');
use GnuPG qw( :algo );
#!/usr/bin/perl
#
#use strict;
#use warnings;
#
##use 5.010;
use 5.12.0;
#
use GnuPG qw( :algo );
#!/usr/bin/perl
use strict;
use warnings;
use 5.12.0;
use File::Rsync;
my %servidor = (
'usuario@serveridor1' => "/path/de/destino/dos/arquivos",
#!/usr/bin/perl
use strict;
use warnings;
use 5.12.0;
use File::Util;
my @lista = (
"DEVICE=eth0,100Mbit,10Mbit", "RATE=64Kbit", "WEIGHT=6Kbit", "PRIO=5",