Skip to content

Instantly share code, notes, and snippets.

View gvsrepins's full-sized avatar
🎯
Focusing

Gabriel Silva gvsrepins

🎯
Focusing
View GitHub Profile
@gvsrepins
gvsrepins / gist:5713610
Created June 5, 2013 12:47
Import a dabase from the comand line with a sql.gz file.
zcat /path/to/file.sql.gz | mysql -u 'root' -p your_database
@gvsrepins
gvsrepins / vscode-user-settings.json
Last active April 18, 2017 19:19
My vscode so far..
// Place your settings in this file to overwrite the default settings
{
"editor.rulers": [
80,
120
],
"workbench.iconTheme": "vscode-icons",
"window.zoomLevel": 1,
"window.title": "${dirty}${rootName}${separator}${activeEditorMedium}${separator}${appName}",
"editor.fontSize": 16,
@gvsrepins
gvsrepins / media-queries.css
Created July 13, 2017 19:25 — forked from hemantajax/media-queries.css
Very useful media queries snippets
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
}
/* Smartphones (landscape) ----------- */
@media only screen
and (min-width : 321px) {
@gvsrepins
gvsrepins / snippet.xml
Last active September 25, 2018 00:03 — forked from JeffreyWay/snippet.xml
Laravel Resource - Sublime Text 2 Snippet
<snippet>
<content><![CDATA[
// ${1} Resource
Route::get('${1}s', array('as' => '${1}s', 'uses' => '${1}s@index'));
Route::get('${1}s/(:any)', array('as' => '${1}', 'uses' => '${1}s@show'));
Route::get('${1}s/new', array('as' => 'new_${1}', 'uses' => '${1}s@new'));
Route::get('${1}s/(:any)/edit', array('as' => 'edit_${1}', 'uses' => '${1}s@edit'));
Route::post('${1}s', '${1}s@create');
Route::put('${1}s/(:any)', '${1}s@update');
Route::delete('${1}s/(:any)', '${1}s@destroy');
@gvsrepins
gvsrepins / terminator-config
Created August 19, 2017 14:54
Terminator config to act like Guake terminal
[global_config]
always_on_top = True
borderless = True
enabled_plugins = LaunchpadCodeURLHandler, APTURLHandler, LaunchpadBugURLHandler
sticky = True
tab_position = bottom
[keybindings]
hide_window = F12
[layouts]
[[default]]
@gvsrepins
gvsrepins / Envoy.blade.php
Last active July 13, 2023 17:40
A Laravel envoy script for deployment
@servers(['production' => 'productionserver', 'local'=> 'vagrant@127.0.0.1 -p 2222'])
{{-- Configuration section --}}
@setup
/*
|--------------------------------------------------------------------------
| Git Config
|--------------------------------------------------------------------------
|