Skip to content

Instantly share code, notes, and snippets.

@ar2pi
ar2pi / browserslist.json
Last active April 19, 2018 12:47
a simple browserslist config, see http://browserl.ist to check actual coverage (.join(', ') the array to obtain parsable string), see https://github.com/browserslist/browserslist#custom-usage-data for custom usage stats
{
"browserslist": [
">= 0.25% in my stats",
">= 0.5% in CO",
">= 0.5% in FR",
">= 0.5% in US",
">= 1% in alt-SA",
">= 2%",
"last 2 major versions",
"last 2 years",
@ar2pi
ar2pi / php-7.0.ini
Created April 9, 2018 13:33
php 7.0.* ini template
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
@ar2pi
ar2pi / php-5.6.ini
Created April 9, 2018 13:36
php 5.6.* ini template
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
@ar2pi
ar2pi / php-7.2.ini
Last active April 9, 2018 13:37
php 7.2.* ini template
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
@ar2pi
ar2pi / sf-vhost.conf
Last active April 9, 2018 13:43
Simple Apache vhost configuration file for a Symfony 3+ website
<VirtualHost *:80>
ServerAdmin gertrude@gmail.com
ServerName example.com
ServerAlias www.example.com
DocumentRoot /var/www/project/web
<Directory /var/www/project/web>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
@ar2pi
ar2pi / .htaccess-sf
Created April 9, 2018 13:45
Simple Apache .htaccess for a Symfony3+ website
#
# /path/to/project/web
# Basically just replace app_dev.php with app.php for production purposes
#
# Use the front controller as index file. It serves as a fallback solution when
# every other rewrite/redirect fails (e.g. in an aliased environment without
# mod_rewrite). Additionally, this reduces the matching process for the
# start page (path "/") because otherwise Apache will apply the rewriting rules
@ar2pi
ar2pi / .gitignore-sf
Created April 9, 2018 13:55
Simple .gitignore for Symfony3+ based project
# Symfony
.web-server-pid
app/config/parameters.yml
build/
phpunit.xml
var/*
!var/cache
var/cache/*
!var/cache/.gitkeep
!var/logs
@ar2pi
ar2pi / .zshrc
Last active November 1, 2023 19:17
Oh My Zsh with Powerlevel10k (debian)
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
{
"git.ignoreMissingGitWarning": true,
"workbench.colorTheme": "Material Theme",
"materialTheme.fixIconsRunning": false,
"workbench.iconTheme": "vscode-great-icons",
"workbench.colorCustomizations": {
"activityBarBadge.background": "#5C6BC0",
"list.activeSelectionForeground": "#5C6BC0",
"list.inactiveSelectionForeground": "#5C6BC0",
"list.highlightForeground": "#5C6BC0",
@ar2pi
ar2pi / adblock.sh
Last active August 9, 2021 15:33
/etc/hosts ad blocker
#!/usr/bin/env bash
#
# This script will append additional entries (from http://winhelp2002.mvps.org/hosts.txt) in /etc/hosts file.
# run: "adblock"
#
# Notes:
# - A backup is created as `hosts.bk` in current working directory.
#