cd /etc/rspamd
- create
rspamd.conf.local
- create lists:
touch local_bl_from.map.inc local_bl_ip.map.inc local_bl_rcpt.map.inc \
local_wl_from.map.inc local_wl_ip.map.inc local_wl_rcpt.map.inc
- change permissions:
# Add your own tasks in files placed in lib/tasks ending in .rake, | |
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. | |
require(File.join(File.dirname(__FILE__), 'config', 'boot')) | |
require 'rake' | |
require 'rake/testtask' | |
require 'rake/rdoctask' | |
require 'tasks/rails' |
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks. | |
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/) | |
(() => { | |
const SHOW_SIDES = false; // color sides of DOM nodes? | |
const COLOR_SURFACE = true; // color tops of DOM nodes? | |
const COLOR_RANDOM = false; // randomise color? | |
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com) | |
const MAX_ROTATION = 180; // set to 360 to rotate all the way round | |
const THICKNESS = 20; // thickness of layers | |
const DISTANCE = 10000; // ¯\\_(ツ)_/¯ |
alias k="kubectl" | |
alias v="vim" | |
function ns () { | |
kubectl config set-context --current --namespace=$1 | |
} | |
export drc="--dry-run=client -oyaml" | |
export drs="--dry-run=server -oyaml" |
#!/bin/sh | |
#SparseChunks to image Convertor for motorola images by Erfan Abdi | |
#special thanks to superR for header removal script | |
#make sure you have only one image with sparse chunks (system or oem) | |
echo "Converting all SparseChunks to Raw Image" | |
./simg2img *chunk* system.img.raw | |
echo "Removing Moto Header" | |
offset=$(LANG=C grep -aobP -m1 '\x53\xEF' system.img.raw | head -1 | gawk '{print $1 - 1080}') | |
dd if=system.img.raw of=system_moto.img ibs=$offset skip=1 2>&1 |
/** | |
* Enum com todas as Unidades da Federação do Brasil. Contém o nome da Unidade, a sigla e a capital | |
* da Unidade da Federação. As unidades estão listadas por ordem alfabética no enum. | |
* | |
* @author Ricardo Giaviti | |
* @version 1.1.1 | |
* @since 1.0.0 | |
*/ | |
public enum UnidadeFederacao { |