Skip to content

Instantly share code, notes, and snippets.

View danieldsf's full-sized avatar

Daniel Farias danieldsf

  • Ion Systems
  • Parnaíba - PI - Brazil
  • 18:28 (UTC -03:00)
View GitHub Profile
@danieldsf
danieldsf / audio-looper.js
Last active August 17, 2021 15:39
Audio Looper
const mp3Duration = require('mp3-duration')
const humanInterval = require('human-interval')
const path = require('path')
const fs = require('fs')
const { exec } = require("child_process")
const MYLIST = path.basename("mylist.txt")
var milliseconds, duration, source, destination
@danieldsf
danieldsf / Pipfile
Last active August 17, 2021 15:34
servecli.py
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
invoke = "*"
click = "*"
const fs = require("fs");
class Request {
constructor(event){
this.setMethod(event.httpMethod);
this.setBody(event.body, event.isBase64Encoded);
this.setIP(event.requestContext);
this.setParams(event.queryStringParameters);
}
const Sentry = require("@sentry/node");
const SentryLambda = require("@sentry/serverless");
var sentryDns = null;
var sentryHandler = null;
function captureError(error){
console.log(error);
if(sentryHandler){
sentryHandler.captureException(error);
const axios = require('axios');
class RecaptchaService{
constructor(secret){
this.secret = secret;
}
setResponse(response){
this.response = response || '';
@danieldsf
danieldsf / modified_css.css
Created April 22, 2021 15:02
modified_css
.error {
color: #e64e1d;
}
/**/
:root{--blue:#25504f;--indigo:#6610f2;--purple:#6f42c1;--pink:#e83e8c;--red:#e64e1d;--orange:#fd7e14;--yellow:#fcf14b;--green:#28a745;--teal:#20c997;--cyan:#e1f5df;--white:#fff;--gray:#6c757d;--gray-dark:#343a40;--primary:#25504f;--secondary:#6c757d;--success:#28a745;--info:#e1f5df;--warning:#fcf14b;--danger:#e64e1d;--light:#f8f9fa;--dark:#343a40;--breakpoint-xs:0;--breakpoint-sm:576px;--breakpoint-md:768px;--breakpoint-lg:992px;--breakpoint-xl:1200px;--font-family-sans-serif:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-family-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}*,::after,::before{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display
import pytesseract, cv2
img_cv = cv2.imread(r'./miki1.png')
img_rgb = cv2.cvtColor(img_cv, cv2.COLOR_BGR2RGB)
print("IMG 1")
print(pytesseract.image_to_string(img_rgb).replace("\n", ""))
@danieldsf
danieldsf / README-Template.md
Created June 23, 2018 19:42 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

Ajax Reverso:
https://www.youtube.com/watch?v=10VwHHxBPp4#t=16
Ajax Pooling:
https://www.youtube.com/watch?v=XZlXnEac8Gg
Instalando ArduinoDocs:
<?php
#$emailsender = "seu.email@aqui";
#if(!isset($_POST[Submit])) die("Nao recebi nenhum parametro. Por favor volte ao formulario.html antes");
/* Medida preventiva para evitar que outros domínios sejam remetente da sua mensagem. */
if (preg_match('/(tempsite.ws$|locaweb.com.br$|hospedagemdesites.ws$|websiteseguro.com$)/', $_SERVER[HTTP_HOST])) {
$emailsender='seu@e-mail.com.br';
} else {
$emailsender = "webmaster@" . $_SERVER[HTTP_HOST];