Skip to content

Instantly share code, notes, and snippets.

View weslley39's full-sized avatar
🤘
Awesome

Weslley Neri weslley39

🤘
Awesome
View GitHub Profile
config.vm.synced_folder "../app", "/home/vagrant/app", type: "nfs", mount_options: ['nolock', 'vers=3', 'udp', 'noatime', 'actimeo=1']
# A private dhcp network is required for NFS to work (on Windows hosts, at least)
config.vm.network "private_network", type: "dhcp"
{
"color_scheme": "Packages/User/Solarized (dark) (SL).tmTheme",
"fallback_encoding": "UTF-8",
"font_size": 10,
"ignored_packages":
[
"Vintage"
],
"tab_size": 2,
"theme": "Seti.sublime-theme",
https://developertea.com/
http://devchat.tv/js-jabber
http://nodeup.com/
@weslley39
weslley39 / Conemu_Config
Created April 29, 2015 11:42
My personal conemu configuration XML
<?xml version="1.0" encoding="utf-8"?>
<key name="Software">
<key name="ConEmu">
<key name=".Vanilla" modified="2015-04-29 08:41:40" build="140819">
<value name="ColorTable00" type="dword" data="00000000"/>
<value name="ColorTable01" type="dword" data="00800000"/>
<value name="ColorTable02" type="dword" data="00008000"/>
<value name="ColorTable03" type="dword" data="00808000"/>
<value name="ColorTable04" type="dword" data="00000080"/>
<value name="ColorTable05" type="dword" data="00800080"/>
@weslley39
weslley39 / Machine_Name_With_IP
Created March 10, 2015 14:31
Machine_Name_With_IP
NBTSTAT -A IPADDRS
@weslley39
weslley39 / Permissao_Ethos
Last active August 29, 2015 14:11
Permissao_Ethos
INSERT INTO public.permissao (nome, permissao) VALUES ('Login Retaguarda', 1);
INSERT INTO public.permissao (nome, permissao) VALUES ('Login Pdv', 2);
INSERT INTO public.permissao (nome, permissao) VALUES ('Perfil', 3);
INSERT INTO public.permissao (nome, permissao) VALUES ('Solicitacao de Usuario', 4);
INSERT INTO public.permissao (nome, permissao) VALUES ('Aprovacao de Usuarios', 5);
INSERT INTO public.permissao (nome, permissao) VALUES ('Permissoes', 6);
INSERT INTO public.permissao (nome, permissao) VALUES ('Devolucoes', 7);
INSERT INTO public.permissao (nome, permissao) VALUES ('Aprovacao de Devolucoes', 8);
INSERT INTO public.permissao (nome, permissao) VALUES ('Relatorio de Devolucoes', 9);
INSERT INTO public.permissao (nome, permissao) VALUES ('Criacao de devolucoes', 10);
@weslley39
weslley39 / toLocaleDateString
Created December 5, 2014 13:25
toLocaleDateString
new Date().toLocaleDateString();
@weslley39
weslley39 / PadLeft_PadRight_Js
Created November 4, 2014 13:28
PadLeft_PadRight_Js
// Pad Right
String.prototype.padRight = function (l, c) {
return this + Array(l - this.length + 1).join(c || " ");
}
// Pad Left
String.prototype.padLeft = function (l, c) {
return Array(l - this.length + 1).join(c || " ") + this;
}
LAlt & F1::
SetTitleMatchMode, 2
IfWinExist Sublime Text
WinActivate
return
LAlt & F2::
IfWinExist ahk_class VirtualConsoleClass
WinActivate
return
cd
mkdir bin
sudo ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl
cd $HOME // this will get you back to home directory
vim .bash_profile or .bashrc // this will open your .bash_profile file
export PATH=$PATH:~/bin
:wq // saves and close file