Skip to content

Instantly share code, notes, and snippets.

View JoseCage's full-sized avatar
:octocat:
Opensourcing

José Cage JoseCage

:octocat:
Opensourcing
View GitHub Profile
@JoseCage
JoseCage / FilterByFinanciadorCountry.js
Last active February 15, 2019 13:34
Preencher o País do financiador na Lista com base no País do financiador selecionado
var PaisFincanciadorSel = $("select[title='Financiador']");
PaisFincanciadorSel.change(function() {
populateLists();
});
var ListItem;
function populateLists()
{
var FinanciadorTitle = $("select[title='Financiador']").val();
@JoseCage
JoseCage / O'Reilly Design Books (Free).md
Created January 29, 2019 08:58 — forked from udezekene/O'Reilly Design Books (Free).md
Download the just released O'Reilly Design Books for free without e-mail signup.

Free O'Reilly Design Books and convenient script to just download them.

HUGE thanks to O'Reilly for making this resource free. Visit the design page if you want to learn more about the design resources. Also, they do have FREE resources for other topics like: Data, IoT, Programming, Security, Web Development, and WebOps.

Thanks @augbog for the initial gist. If you are a developer or looking for software engineering books, headover to the source of this fork.

How to use:

  1. Take the download.sh file and put it into a directory where you want the files to be saved.
  2. cd into the directory and make sure that it has executable permissions (chmod +x download.sh should do it)
@JoseCage
JoseCage / README.md
Created January 23, 2019 16:32 — forked from roachhd/README.md
EMOJI cheatsheet 😛😳😗😓🙉😸🙈🙊😽💀💢💥✨💏👫👄👃👀👛👛🗼🔮🔮🎄🎅👻

EMOJI CHEAT SHEET

Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. ✈ Got flash enabled? Click the emoji code and it will be copied to your clipboard.

People

:bowtie: 😄

@JoseCage
JoseCage / replaceCopyright.js
Last active October 14, 2018 09:37
Replace copyright info
document.getElementsByClassName('copy-right')[0].innerHTML = 'Todos direitos reservados <a href="https://dogrife.com" rel="author">Do Grife</a> | By Mente Digital LLC';
@JoseCage
JoseCage / hideNewButton.js
Created October 11, 2018 15:57
Hide new item button in SharePoint library
function hideBt(){
document.getElementById("QCB1_Button1").style.display= "none";
}
_spBodyOnLoadFunctionNames.push("hideBt");
@JoseCage
JoseCage / LoginController.php
Created April 15, 2018 20:17
Exemplo de autenticação customizada e redirecionar usuário para página anterior
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
class LoginController extends Controller
{
/**
@JoseCage
JoseCage / .gitconfig
Created January 13, 2018 22:07 — forked from mikaelhadler/.gitconfig
Alias graph for git cli : ]
[alias]
graph = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
@JoseCage
JoseCage / import.sh
Created December 15, 2017 22:53
Import bd dentro do container
#!/usr/bin/env bash
mysql --verbose -u root -p$MYSQL_ROOT_PASSWORD $MYSQL_DATABASE < /tmp/db/db.sql
@JoseCage
JoseCage / export.sh
Created December 15, 2017 22:50
Script para exportar o bd remoto
#!/usr/bin/env bash
sudo chown -R $USER ../db
#Credenciais do Banco da Amazon
echo 'insira o endereco do servidor:'
read s
echo 'insira o usuario:'
read u
echo 'insira a senha:'
read p
echo 'insira o nome do banco:'
@JoseCage
JoseCage / UuidModel.php
Created November 29, 2017 23:30 — forked from danb-humaan/UuidModel.php
Trait for implementing UUIDs in Laravel models
<?php
namespace App\Traits;
use Rhumsaa\Uuid\Uuid;
use Illuminate\Database\Eloquent\ModelNotFoundException;
/**
* Trait UuidModel
* @package App\Traits