Skip to content

Instantly share code, notes, and snippets.

View gnovaro's full-sized avatar
:octocat:
Adding lines to the open source

Gustavo Novaro gnovaro

:octocat:
Adding lines to the open source
View GitHub Profile
@gnovaro
gnovaro / OpenSourceCRM.rst
Last active May 24, 2022 14:29 — forked from cstroe/OpenSourceCRM.rst
A distilled list of open-source CRM software
@gnovaro
gnovaro / psql_useful_stat_queries.sql
Last active April 7, 2021 09:21 — forked from anvk/psql_useful_stat_queries.sql
List of some useful Stat Queries for PSQL
--- PSQL queries which also duplicated from https://github.com/anvk/AwesomePSQLList/blob/master/README.md
--- some of them taken from https://www.slideshare.net/alexeylesovsky/deep-dive-into-postgresql-statistics-54594192
-- I'm not an expert in PSQL. Just a developer who is trying to accumulate useful stat queries which could potentially explain problems in your Postgres DB.
------------
-- Basics --
------------
-- Get indexes of tables
@gnovaro
gnovaro / console.php
Created March 22, 2021 09:34 — forked from meigwilym/console.php
Laravel Create User Command
<?php
// routes/console.php
// quickly create an user via the command line
Artisan::command('user:create', function () {
$name = $this->ask('Name?');
$email = $this->ask('Email?');
$pwd = $this->ask('Password?');
// $pwd = $this->secret('Password?'); // or use secret() to hide the password being inputted
\DB::table('users')->insert([
@gnovaro
gnovaro / PageController.php
Last active April 18, 2017 14:36 — forked from marktopper/PageController.php
[Voyager] Routes for Pages BREAD
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class PageController extends \App\Http\Controllers\Controller
{
public function show()
{
$slug = request()->segment(1);
/* Flatten das boostrap */
.well, .navbar-inner, .popover, .btn, .tooltip, input, select, textarea, pre, .progress, .modal, .add-on, .alert, .table-bordered, .nav>.active>a, .dropdown-menu, .tooltip-inner, .badge, .label, .img-polaroid {
-moz-box-shadow: none !important;
-webkit-box-shadow: none !important;
box-shadow: none !important;
-webkit-border-radius: 0px !important;
-moz-border-radius: 0px !important;
border-radius: 0px !important;
border-collapse: collapse !important;
background-image: none !important;
<!-- attempt to load AngularJS from CDN -->
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.19/angular.min.js"></script>
<!-- if AngularJS fails to load fallback a local version -->
<script>window.angular || document.write('<script src="/assets/js/vendor/angularjs/1.2.19/angular.min.js"><\/script>');</script>
@gnovaro
gnovaro / responsive.html
Created September 27, 2012 14:54 — forked from lensco/responsive.html
Simple responsive design test page. More info here: http://bricss.net/post/16538278376/simple-responsive-design-test-page
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Responsive Design Testing</title>
<style>
body { margin: 20px; font-family: sans-serif; overflow-x: scroll; }
.wrapper { width: 6000px; }
.frame { float: left; }
h2 { margin: 0 0 5px 0; }