This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
LOCAL_PATH=`pwd` | |
SESSION_NAME=$2 | |
SSH_HOST=$1 | |
REMOTE_PATH="~/projects/$SESSION_NAME" | |
PORTS=(80 8000 9000) | |
#source <(grep -v '^#' .env | sed -E 's|^(.+)=(.*)$|: ${\1=\2}; export \1|g') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$fileMove = []; | |
$dirMove = []; | |
const FILEPATTERN = '/(.*)\ ([a-f0-9]{32})(\.html)/'; | |
const DIRPATTERN = '/(.*)\ ([a-f0-9]{32})$/'; | |
const FILEBRACKETPATTERN = '/\/\[p[\d]+\]\ ([\p{L}\.\ ,\|\ \-\d\=]+)$/ui'; | |
function scanFolder($path) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private function sendInvitationEmailToUser(User $user) | |
{ | |
$tokenGenerator = $this->container->get('fos_user.util.token_generator'); | |
$mailer = $this->container->get('fos_user.mailer'); | |
$user->setPasswordRequestedAt(new \DateTime()); | |
$user->setConfirmationToken($tokenGenerator->generateToken()); | |
$url = $this->getRouter()->generate('fos_user_resetting_reset', array('token' => $user->getConfirmationToken()), true); | |
$context = array( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#results: 115MB, 15213 file -> 42MB, 6861 file, without breaking anything | |
#should rather use this: https://github.com/barryvdh/composer-cleanup-plugin/blob/master/src/CleanupRules.php | |
rm -rf vendor/symfony/symfony/src/Symfony/Component/Intl/Resources/data/* | |
rm -rf vendor/symfony/symfony/*.md | |
rm -rf vendor/symfony/symfony/src/Symfony/Component/Yaml/Tests | |
rm -rf vendor/symfony/symfony/src/Symfony/Component/Translation/Tests | |
rm -rf vendor/symfony/symfony/src/Symfony/Component/VarDumper/Tests | |
rm -rf vendor/symfony/symfony/src/Symfony/Component/Stopwatch/Tests | |
rm -rf vendor/symfony/symfony/src/Symfony/Component/Security/Tests |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[XDebug] | |
xdebug.remote_enable=1 | |
xdebug.remote_host=host | |
xdebug.remote_port="9000" | |
xdebug.remote_connect_back=1 | |
xdebug.idekey="PHPSTORM" | |
xdebug.profiler_enable=0 | |
xdebug.profiler_output_dir="/Users/b4zs/tmp/profiler/" | |
xdebug.max_nesting_level=300 | |
xdebug.var_display_max_depth=4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://code.technically.us/post/50837506478/senistive-touchpads-and-ubuntu | |
# and prevent the settings app from overwriting our settings: | |
# gsettings set org.gnome.settings-daemon.plugins.mouse active false | |
Section "InputClass" | |
Identifier "nathan touchpad catchall" | |
MatchIsTouchpad "on" | |
MatchDevicePath "/dev/input/event*" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GIT_PS1_SHOWCOLORHINTS=1 | |
GIT_PS1_SHOWDIRTYSTATE=1 | |
GIT_PS1_SHOWUNTRACKEDFILES=1 | |
GIT_PS1_STATESEPARATOR="" | |
source ~/.profile_rc/git-prompt.sh | |
#PS1='\u@\h:\W$(__git_ps1 "(%s)")$ ' | |
#PS1=__git_ps1 "\u@\h:\W" "\\\$ " |