Skip to content

Instantly share code, notes, and snippets.

@zafarella
zafarella / config.md
Created February 13, 2022 14:30 — forked from 0XDE57/config.md
Firefox about:config privacy settings

ABOUT

about:config settings to harden the Firefox browser. Privacy and performance enhancements.
To change these settings type 'about:config' in the url bar. Then search the setting you would like to change and modify the value. Some settings may break certain websites from functioning and rendering normally. Some settings may also make firefox unstable.

I am not liable for any damages/loss of data.

Not all these changes are necessary and will be dependent upon your usage and hardware. Do some research on settings if you don't understand what they do. These settings are best combined with your standard privacy extensions (HTTPS Everywhere, NoScript/Request Policy, uBlock origin, agent spoofing, Privacy Badger etc), and all plugins set to "Ask To Activate".

(chroot) livecd /usr/src/linux # cat .config
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 5.15.11-gentoo Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (Gentoo 11.2.0 p1) 11.2.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=110200
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
@zafarella
zafarella / checkout-folder
Created June 26, 2018 17:20
git checkout only specific folder
#!/usr/bin/env bash
#
# Checkout only specific folder
#
cd /tmp
rm -rf test && mkdir test && cd test
git init
git remote add origin git@github.com:zafarella/OSX-RAMDisk.git
@zafarella
zafarella / intellij VM Options
Created November 14, 2016 04:18
IntelliJ IDEA 2016.2.5 VM options for better response time. (OSX 16GB) -> Help -> Edit custom VM options
-Xms128m
-Xmx1g
-XX:ReservedCodeCacheSize=240m
-XX:+UseCompressedOops
-XX:+UseConcMarkSweepGC
-XX:+CMSParallelRemarkEnabled
-XX:ConcGCThreads=4
-XX:+AlwaysPreTouch
-XX:+TieredCompilation
-XX:+UseCompressedOops
-ea
-server
-Xms2g
-Xmx4g
-Xss16m
-XX:+DoEscapeAnalysis
-XX:+UseCompressedOops
-XX:+UnlockExperimentalVMOptions
-XX:+UseConcMarkSweepGC
-XX:LargePageSizeInBytes=256m
@zafarella
zafarella / compress_jpg.sh
Last active October 15, 2015 03:01
compress JPG files in batch using imagick
#!/bin/bash
for f in *.JPG
do
mogrify -verbose -quality "97%" -resize 2048x2048 -filter Lanczos -interlace Plane ${f} _${f}
done
@zafarella
zafarella / apache felix
Created October 2, 2015 03:11
apache felix install eb console
g! deploy org.apache.felix.webconsole
# do lb
# and start
# start HTTP Service (1.0.0)
# and
# Apache Felix Web Management Console
g! start 10
g! start 10
defaults write -g NSAutomaticWindowAnimationsEnabled -bool false
# smooth scrolling
defaults write -g NSScrollAnimationEnabled -bool false
# showing and hiding sheets, resizing preference windows, zooming windows
# float 0 doesn’t work
@zafarella
zafarella / idea64.vmoptions
Created January 21, 2015 01:06
faster 64bit IntelliJ Idea JVM options
-ea
-server
-Xms2g
-Xmx4g
-Xss16m
-XX:PermSize=456m
-XX:MaxPermSize=556m
-XX:+DoEscapeAnalysis
-XX:+UseCompressedOops
-XX:+UnlockExperimentalVMOptions
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<!--
Documented at
http://linux.die.net/man/5/fonts-conf
To check font mapping run the command at terminal
$ fc-match 'helvetica Neue'