Skip to content

Instantly share code, notes, and snippets.

View lucasprogamer's full-sized avatar
🕶️
Working on Code

Lucas lucasprogamer

🕶️
Working on Code
View GitHub Profile
#!/bin/bash
homestead up
homestead ssh
apt-get update
#Additional Packages
apt-get install -y zsh
Settings>startups>tasks>
tasks parameters
/icon "%userprofile%\.babun\cygwin\bin\mintty.exe" /dir "%userprofile%"
commands
%userprofile%\.babun\cygwin\bin\mintty.exe /bin/env CHERE_INVOKING=1 /bin/zsh.exe
https://scotch.io/tutorials/open-sublime-text-from-the-command-line-using-subl-exe-windows
Adding Sublime to Your PATH
System Properties -> Advanced System Settings -> Advanced -> Environment Variables
our open cmd and execute sysdm.cpl>
Create a New System Variable
with name SUBLIME
and the value is a folder where you installed sublime
@lucasprogamer
lucasprogamer / git save credencials.txt
Created March 27, 2016 23:40
git save credencials
You can store your credentials using the following command
$ git config credential.helper store
$ git push http://example.com/repo.git
Username: <type your username>
Password: <type your password>
First destroy the VM's
vagrant global-status
vagrant destrou 'id-vm'
Second step create a new VM
vagrant box add laravel/homestead https://atlas.hashicorp.com/laravel/boxes/homestead
@lucasprogamer
lucasprogamer / Fanpage Invite All People who Like your Posts
Last active June 9, 2016 20:52
Convidar quem curtiu um post do facebook
var inputs = document.querySelectorAll('a._42ft._4jy0._4jy3._517h');
for(var i=1; i<inputs.length;i++) {
inputs[i].click();
}
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="agnoster"
# Uncomment the following line to use case-sensitive completion.
@lucasprogamer
lucasprogamer / estados-cidades.json
Created August 31, 2016 20:29 — forked from letanure/estados-cidades.json
JSON estados cidades
{
"estados": [
{
"sigla": "AC",
"nome": "Acre",
"cidades": [
"Acrelândia",
"Assis Brasil",
"Brasiléia",
"Bujari",
Menu->Tools->Developer->New Snipper..
<!-- dd($object) -->
<snippet>
<tabTrigger>dd</tabTrigger>
<content><![CDATA[
dd(${1:this});
]]></content>
</snippet>
1 install with homebrew
- brew cask install ngrok
2 try run it
- ngrok http 80