Skip to content

Instantly share code, notes, and snippets.

View oleg-andreyev's full-sized avatar
🎯
Focusing

Oleg Andreyev oleg-andreyev

🎯
Focusing
  • Riga, Latvia
View GitHub Profile
@oleg-andreyev
oleg-andreyev / install-php-macos-mojave.sh
Created April 15, 2019 22:44
installing PHP7 on Mojave using phpenv + php-build + brew
# https://stackoverflow.com/a/52900711/1205171
sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
brew install re2c [email protected] openssl libjpeg libpng icu4c mcrypt
export PATH="/usr/local/opt/[email protected]/bin:/usr/local/opt/openssl/bin:/usr/local/opt/icu4c/bin:/usr/local/opt/icu4c/sbin:$PATH"
export LDFLAGS="-L/usr/local/opt/openssl/lib -L/usr/local/opt/icu4c/lib $LDFLAGS"
export CPPFLAGS="-I/usr/local/opt/openssl/include -I/usr/local/opt/icu4c/include $CPPFLAGS"
export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig:/usr/local/opt/icu4c/lib/pkgconfig:$PKG_CONFIG_PATH"
@oleg-andreyev
oleg-andreyev / remove-all-brew-packages.sh
Created April 14, 2019 13:24
Remove all brew packages
brew remove --force $(brew list) --ignore-dependencies
brew cleanup
@oleg-andreyev
oleg-andreyev / Improved Persistent Login Cookie Best Practice.md
Created January 10, 2019 20:44
Improved Persistent Login Cookie Best Practice
@oleg-andreyev
oleg-andreyev / DiskUsage.java
Last active December 22, 2019 17:36 — forked from imotov/DiskUsage.java
DiskUsage.java for 5.x
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*