Skip to content

Instantly share code, notes, and snippets.

@auipga
auipga / composer.php.ini
Last active October 25, 2018 09:02 — forked from fprochazka/composer.php.ini
Composer with different ini or with different PHP
[php]
memory_limit = -1
max_execution_time = 0
date.timezone = "Europe/Prague"
realpath_cache_size = "4096K"
extension=iconv.so
[opcache]
opcache.enable = 1
opcache.enable_cli = 1
@auipga
auipga / titaniumbackup-btsync-cleaner.sh
Created January 11, 2017 14:37
This script helps you to (re)move old TitaniumBackup files when you backup its folder using btsync/Bittorrent Sync/rslsync/Resilio Sync. It keeps the latest 1 backup, older backups will be moved somewhere else.
#!/bin/bash
# remove old backups keeping only the latest one
# run this script only in your TitaniumBackup folder !!!
# create this folder first!
target=old
# pipe|separated|list
exclude="this.is.an.example.org.mozilla.firefox"
# | get app IDs
@auipga
auipga / idea.properties
Created November 3, 2017 09:54
indexing
# custom PhpStorm properties
idea.config.path=~/.PhpStorm/config
idea.system.path=~/.PhpStorm/system
idea.plugins.path=~/.PhpStorm/plugins
idea.log.path=~/.PhpStorm/log
apple.laf.useScreenMenuBar = true
@auipga
auipga / git-phpstorm-emblems.sh
Last active March 13, 2017 23:25
Set nice emblems for folders containing .git, .idea or .sync folders
#!/bin/bash
# set some emblems
# currently supported:
# * phpstorm
# * git
# * rslsync (Resilio Sync / Bittorrent Sync / btsync)
# check parameters
if [ -z "$1" ]; then
echo "Missing parameter <type>.";