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
1) Popule a tabela de timezones (sem esse passo nada funcionará) | |
$ mysql_tzinfo_to_sql /usr/share/zoneinfo/ | mysql -u root -p mysql | |
2) Edite o arquivo /etc/mysql/mysql.conf.d/mysqld.cnf | |
$ sudo vim /etc/mysql/mysql.conf.d/mysqld.cnf | |
3) Adicione a seguinte linha abaixo de [mysqld] |
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
/* global Framework7 */ | |
import { schedule } from '@ember/runloop'; | |
export function initialize() { | |
return schedule('afterRender', function () { | |
new Framework7({ | |
theme : 'md' | |
}); | |
}); | |
} |
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
var blinkTab = function(message) { | |
var oldTitle = document.title, /* save original title */ | |
timeoutId, | |
blink = function() { document.title = document.title == message ? ' ' : message; }, /* function to BLINK browser tab */ | |
clear = function() { /* function to set title back to original */ | |
clearInterval(timeoutId); | |
document.title = oldTitle; | |
window.onmousemove = null; | |
timeoutId = null; | |
}; |
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
'use strict'; | |
let path = require('path'); | |
module.exports = function() { | |
global.rootRequire = function(name) { | |
return require(path.normalize(`${__dirname}/../${name}`)); | |
}; | |
}; |
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
# vim .oh-my-zsh/custom/themes/robbyrussell.zsh-theme | |
PROMPT='%(!.%{%F{yellow}%}.)$USER @ TGN-WORDPRESS %{$fg_bold[red]%}➜ %{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}' |
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
{"lastUpload":"2018-10-30T13:26:58.960Z","extensionVersion":"v3.2.0"} |
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
alias reload='pm2 reload ${PWD##*/} && pm2 logs ${PWD##*/}' | |
alias pull='git pull' | |
alias dev='git checkout dev' | |
alias master='git checkout master' | |
alias rc='git checkout rc' | |
alias stage='git checkout dev && git pull origin dev && git checkout rc && git pull origin rc && git merge dev --no-ff && git push origin rc && git checkout dev && git merge rc && git push origin dev && git checkout rc && echo -e "\n Ok! \n\nPronto para gerar uma nova versão."' | |
alias deploy='~/luizutils/deploy.sh' | |
alias build='emberBuild' | |
emberBuild() { |
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
Atom backup storage |
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
let tzoffset = (new Date()).getTimezoneOffset() * 60000; //offset em millisegundos | |
let localISOTime = (new Date(Date.now() - tzoffset)).toISOString().slice(0, -1); | |
console.log(new Date()); // 2018-05-02T13:43:10.872Z | |
console.log(localISOTime); // 2018-05-02T10:39:53.953 | |
// Utils para ember (/app/utils/localISOTime.js) | |
export default function () { |
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
/* width */ | |
::-webkit-scrollbar { | |
width: 5px; | |
} | |
/* Track */ | |
::-webkit-scrollbar-track { | |
background: #f1f1f1; | |
} |
NewerOlder