Skip to content

Instantly share code, notes, and snippets.

View FacuM's full-sized avatar

Facundo Montero FacuM

View GitHub Profile
@realkot
realkot / MIUI预装应用列表
Created June 28, 2022 14:09 — forked from mcxiaoke/miui-blotware-apps.md
MIUI 13 bloatware apps for safe delete list. 20220226
https://miuiver.com/wp-content/uploads/miui-pre-installed-software.html
MIUI 预装软件列表(含系统组件)
提示 1:可用 Ctrl + F 组合键快速查找软件名称
提示 2:最新预装软件列表请在系统应用管理里查看,或者安装 Apk Extractor 软件(可在 Google Play 找到)
软件名称 软件包名
一体化位置信息 com.android.location.fused
万能遥控 com.duokan.phone.remotecontroller
@FacuM
FacuM / skip_cooldown.js
Last active October 11, 2021 23:31
Easily skip Google's One Tap cooldown from the browser. This will prevent Google's servers from reporting "supressed_by_user".
// As explained here: https://stackoverflow.com/a/10593045
window.removeCookie = (name) => {
document.cookie = name + '=;expires=Thu, 01 Jan 1970 00:00:01 GMT;';
}
// This will prevent the cooldown from occuring.
removeCookie('g_state');
@satmandu
satmandu / build_arm64_rpi_userland.sh
Last active July 22, 2023 23:37
Generate an arm64 rpi userland for use on ubuntu/arm64.
#!/bin/bash -x
workdir="${HOME}/workdir"
[[ ! -d "$workdir" ]] && ( mkdir -p "$workdir" || exit 1)
[[ ! -d "$workdir"/tmp ]] && ( mkdir -p "$workdir"/tmp || exit 1)
[[ ! -d "$workdir"/output ]] && ( mkdir -p "$workdir"/output || exit 1)
echo "workdir is ${workdir}"
tmpdir=$(mktemp -d deb_XXXX -p "$workdir"/tmp)
deb_temp=${tmpdir}/deb
extract_tmp=${tmpdir}/extract
@tsungtwu
tsungtwu / nginx_reverse_proxy.md
Created November 27, 2019 04:51 — forked from KavenTheriault/nginx_reverse_proxy.md
Configure Nginx Reverse Proxy as failover

Configure Nginx Reverse Proxy as failover

In this exemple of configuration, if the first server fail (proxy_connect_timeout) one time (max_fails), the second server will be used for 60s (fail_timeout).

The SSL certificate need to be configure on the ReverseProxy server AND the proxyied servers. You can use the same certificate and configurations on all servers.

To test the configuration you can change your host file to simulate the correct domain name.

Use the following tool to configure SSL with optimal configuration.

@apaskulin
apaskulin / advanced-formatting-github-markdown.md
Created April 15, 2018 17:49
Tips and tricks for more formatting options in GitHub Markdown

Advanced Formatting in GitHub Markdown

GitHub Flavored Markdown lets you create useful documents in GitHub and GitHub Enterprise using .md files. Like other varieties of markdown, GitHub Markdown tries to be as readable as possible in its raw form, resulting in an intentionally limited set of formatting options. However, these options can feel restrictive when dealing with complex content.

Although GitHub Markdown strips out most HTML tags, here are a few tricks that can give you more flexibility when formatting your documents. These advanced formatting options can make your documents more useable, but they come at the expense of plain text readability, so use with caution.

@icy-arctic-fox
icy-arctic-fox / crontab
Last active March 14, 2022 17:28
Linux Mint Cinnamon Dark Mode
# Every day at 07:00 disable dark mode.
0 7 * * * /bin/sh /home/michael/.local/bin/dark-mode.sh false
# Every day at 21:00 enable dark mode.
0 21 * * * /bin/sh /home/michael/.local/bin/dark-mode.sh true
@azam
azam / svg2ico.sh
Last active April 28, 2024 03:28
Convert SVG to ICO using ImageMagick, with transparent background and multi-size icons
convert -density 256x256 -background transparent favicon.svg -define icon:auto-resize -colors 256 favicon.ico