Skip to content

Instantly share code, notes, and snippets.

View angeloreale's full-sized avatar
🌱
const change = time^2

Angelo Reale angeloreale

🌱
const change = time^2
View GitHub Profile
@letanure
letanure / estados-cidades.json
Last active July 28, 2024 20:49
JSON estados cidades do brasil, dividido por estados. segunda lista atualizada em 2020, dados do IBGE
{
"estados": [
{
"sigla": "AC",
"nome": "Acre",
"cidades": [
"Acrelândia",
"Assis Brasil",
"Brasiléia",
"Bujari",
@carcinocron
carcinocron / debugger pause beforeunload
Last active July 10, 2024 08:48
Chrome: pause before redirect
// Run this in the F12 javascript console in chrome
// if a redirect happens, the page will pause
// this helps because chrome's network tab's
// "preserve log" seems to technically preserve the log
// but you can't actually LOOK at it...
// also the "replay xhr" feature does not work after reload
// even if you "preserve log".
window.addEventListener("beforeunload", function() { debugger; }, false)
@ethanpil
ethanpil / wp-secure.conf
Created May 12, 2017 16:16
Wordpress Security for NginX
# wp-secure.conf
#
#
# This file includes common security considerations for wordpress using nginx.
#
# The goal is to block actions which are usually dangerous to wordpress.
# Additionally, we block direct access to PHP files and folders which should not
# be accessed directly from a browser.
#
# Also have included exceptions for plugins that are known to require this access.
@n3ksus
n3ksus / Dockerfile
Created April 28, 2021 03:40 — forked from kevmo314/Dockerfile
nginx + nginx-rtmp + ffmpeg + libsrt
FROM ubuntu:20.04
RUN apt-get -qq update && apt-get -qq upgrade
ENV NGINX_VERSION nginx-1.19.3
ENV FFMPEG_VERSION snapshot
ENV NGINX_RTMP_MODULE_VERSION 1.2.1
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=America/New_York