Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working at home (Only)

Denis Smetannikov SmetDenis

🏠
Working at home (Only)
View GitHub Profile
View .vmoptions
-server
-Xms3G
-Xmx6G
-XX:-UseParNewGC
-XX:-UseConcMarkSweepGC
-XX:+UseG1GC
-XX:+OmitStackTraceInFastThrow
-XX:+AggressiveOpts
-XX:CompileThreshold=4250
-XX:ReservedCodeCacheSize=384m
View JSONView-dark-theme.css
body {
white-space: pre;
font-family: Consolas;
background-color: #333;
color: #fff;
}
.property {
font-weight: bold;
}
View macos.sh
# Отключить индексацию файлов
sudo mdutil -a -i off
View php-x.sh
#!/usr/bin/env sh
# /usr/local/bin/php-x
SRC_DIR="`pwd`"
cd "`dirname "$0"`"
cd "/usr/bin"
BIN_TARGET="`pwd`/php"
cd "$SRC_DIR"
"$BIN_TARGET" -d memory_limit=2048M -dzend_extension=/usr/lib/php/20170718/xdebug.so "$@"
View ho_conversions.php
<?php
// affiliate_id,offer_id,payout,revenue,datetime,is_adjustment
$data = [];
$months = [
'2017-10-17 23:55:55' => 11000,
'2017-11-17 23:55:55' => 12000,
View Makefile
# https://marmelab.com/blog/2014/09/10/make-docker-command.html
# If the first argument is "composer"...
ifeq (composer,$(firstword $(MAKECMDGOALS)))
# use the rest as arguments for "composer"
COMPOSER_ARGS := $(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS))
# ...and turn them into do-nothing targets
$(eval $(COMPOSER_ARGS):;@:)
endif
composer:
View .bash_aliases.sh
################ copy/replace file to ~/.bash_aliases
################ Tuning bash ###########################################################################################
# Command line history
export HISTCONTROL=ignoredups:ignorespace
export HISTFILESIZE=10000000
export HISTSIZE=1000000
shopt -s histappend # Append to the history file, don't overwrite it
shopt -s checkwinsize # Check the window size after each command and, if necessary, update the values of LINES and COLUMNS.
@SmetDenis
SmetDenis / hosts.md
Created Dec 13, 2016
Hosts no advert
View hosts.md

127.0.0.1 rad.msn.com

127.0.0.1 apps.skype.com

View idea tuning
-Xms600m
-Xmx1g
-XX:MaxPermSize=350m
-XX:ReservedCodeCacheSize=240m
-XX:+UseCompressedOops
-Xmx4g
View .bash_profile
if [ -f ~/.bashrc ]; then . ~/.bashrc; fi