This file contains hidden or 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
| #!/usr/bin/env python | |
| # -*- coding: latin-1 -*- | |
| import urllib | |
| import urllib2 | |
| import json | |
| # Autentica na plataforma YouCloud e retorna a string com o AuthKey | |
| # Use o authKey para requisicoes posteriores que requerem autenticação | |
| def authenticate(url, crendential): |
This file contains hidden or 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
| #!/usr/bin/env php | |
| <?php | |
| /** | |
| * Exemplo de consumo Selecty webservices | |
| * | |
| * @author Erich Nascimento <[email protected]> | |
| * @copyright Youse Technologies | |
| */ | |
| // URL Base |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # author: Erich Nascimento <[email protected]> | |
| # created: 2014-07-26 01:25 | |
| # TODO: Implements transitions maybe using gsettings ... picture-opacity | |
| # | |
| # references: | |
| # - Inspiration: http://askubuntu.com/a/69500/184517 | |
| # - Scripting approach: https://github.com/visionmedia/n/blob/master/bin/n | |
| # - Sleep: http://www.cyberciti.biz/faq/linux-unix-sleep-bash-scripting/ |
This file contains hidden or 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
| Moved to: http://github.com/gf3/dotfiles/blob/master/bash_prompt |
This file contains hidden or 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
| # | |
| # Fix Dual Monitors in GNOME 3 | |
| # Ref: http://gregcor.com/2011/05/07/fix-dual-monitors-in-gnome-3-aka-my-workspaces-are-broken/ | |
| # | |
| gsettings set org.gnome.shell.overrides workspaces-only-on-primary false |
This file contains hidden or 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
| /* | |
| On Oracle 8i+, SQL Server 2005+, PostgreSQL 8.4+, DB2, Firebird 2.1+, Teradata, Sybase, Vertica: | |
| */ | |
| WITH summary AS ( | |
| SELECT p.id, | |
| p.customer, | |
| p.total, | |
| ROW_NUMBER() OVER(PARTITION BY p.customer | |
| ORDER BY p.total DESC) AS rk | |
| FROM PURCHASES p) |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # Reference: https://ask.fedoraproject.org/en/question/9111/sticky-what-plugins-do-i-need-to-install-to-watch-movies-and-listen-to-music/ | |
| # | |
| # Set up the repositories | |
| # | |
| sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm | |
| # | |
| # Install minimal |
This file contains hidden or 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
| # Add PEM key | |
| ssh-add my-key.pem | |
| # Open a local tunnel for all interfaces, using port 6352 | |
| ssh -D 0.0.0.0:6352 -f -C -q -N [email protected] |
This file contains hidden or 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
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "math/rand" | |
| "time" | |
| ) | |
| var massas = []string{"fina", "media", "grossa"} |
This file contains hidden or 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
| Ao Sindicato __ | |
| Assunto: CONTRIBUIÇÃO CONFEDERATIVA/CONTRIBUIÇÃO ASSISTENCIAL | |
| Eu ........., portadora da carteira profissional n.º ............, CPF e RG regularmente registrada na empresa (NOME DA EMPRESA e CNPJ) com sede à (ENDEREÇO), Nº , bairro,..........., venho, informar que não concordo com o desconto referente a Contribuição Confederativa / Assistencial que veio a ser determinado pela Convenção Coletiva do Trabalho 20xx/20xx e não autorizo o desconto da mesma em folha de pagamento. | |
| Sendo só para o momento, firmo a presente; | |
| Assinatura do trabalhador |
OlderNewer