Skip to content

Instantly share code, notes, and snippets.

@chentz78
chentz78 / domains.txt
Last active March 5, 2024 10:35
My domains block
#My block domains
#Xiaomi - https://raw.githubusercontent.com/unknownFalleN/xiaomi-dns-blocklist/master/xiaomi_dns_block.lst
#Samsung - From https://www.scss.tcd.ie/Doug.Leith/pubs/additional_material_neversleepingears.pdf
# - https://github.com/rafal72/Pi-Hole/blob/master/samsung.txt
vas.samsungapps.com
samsungdm.com
samsungcloud.com
dqa.samsung.com
samsungknox.com
samsungrs.com
More info about the notebook on https://laptopmedia.com/laptop-specs/dell-inspiron-14-7472/
Dell Inspirion 7472 - i5-8250U - 8GB RAM
Debian 9.13
4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64 GNU/Linux
Quick CPU Perf on 05/05/2021 09:11:46
CPU: processor : 0
vendor_id : GenuineIntel
cpu family : 6
@chentz78
chentz78 / target3xSmallA4.tex
Last active July 26, 2020 13:50
Shooting target model with 3 small parts to print in A4 paper and using Tikz and Latex. Preview https://chentz78.github.io/files/target3xSmallA4.pdf
%Based on
%* http://www.texample.net/tikz/examples/polar-coordinates-template/
%* https://michaelgoerz.net/notes/printable-paper-with-latex-and-tikz.html
\documentclass[a4paper, 10pt]{article}
\usepackage{euler}
\usepackage{tikz}
\usepackage{qrcode}
@chentz78
chentz78 / target.tex
Last active December 18, 2019 09:24
Shooting target model to print in A4 paper and using Tikz and Latex. Preview https://chentz78.github.io/files/targetA4.pdf
%Based on
%* http://www.texample.net/tikz/examples/polar-coordinates-template/
%* https://michaelgoerz.net/notes/printable-paper-with-latex-and-tikz.html
\documentclass[a4paper, 10pt]{article}
\usepackage{euler}
\usepackage{tikz}
\usepackage{qrcode}
@chentz78
chentz78 / getInfoBCB.sh
Last active December 6, 2019 12:01
API Financial Information from Banco Central do Brasil
#!/bin/bash
# To explore and find an information go to https://www3.bcb.gov.br/sgspub/localizarseries/localizarSeries.do?method=prepararTelaLocalizarSeries
#Get Gold rate from BMF
curl -s -L --connect-timeout 3 'https://api.bcb.gov.br/dados/serie/bcdata.sgs.4/dados/ultimos/1?formato=json'
#Get USD rate from BCB
curl -s -L --connect-timeout 3 'https://api.bcb.gov.br/dados/serie/bcdata.sgs.10813/dados/ultimos/1?formato=json'
@chentz78
chentz78 / debloatAnd6_N910C.sh
Last active October 6, 2019 22:48
Remove bloatware from Android 6.0.1for Samsung Note 4 (N910C)
#!/bin/bash
#Based on https://gist.github.com/RobinPel/f4e3df304483c38c059c98c6fd66fdda
#https://www.androidsage.com/2018/09/01/list-of-bloatware-remove-uninstall-android-device-without-root/
#Tested with Samsung Note 4 (n910c) and N910CZTO2DPE2 - 10/04/2019
uninstall=(
#Google
com.google.android.music
com.google.android.apps.photos
@chentz78
chentz78 / debloatMIUI10.sh
Last active July 30, 2023 19:23
Remove bloatware from MIUI 10 Tested with Global Beta 9.4.12(Tulip)
#!/bin/bash
#Based on https://gist.github.com/RobinPel/f4e3df304483c38c059c98c6fd66fdda
#https://www.androidsage.com/2018/09/01/list-of-bloatware-remove-uninstall-android-device-without-root/
#https://forum.xda-developers.com/poco-f1/how-to/miui-10-debloat-systemless-tested-t3839641
#Tested with Note 6 Pro (tulip) and MIUI 9.4.12 - 04/26/2019
uninstall=(
#Google
com.google.android.music
@chentz78
chentz78 / MBA2013Bench.txt
Created October 21, 2017 12:04
MacBook Air Mid 2013 - benchmarks
More info about the macbook model https://everymac.com/systems/apple/macbook-air/specs/macbook-air-core-i7-1.7-13-mid-2013-specs.html
> system_profiler SPHardwareDataType
Hardware Overview:
 Model Identifier: MacBookAir6,2
 Processor Name: Intel Core i7
Processor Speed: 1.7 GHz
Number of Processors: 1
@chentz78
chentz78 / raspberryPi3Bench.txt
Created October 21, 2017 11:26
Raspberry Pi 3 - benchmarks
More info about the board version https://en.wikipedia.org/wiki/Raspberry_Pi#Specifications
> cat /proc/cpuinfo
> openssl version -a
> openssl speed md5 sha1 sha256 rsa
> nbench
@chentz78
chentz78 / bpiBench.txt
Created October 21, 2017 11:19
Banana PI M1 - Benchmarks
More info about the board version https://en.wikipedia.org/wiki/Banana_Pi#Banana_Pi_M1
> cat /proc/cpuinfo
CPU: Processor : ARMv7 Processor rev 4 (v7l)
processor : 0
BogoMIPS : 59.76
processor : 1
BogoMIPS : 59.98