Skip to content

Instantly share code, notes, and snippets.

View patadejaguar's full-sized avatar
💬
I need money

Luis Balam patadejaguar

💬
I need money
View GitHub Profile
@Biswa96
Biswa96 / Remove_MIUI_Bloatware.CMD
Last active June 26, 2024 17:22
Remove bloatware applications from MIUI ROM in Xiaomi phones
@echo off
set /p Y=Enter adb.exe folder path:
cd /d %Y%
adb devices
pause
for %%X in (
"com.amazon.appmanager"
"com.android.browser"
"com.android.chrome"
"com.android.email"
# Setup JHipster to use the latest LTS version of NodeJS
nvm use --lts && node -v > .nvmrc
mvn versions:set-property -Dproperty=node.version -DnewVersion=$(cat .nvmrc)
# Setup JHipster to use your local version of yarn for prod builds
mvn versions:set-property -Dproperty=yarn.version -DnewVersion="v$(yarn -v)"
# Or Setup JHipster to use your local version of npm for prod builds
mvn versions:set-property -Dproperty=npm.version -DnewVersion="v$(npm -v)"
@mauron85
mauron85 / recnoisered.sh
Last active March 11, 2022 15:07
How to record and filter noise from mic in Linux
# Useful links
# https://stackoverflow.com/questions/42904441/pipe-sox-play-command-to-stdout
# http://www.zoharbabin.com/how-to-do-noise-reduction-using-ffmpeg-and-sox/
# Record some noise
sox -t alsa default -b 16 -r 44100 -e signed -t wav - -t wav /tmp/noise.wav
# or alternative with arecord
@jherax
jherax / is-private-mode.js
Last active March 19, 2024 18:29
Detect if the browser is running in Private mode - Promise based (last update: Feb 2020)
/**
* Lightweight script to detect whether the browser is running in Private mode.
* @returns {Promise<boolean>}
*
* Live demo:
* @see https://output.jsbin.com/tazuwif
*
* This snippet uses Promises. If you want to run it in old browsers, polyfill it:
* @see https://cdn.jsdelivr.net/npm/es6-promise@4/dist/es6-promise.auto.min.js
*
<?php
@ini_set("error_log", NULL);
@ini_set("log_errors", 0);
@error_reporting(NULL);
$pate = '{".mx.aol.com":{"2":{"bl":["connecting ip zzip"]},"3":{"bl":[[554,"5.2.1"]]},"4":{"nu":[[550,"5.1.1"]],"sr":["on smtp authentication"],"sv":["sender verify failed"]},"6":{"bl":[[521,"5.2.1"],[421,"4.2.1"]]}},".att.net":{"3":{"bl":[[553,"5.3.0"],"zzip blocked by"]},"4":{"sr":["on smtp authentication"],"sv":["sender verify failed"]},"6":{"sr":["2 spam per"]}},".google.com":{"4":{"nu":[[550,"5.1.1"],[550,"5.2.1"],[552,"5.2.2"],[553,"5.1.2"]],"sr":["on smtp authentication"],"sv":["sender verify failed"]},"6":{"bl":["our system has detected","ip address sending"],"sr":["2 spam per"]}},".hotmail.com":{"3":{"bl":["ou 001","sc 001","sc 002","dy 001"],"gl":["pr ct1","rp 001"]},"4":{"nu":["mailbox unavailable"],"sr":["on smtp authentication"],"sv":["sender verify failed"]},"6":{"bl":["ou 001","sc 001","dy 001"],"sr":["2 spam per"]}},".icloud.com":{"4":{"bl":[[550,"5.7.1","spamhaus"],[550,"5.7.0","dnsbl"]],"nu":[[550,"5.1.1"
<?php
class Banxico
{
const banxicourl = 'http://www.banxico.org.mx:80/DgieWSWeb/DgieWS?WSDL';
private $_client;
private $_debug = false;
public function getExRate()
{
@odan
odan / xampp_php7_xdebug.md
Last active June 28, 2024 12:58
Installing Xdebug for XAMPP
@jtilly
jtilly / install.sh
Last active May 23, 2024 10:36
Install qcachegrind on Ubuntu
#!/bin/bash
sudo apt-get install qt5-default
wget http://kcachegrind.sourceforge.net/kcachegrind-0.7.4.tar.gz
tar xvf kcachegrind-0.7.4.tar.gz
cd kcachegrind-0.7.4
qmake && make
sudo install -m 755 qcachegrind/qcachegrind /usr/local/bin
sudo install -m 644 qcachegrind/qcachegrind.desktop \
/usr/local/share/applications/
@maarten00
maarten00 / pmt.js
Created March 19, 2015 09:56
Excel PMT in PHP and JavaScript
/**
* Copy of Excel's PMT function.
* Credit: http://stackoverflow.com/questions/2094967/excel-pmt-function-in-js
*
* @param rate_per_period The interest rate for the loan.
* @param number_of_payments The total number of payments for the loan in months.
* @param present_value The present value, or the total amount that a series of future payments is worth now;
* Also known as the principal.
* @param future_value The future value, or a cash balance you want to attain after the last payment is made.
* If fv is omitted, it is assumed to be 0 (zero), that is, the future value of a loan is 0.
@nolanlawson
nolanlawson / rant.md
Last active March 1, 2023 23:34
Misconceptions about PouchDB

Misconceptions about PouchDB

A quick rant.

  1. PouchDB is slow, because it doesn't use bare-metal IndexedDB

OK, first off I want to point out the CanIUse table for IndexedDB. Go ahead, look at it. I'll wait.