Skip to content

Instantly share code, notes, and snippets.

View oviniciusfeitosa's full-sized avatar
🧛

Vinícius Feitosa da Silva oviniciusfeitosa

🧛
View GitHub Profile
@oviniciusfeitosa
oviniciusfeitosa / laravel.bash
Created January 4, 2016 12:59
Laravel - Making ".composer/vendor/bin" visible in yout PATH
#Downloading and installing laravel globally with composer
composer global require "laravel/installer"
# Making "bin" directory visible in your PATH
export PATH="$PATH:$HOME/.composer/vendor/bin"
@oviniciusfeitosa
oviniciusfeitosa / Get the SelectedValues from ListBox - VB.NET
Created February 16, 2016 16:25
Get the SelectedValues from ListBox - VB.NET
Public Shared Function getSelectedValuesFromListBox(ByVal objListBox As ListBox) As String
Dim listOfIndices As List(Of Integer) = objListBox.GetSelectedIndices().ToList()
Dim values As String = String.Empty
For Each indice As Integer In listOfIndices
values &= "," & objListBox.Items(indice).Value
Next indice
If Not String.IsNullOrEmpty(values) Then
values = values.Substring(1)
End If
@oviniciusfeitosa
oviniciusfeitosa / Visual Studio - File Path On Footer
Created March 4, 2016 13:24
Visual Studio - File Path On Footer
@oviniciusfeitosa
oviniciusfeitosa / Visual Studio 2013 Themes
Created March 4, 2016 13:30
Visual Studio 2013 Themes
https://visualstudiogallery.msdn.microsoft.com/9e08e5d3-6eb4-4e73-a045-6ea2a5cbdabe
@oviniciusfeitosa
oviniciusfeitosa / gist:546c24a62516c7cb45b3fe7a43001833
Created August 4, 2016 16:54
Keep Docker Container running while execute `docker attach` command and exit
$ docker ps
$ docker attach --sig-proxy=false hopeful_wozniak
** CTRL + P + Q = detach and keep docker container running
$ docker ps
@oviniciusfeitosa
oviniciusfeitosa / gist:9189e0d02cdfd969769f60d54f54e16d
Created August 8, 2016 21:42
How to set "~/.composer/vendor/bin" directory in your PATH?
To put this folder on the PATH environment variable type
export PATH="$PATH:$HOME/.composer/vendor/bin"
This appends the folder to your existing PATH, however, it is only active for your current terminal session.
If you want it to be automatically set, it depends on the shell you are using. For bash you can append this line to $HOME/.bashrc using your favourite editor or type the following on the shell
echo 'export PATH="$PATH:$HOME/.composer/vendor/bin"' >> ~/.bashrc
@oviniciusfeitosa
oviniciusfeitosa / gist:db8f9c1a2411843066ab304cd43c25f6
Created August 10, 2016 16:24
POSTMAN - Postman helps you develop APIs faster.
https://www.getpostman.com/
http://programmers.stackexchange.com/questions/141973/how-do-you-achieve-a-numeric-versioning-scheme-with-git
Use tags to mark commits with version numbers:
git tag -a v2.5 -m 'Version 2.5'
Push tags upstream—this is not done by default:
git push --tags
Then use the describe command:
@oviniciusfeitosa
oviniciusfeitosa / PHPStorm.pibb
Last active August 18, 2016 18:00
PHPStorm Changing default PHPDoc for class
Preferences > Editor > File and Code Templates > Includes tab > PHP Class Doc Comment
/**
* Class ${NAME}
#if (${NAMESPACE}) * @package ${NAMESPACE}
#end
* @author Vinícius Feitosa da Silva <[email protected]>
* @since ${DATE} ${TIME}
*/
@oviniciusfeitosa
oviniciusfeitosa / PHPStorm_ShowParameters.pibb
Created August 18, 2016 18:10
Show parameters on PHPStorm
Choose View > Parameter Info on the main menu or press Ctrl+P.