Skip to content

Instantly share code, notes, and snippets.

View franciscojsc's full-sized avatar
👨‍💻
🚀 🚀coding 🚀 🚀

Francisco Chaves franciscojsc

👨‍💻
🚀 🚀coding 🚀 🚀
View GitHub Profile
@franciscojsc
franciscojsc / regex-negar-palavra.md
Created October 31, 2021 20:42
Como negar palavra(s) utilizando Regex

Regex para negar palavra(s)

Para negar o Regex se a palavra foo é unica:

^(?!foo$).*

Para negar o Regex se a palavra foo inicia a frase:

@franciscojsc
franciscojsc / index.js
Last active November 27, 2021 21:40
Read file xlsx and convert to script sql
const xlsxFile = require('read-excel-file/node');
const fs = require('fs');
(async () => {
const xlsx = await xlsxFile('./file.xlsx');
const data = xlsx.slice(1);
const nameTable = 'demo.tableX';
save(`INSERT INTO ${nameTable} VALUES \n`);
@franciscojsc
franciscojsc / README.md
Last active October 22, 2021 23:54
Convert text list to MD5 hash list

Convert text list to MD5 hash list

Add execute permission to file:

chmod +x ./convert-list-hash.sh

Run the script, passing the file path:

@franciscojsc
franciscojsc / xfce4-appfinder.md
Created October 17, 2021 04:36
Pesquise programas no Xubuntu com xfce4-appfinder

xfce4-appfinder

  • Versão simples
    • Alt + F2
  • Versão completa
    • Alt + F3
@franciscojsc
franciscojsc / estagios-GA.md
Created October 17, 2021 04:30
Estágios de desenvolvimento do Google Assistant

Alpha ==> Beta ==> Produção

@franciscojsc
franciscojsc / ngrok-aspnet.md
Created October 17, 2021 04:26
Ngrok para desenvolvimento local WebApi ASP.NET Core

Para executar uma aplicação WebApi ASP.NET Core com o Ngrok, utilize o comando abaixo:

ngrok http https://localhost:5001
@franciscojsc
franciscojsc / while-bash.md
Created October 16, 2021 03:17
Laço de repetição (while) no Bash

Abra o terminal, utilize o comando abaixo executar o laço de repetição (while):

while true; do echo "Hello, your date and hour $(date)"; sleep 4; done

Crie um arquivo laco.sh e adicione o contéudo abaixo:

#!/bin/bash
@franciscojsc
franciscojsc / README.md
Last active September 29, 2021 22:21
Check login in Xubuntu and send status in email with IFTTT

Check Login in Xubuntu

Add premission to file:

chmod +x check-login.sh

Move file check-login.sh:

@franciscojsc
franciscojsc / generate-ssh-key.sh
Created September 2, 2021 22:49 — forked from denisgolius/generate-ssh-key.sh
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/mozilla_rsa
@franciscojsc
franciscojsc / index.html
Created August 23, 2021 00:59 — forked from hmschreiner/index.html
Electron Fiddle Gist - JavaScript TDC POA 2019
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
<h2>Status <span id="status">Offline</span></h2>
<!-- All of the Node.js APIs are available in this renderer process. -->