Skip to content

Instantly share code, notes, and snippets.

View multiversecoder's full-sized avatar
🔮
🔒 Focused on a cutting-edge sec solution for web apps. Stay tuned! 🚀

Adriano Romanazzo multiversecoder

🔮
🔒 Focused on a cutting-edge sec solution for web apps. Stay tuned! 🚀
View GitHub Profile
@multiversecoder
multiversecoder / Acme.sublime-color-scheme
Created May 25, 2021 09:27
A new Sublime Text color scheme inspired by Plan9 and Acme
{
"name": "Acme",
"author": "Adriano Romanazzo (multiversecoder)",
"globals":
{
"foreground": "#000",
"background": "#FFFEEC",
"border": "13px solid #000",
"accent": "#000",
"caret": "#000",
@multiversecoder
multiversecoder / Acme.sublime-theme
Created May 25, 2021 09:26
A new Sublime Text theme inspired by Plan9 and Acme
{
"extends": "Default.sublime-theme",
"variables":
{
"base_hue": "#000",
"base_tint": "#000",
"ui_bg": "#8387C3",
"text_fg": "#000",
@multiversecoder
multiversecoder / disable_google_floc_rails.rb
Created April 19, 2021 10:54
How To Disable Google's FLoC | Ruby on Rails
# This is an Example on how to disable Google's FLoC using a 3 lines rails method
# setting the new "Permission-Policy" response header
#
# To disable Google's FLoC and Opt-Out from this security threat,
# just paste this code from line 12 to line 17 inside your application's
# app/controllers/application_controller.rb
#
class ApplicationController < ActionController::Base
@multiversecoder
multiversecoder / gwsgi.py
Created October 26, 2019 07:41
Gunicorn Adapter for Django
import os
import multiprocessing
from django.core.wsgi import get_wsgi_application
from typing import Callable
os.environ['DJANGO_SETTINGS_MODULE'] = 'app.settings' # path to your settings module
def workers() -> int:
return (multiprocessing.cpu_count() * 2) + 1