Skip to content

Instantly share code, notes, and snippets.

View brnpimentel's full-sized avatar
🎯
Focusing

Bruno Pimentel brnpimentel

🎯
Focusing
View GitHub Profile
@brnpimentel
brnpimentel / google_workspace_mx_records.txt
Last active March 2, 2023 10:46
Google Workspace MX Records - Cloudflare Import file
; MX
@ 86400 IN MX 1 aspmx.l.google.com.
@ 86400 IN MX 5 alt1.aspmx.l.google.com.
@ 86400 IN MX 5 alt2.aspmx.l.google.com.
@ 86400 IN MX 10 alt3.aspmx.l.google.com.
@ 86400 IN MX 10 alt4.aspmx.l.google.com.
@brnpimentel
brnpimentel / php.json
Created December 16, 2021 18:27
PHP VSCODE SNIPPET
{
"public function": {
"prefix": "met",
"body": [
"public function $1($2) {",
" $3",
"}",
""
],
"description": ""
<!-- START Botmaker WebChat-->
<script>
(function () {
let js = document.createElement('script');
js.type = 'text/javascript';
js.async = 1;
js.src = 'https://go.botmaker.com/rest/webchat/p/VS718U4N53/init.js';
document.body.appendChild(js);
})();
</script>
@brnpimentel
brnpimentel / WhatsApp Emoji PT-BR Atalhos.json
Created September 11, 2020 14:44
WhatsApp Emoji PT-BR Atalhos
{
"0": ["0⃣"],
"1": ["1⃣"],
"2": ["2⃣"],
"3": ["3⃣"],
"4": ["4⃣"],
"5": ["5⃣", "🖐", "✋"],
"6": ["6⃣"],
"7": ["7⃣"],
"8": ["8⃣"],
*.log
error_log
access_log
*_log
.DS_Store
/node_modules
/public/hot
/public/storage
/storage/*.key
alert('oi');
@brnpimentel
brnpimentel / beautify-html.js
Created December 18, 2017 13:37
JS Beautify hack to works with blade directives (laravel)
function style_html(html_source, options, js_beautify, css_beautify) {
html_source = html_source.replace(/\@([^\n\s]*)/ig, "<blade $1/>");
...
sweet_code = sweet_code.replace(/<blade ([^\n]*)\/>/ig, "@$1");
sweet_code = sweet_code.replace(/\(\ \'/ig, "('");
...
@brnpimentel
brnpimentel / .env
Last active September 22, 2016 03:13
git pull - with .env & laravel
GIT_DIR="/dir"
GIT_KEY="key"
GIT_BRANCH="refs/heads/master"