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 / 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
|--------------------------------------------------------------------------
|
@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 / 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 / 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 / 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 / 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
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php
*/
$args = array(
@gvsrepins
gvsrepins / Conf vhost.conf
Created November 14, 2012 00:33
Conf:VHost Configuration File
<VirtualHost *:80>
ServerAdmin user@server
DocumentRoot /var/www/project
ServerName project.local
# This should be omitted in the production environment
SetEnv APPLICATION_ENV development
<Directory /var/www/project>
Options Indexes MultiViews FollowSymLinks
@gvsrepins
gvsrepins / mysql-backup-dbs.sh
Created November 4, 2012 15:42
SSH:MySQL Backup
#!/bin/bash
# This script backups every MySQL database to its own file
#Some variables you can set how you like
USER='username'
PASSWORD='password'
OUTPUTDIR='/var/backup'
MYSQLDUMP='/usr/bin/mysqldump'
MYSQL='/usr/bin/mysql'
@gvsrepins
gvsrepins / list-eleicoes.txt
Last active August 29, 2015 14:06
Lista com 20 sites que trazem informações sobre candidatos e eleições.
1-http://www.projetobrasil.org/#!/
2-http://www.atlaspolitico.com.br/
3- http://www.votehoje.com.br/home
4- http://www.tse.jus.br/eleicoes/estatisticas/repositorio-de-dados-eleitorais
5-http://www.politicos.org.br/
6-http://www.excelencias.org.br/
7-http://www.justicaeleitoral.jus.br/
8-https://eleicoeslimpas.org.br/assine
9-http://super.abril.com.br/blogs/superlistas/6-sites-para-ajudar-voce-
a-escolher-seus-candidatos-nessas-eleicoes/