Skip to content

Instantly share code, notes, and snippets.

View gabrielrbarbosa's full-sized avatar
🎯

Gabriel R. Barbosa gabrielrbarbosa

🎯
  • Londrina, PR, Brazil
  • 23:45 (UTC -03:00)
View GitHub Profile
import onnxruntime as ort
import numpy as np
import cv2
import os
import time
from datetime import datetime
import requests
import json
# === Configuration ===
@ShaneShipston
ShaneShipston / php.ini
Created July 23, 2023 16:20
NativePHP Windows Support
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
@martinsam16
martinsam16 / docker-wsl2.md
Last active March 5, 2026 08:25
How to install wsl2 ubuntu + docker + docker-compose

Activate wsl2

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
wsl --set-default-version 2

Install and Configure Ubuntu

@felagund18
felagund18 / item.dart
Last active March 1, 2021 09:28
Pass data to StatelessWidget
import 'package:flutter/material.dart';
class Item extends StatelessWidget {
Item({Key key, this.param}) : super(key: key);
final Map param;
@override
Widget build(BuildContext context) {
return Container(
@stramel
stramel / HOWTO.md
Last active February 27, 2026 07:50
Installing Powerline fonts on Windows 10

Installing Powerline fonts on Windows 10

Steps

  1. Download and extract zip from here
  2. Press Windows + x
  3. Press a (Selects PowerShell (Admin))
  4. Navigate to directory where fonts were extracted to (cd ${HOME}\Downloads\fonts-master\fonts-master)
  5. Set Execution Policy Set-ExecutionPolicy RemoteSigned [1]
  6. Press y then Enter to accept
@opus-x
opus-x / Spotify_Eliminate_Advertisements
Last active March 2, 2026 14:29
Eliminate Spotify Advertisements + Complete Server List
##################################################################################
# ELIMINATE SPOTIFY ADS (VERSION 1.2 - 8.5) - ABANDONED FOR NOW #
##################################################################################
#
# NOTE: SOMETIMES ONLY ANNOUNCEMENT OF AN AD WHILE USING APP VERSION 7.5-7.9?-8.x.
# USING AN OFFICIAL OLDER VERSION SOLVES THIS. TEST IT (APKMIRROR). THIS WILL NOT
# OCCUR USING CHROMECAST / GOOGLE HOME.
#
# COULD NOT SOLVE THE AUDIO AD INRO/OUTRO IN THE APP.
# SUGGESTIONS? WRITE A COMMENT BELOW.
@leonirlopes
leonirlopes / mask.php
Created April 20, 2018 19:32
Máscara PHP para CNPJ, CPF, Data e qualquer outra coisa
<?php
// PHP Máscara CNPJ, CPF, Data e qualquer outra coisa
// http://blog.clares.com.br/php-mascara-cnpj-cpf-data-e-qualquer-outra-coisa/
// ver em funcionamento ~~> https://ideone.com/wP7zN2
function mask($val, $mask)
{
$maskared = '';
$k = 0;
@kainlite
kainlite / mp2.html
Created July 29, 2017 22:29
MercadoPago Card Token
<html>
<head>
<script src="https://secure.mlstatic.com/sdk/javascript/v1/mercadopago.js"></script>
</head>
<body>
<form action="" method="post" id="pay" name="pay" >
<fieldset>
<ul>
<li>
@adamawolf
adamawolf / Apple_mobile_device_types.txt
Last active March 23, 2026 11:50
List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names
i386 : iPhone Simulator
x86_64 : iPhone Simulator
arm64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S