Skip to content

Instantly share code, notes, and snippets.

View vanderson139's full-sized avatar
💭
If you want to go quickly, go alone. If you want to go far, go together

Vanderson Lopes vanderson139

💭
If you want to go quickly, go alone. If you want to go far, go together
  • Maringá-PR, Brazil
View GitHub Profile
@vanderson139
vanderson139 / metatags.html
Last active February 25, 2016 14:45
Important HTML Header Metatagd
<!-- Regular Meta Info -->
<title>{{pageTitle}}</title>
<meta charset="utf-8"><!-- html5 version of http-equiv="Content-Type"... -->
<meta name="description" content="{{description}}">
<meta name="keywords" content="{{keywords}}">
<link rel="author" href="https://plus.google.com/{{googlePlusId}}" />
<link rel="canonical" href="{{pageUrl}}" />
<!-- Facebook -->
<meta property="og:url" content="{{pageUrl}}">
@vanderson139
vanderson139 / gist:eb81ceb58d6cca3f110b
Created February 16, 2016 12:58
Table './<table name>' is marked as crashed and last (automatic?) repair failed
I had to navigate to /var/lib/mysql/<database> and run myisamchk -r -v -f ./<table name>
@vanderson139
vanderson139 / gist:98851531500634d90862
Created September 11, 2015 16:46
Javascript cross-browser preventDefault
event.preventDefault ? event.preventDefault() : event.returnValue = false;
@vanderson139
vanderson139 / .htaccess
Last active August 29, 2015 14:27
.htaccess security headers
<IfModule mod_headers.c>
Header set X-XSS-Protection "1; mode=block"
Header always append X-Frame-Options SAMEORIGIN
Header set X-Content-Type-Options nosniff
</IfModule>
@vanderson139
vanderson139 / Default (OSX).sublime-mousemap
Last active August 29, 2015 14:25
Add "Goto Definition" binding to SublimeText (Mac) [command + right click]
[
{
"button": "button1",
"count": 1,
"modifiers": ["command"],
"press_command": "drag_select",
"command": "goto_definition"
},
{
"button": "button1",
@vanderson139
vanderson139 / gist:c61c7beac7a53b3d5491
Created June 26, 2015 18:03
Activate colors in iTerm (add this lines to your .bash_profile)
# ls alias for color-mode
alias lh='ls -lhaG'
# grep with color
alias grep='grep --color=auto'
# Change prompt
export PS1='\[\033[1;97m\][ \[\033[1;94m\]\u\[\033[0m\] \[\033[1;97m\]| \[\033[1;33m\]\W\[\033[0m\] \[\033[0m\]\[\033[1;97m\]]$\[\033[0m\] '