Skip to content

Instantly share code, notes, and snippets.

View rodrigocnascimento's full-sized avatar
🐯
i'm a turtle

Rodrigo Nascimento rodrigocnascimento

🐯
i'm a turtle
View GitHub Profile
@rodrigocnascimento
rodrigocnascimento / gist:6582939
Created September 16, 2013 16:22
Box shadow and perspective skew
.box{
z-index: 100;
/*css3 radius*/
-webkit-border-radius: 5px;
-moz-border-radius: 3px;
border-radius: 3px;
/*css3 shadow*/
box-shadow: 5px 5px 15px #000;
-webkit-box-shadow: 5px 5px 15px #000;
-moz-box-shadow: 5px 5px 15px #000;
/*****************************************************************************
* __ __ _ _ ___ _
* \ \/ _\ /\/\ (_)_ __ | |_ _ _ / __\ __ ___ ___| |__
* \ \ \ / \| | '_ \| __| | | | / _\| '__/ _ \/ __| '_ \
* /\_/ /\ \ / /\/\ \ | | | | |_| |_| | / / | | | __/\__ \ | | |
* \___/\__/ \/ \/_|_| |_|\__|\__, | \/ |_| \___||___/_| |_|
* |___/
*
* Identifying and Eliminating Code Smells
*
@rodrigocnascimento
rodrigocnascimento / gist:6679740
Created September 24, 2013 02:43
cakephp pagination
.paging {
height: 36px;
margin: 18px 0;
}
.paging span{
float: left;
padding: 0 14px;
line-height: 34px;
border-right: 1px solid;
border-right-color: #DDD;
@rodrigocnascimento
rodrigocnascimento / gist:7082935
Created October 21, 2013 12:17
Git ignore to cakephp projects
# Test URI
# Ignore netbeans folder
nbproject/*
# Ignore private folder
/app/private/*
!/app/private/empty
# Ignore packed asset files
/app/webroot/css/packed/*
@rodrigocnascimento
rodrigocnascimento / gist:8547108
Created January 21, 2014 19:53
Gerando XML com ASP
'GERANDO XML ------------------------------------------------------------------------------------------------
ArquivoXML = "lance_a_lance.xml" 'adicionando um nome no arquivo
timestamp = DateAdd("h", 3, Time)
Set FSO = CreateObject("Scripting.FileSystemObject") 'criando o objeto FSO
Set Linhas = FSO.CreateTextFile(Server.MapPath(ArquivoXML), True) 'salvando o arquivo no servidor através do método "CreateTextFile"
'gerando linas
Linhas.WriteLine("<?xml version=""1.0""?>")
Linhas.WriteLine("<LANCE_A_LANCE>")
Linhas.WriteLine("<TEMPO_JOGO>"&titulo&"</TEMPO_JOGO>" )
{
"name": "wiremock",
"version": "0.1.0",
"description": "wiremock",
"config": {
"wiremock_url": "http://repo1.maven.org/maven2/com/github/tomakehurst/wiremock-standalone/2.6.0/wiremock-standalone-2.6.0.jar"
},
"watch": {
"wiremock:reload": "{__files,mappings}/*.json"
},

If you want to delete all your commit history but keep the code in its current state it is very safe to do it as in the following:

Checkout

git checkout --orphan latest_branch

Add all the files

Dm
eu
Am
tão isósceles
E
você ângulo
hipóteses
Am
sobre o meu tesão
Dm

#DIRETRIZES DE SEGURANÇA PARA WORDPRESS

###IMEDIATAS

  • Criar senhas únicas de autenticação e salt: https://api.wordpress.org/secret-key/1.1/salt/
  • Não usar 'admin' como usuário e senhas fáceis. De preferência senhas com caracteres minúsculos, maiúsculos e, quando possível, caracteres especiais.
  • Permissões corretas em diretórios e arquivos
  • todos os aquivos - 644
  • diretórios 755
  • themes 555