Skip to content

Instantly share code, notes, and snippets.

Avatar
🕶️
Working on Code

Lucas lucasprogamer

🕶️
Working on Code
View GitHub Profile
View install_zsh.sh
#!/bin/bash
homestead up
homestead ssh
apt-get update
#Additional Packages
apt-get install -y zsh
View babun on cmder
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
View Sublime on Windows
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
View git save credencials.txt
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>
View Rebooting VM
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 Jun 9, 2016
Convidar quem curtiu um post do facebook
View Fanpage Invite All People who Like your Posts
var inputs = document.querySelectorAll('a._42ft._4jy0._4jy3._517h');
for(var i=1; i<inputs.length;i++) {
inputs[i].click();
}
View .zshrc
# 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.
View estados-cidades.json
{
"estados": [
{
"sigla": "AC",
"nome": "Acre",
"cidades": [
"Acrelândia",
"Assis Brasil",
"Brasiléia",
"Bujari",
View Sublime Laravel Snippets
Menu->Tools->Developer->New Snipper..
<!-- dd($object) -->
<snippet>
<tabTrigger>dd</tabTrigger>
<content><![CDATA[
dd(${1:this});
]]></content>
</snippet>
View ngrok install
1 install with homebrew
- brew cask install ngrok
2 try run it
- ngrok http 80
You can’t perform that action at this time.