Skip to content

Instantly share code, notes, and snippets.

View raloliver's full-sized avatar

Israel Oliveira raloliver

View GitHub Profile
@raloliver
raloliver / README.md
Created August 15, 2021 16:23 — forked from e-cloud/README.md
Install mysql 8.0 on wsl
wget -c "https://gist.github.com/e-cloud/34acbefe0597a02f9a081a01eff6dd24/raw/3bad7148f60ab70659b0be14ef07b0bd4d019f62/install-mysql8-on-wsl.sh" install-mysql8-on-wsl.sh
chmod 740 install-mysql8-on-wsl.sh
./install-mysql8-on-wsl.sh
@raloliver
raloliver / ExportKindle.js
Created August 1, 2021 22:07 — forked from jkubecki/ExportKindle.js
Amazon Kindle Export
// The following data should be run in the console while viewing the page https://read.amazon.com/
// It will export a CSV file called "download" which can (and should) be renamed with a .csv extension
var db = openDatabase('K4W', '3', 'thedatabase', 1024 * 1024);
getAmazonCsv = function() {
// Set header for CSV export line - change this if you change the fields used
var csvData = "ASIN,Title,Authors,PurchaseDate\n";
db.transaction(function(tx) {
@raloliver
raloliver / angular-directive-priority.md
Created May 31, 2021 09:18 — forked from mikesigs/angular-directive-priority.md
Angular Directive Priority - Quick Reference

##Angular Directive Priority - Quick Reference

When there are multiple directives defined on a single DOM element, sometimes it is necessary to specify the order in which the directives are applied. The priority is used to sort the directives before their compile functions get called. Priority is defined as a number. Directives with greater numerical priority are compiled first. Pre-link functions are also run in priority order, but post-link functions are run in reverse order. The order of directives with the same priority is undefined. The default priority is 0.

For a brief description of each directive, click here.

Directive | Priority | Terminal | Creates new scope | Can be used as multiElement ---------- | :---------: | :---------: | :---------------

@raloliver
raloliver / git.config
Created May 5, 2021 13:51
git.config
[user]
mail = email@domain.com
name = username
email = email@domain.com
[core]
editor = code --wait
[alias]
s = !git status
c = !git add --all && git commit -m
l = !git log --pretty=format:'%C(blue)%h%C(red)%d %C(white)%s - %C(cyan)%cn, %C(green)%cr'
[{"id":"ed99c3a1.f9694","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"33a0e1dd.d6108e","type":"http in","z":"ed99c3a1.f9694","name":"","url":"/leads","method":"post","upload":false,"swaggerDoc":"","x":180,"y":140,"wires":[["35f9bc44.fd0de4"]]},{"id":"b6bb0d39.ff21c","type":"http response","z":"ed99c3a1.f9694","name":"","statusCode":"200","headers":{},"x":630,"y":140,"wires":[]},{"id":"35f9bc44.fd0de4","type":"function","z":"ed99c3a1.f9694","name":"","func":"msg.payload = [\n {\n person: {\n Id: \"4bfe5adb-fe6c-4a7a-8395-afa4310b7b74\",\n firstName: \"Miof mela\",\n lastName: \"Pilbeam\",\n birthDate: \"6/29/2020\",\n blacklistReason: \"0363-4663\",\n leadInterestReason: \"Unity3D\",\n email: \"mtuffley0@europa.eu\",\n phoneNumber: \"3674818870\",\n },\n organisation: {\n Id: \"66e8e039-a099-4e6a-b9e1-0a46378040ca\",\n Name: \"Chrissie Borkett\",\n blacklistReason: \"68428-034\",\n leadInterestReason: \"DMS-100\",\n },\
@raloliver
raloliver / serviceconfig.json
Created November 24, 2020 15:42
serviceconfig.json (remove cors)
{
"log": ["*"],
"CORS": {
"origin": ["http://localhost:4200"],
"loginOrigin": ["http://localhost:4200"],
"headers": ["Content-Type", "x-caller-chain"],
"maxAge": 1728000
},
"adminInterface": "127.0.0.1:4985",
"interface": "0.0.0.0:4984",
@raloliver
raloliver / userChrome.css
Last active July 28, 2020 22:03
como se livrar da maldição das infinitas abas abertas... https://youtu.be/OuRNpaOPXG0
/* hides the native tabs */
#TabsToolbar {
visibility: collapse;
}
@raloliver
raloliver / email.html
Created June 9, 2020 12:19
leadlovers: Configurar máquina para receber o mesmo lead mais de uma vez
<center>
<div align="center">
<div class="containerbox" style="background-color: #ffffff; font-family: Arial,sans-serif; font-size: 12px; width: 100%; max-width: 600px;"><center><!-- [if !mso]><!-->
<table style="color: #000000; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px; margin-bottom: 5px; text-align: left; max-width: 600px; width: 100%; border-spacing: 0px; border-width: medium; border-style: none;" cellspacing="0" cellpadding="0" align="center" bgcolor="#ffffff"><!--<![endif]--><!-- [if gte mso 9]><table align="center" bgcolor="#ffffff" cellpadding="0" cellspacing="0" width="600" style="color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; margin-bottom: 5px; text-align: left;"><![endif]-->
<tbody>
<tr style="border-spacing: 0px;">
<td class="body" style="font-size: 12px; color: #888; padding: 15px; border-spacing: 0px;">Ol&aacute;, *|PNOME|*<br /><br />Agradecemos muito o seu contato.<br /><br /><strong>=)</strong><br /><br /><span style="color: #88888
@raloliver
raloliver / git-reset-author.sh
Created June 1, 2020 16:31 — forked from bgromov/git-reset-author.sh
Git: reset author for ALL commits
#!/bin/sh
# Credits: http://stackoverflow.com/a/750191
git filter-branch -f --env-filter "
GIT_AUTHOR_NAME='Newname'
GIT_AUTHOR_EMAIL='new@email'
GIT_COMMITTER_NAME='Newname'
GIT_COMMITTER_EMAIL='new@email'
" HEAD