This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"name": "Acme", | |
"author": "Adriano Romanazzo (multiversecoder)", | |
"globals": | |
{ | |
"foreground": "#000", | |
"background": "#FFFEEC", | |
"border": "13px solid #000", | |
"accent": "#000", | |
"caret": "#000", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"extends": "Default.sublime-theme", | |
"variables": | |
{ | |
"base_hue": "#000", | |
"base_tint": "#000", | |
"ui_bg": "#8387C3", | |
"text_fg": "#000", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |