melikedev.com
Mike Purcell, Author at Me Like Dev
http://melikedev.com/author/admin
Development tips, help, and suggestions for building performant websites. 100 comments, 185 posts). This user hasn't shared any profile information. Posts by Mike Purcell. Git – Remove all untracked files. Sometimes you start down a path, and realize that there is a better approach or you just don’t have the time to continue. In git it’s easy to do a. Git checkout - . For all existing files, but more difficult for untracked files. To remove all untracked files try this:. Flag was added as part of this bug.
melikedev.com
Doctrine Archives » Me Like Dev
http://melikedev.com/category/doctrine-specific
Development tips, help, and suggestions for building performant websites. PHP – Doctrine – Soft Delete – Multiple Rows at a Time. Public function unlink(array $messageIds) { $q = Doctrine Query: create() - update('UserMessage') - set('deleted at', new Doctrine Expression('NOW()') - whereIn('id', $messageIds) - limit(count($messageIds) ; $q- execute(); }. PHP – Doctrine – DQL – Select Subquery. Below is a code snippet which worked for me:. Here’s another example usage:. Q = Doctrine Query: create() - sele...
melikedev.com
virsh Archives » Me Like Dev
http://melikedev.com/tag/virsh
Development tips, help, and suggestions for building performant websites. Virsh – Refusing to undefine while domain managed save image exists. If you get a “Refusing to undefine while domain managed save image exists” message whilst trying to undefine an image using virsh, try passing the –managed-save flag like so:. Virsh undefine service-a-3 - managed-save. Flag was added as part of this bug. Logic Exception Great blog by a well versed Senior Software Engineer. Symfony 1.4 (8).
melikedev.com
CentOS Archives » Me Like Dev
http://melikedev.com/category/centos
Development tips, help, and suggestions for building performant websites. Linux – SELinux – SEModule – Compile .pp module from .te file. I recently ran into a situation where I needed to grant access to certain /home dirs in order to get puppetmaster started with SELinux enforcing. And I had to do it in such a way that I could keep the resulting “type enforcement” (.te) file in version control, this would allow me to track human readable changes. So I was able to create the audit policy to allow rsyslogd...
melikedev.com
virsh - Refusing to undefine while domain managed save image exists » Me Like Dev
http://melikedev.com/2014/10/14/virsh-refusing-to-undefine-while-domain-managed-save-image-exists
Development tips, help, and suggestions for building performant websites. Laquo; General – Downtime. Mac – XTerm – Change default cursor. Virsh – Refusing to undefine while domain managed save image exists. If you get a “Refusing to undefine while domain managed save image exists” message whilst trying to undefine an image using virsh, try passing the –managed-save flag like so:. Virsh undefine service-a-3 - managed-save. Flag was added as part of this bug. This entry was posted by Mike Purcell. Craig Go...
melikedev.com
Linux - SELinux - SEModule - Compile .pp module from .te file » Me Like Dev
http://melikedev.com/2013/08/19/linux-selinux-semodule-compile-pp-module-from-te-file
Development tips, help, and suggestions for building performant websites. Laquo; PHP – Doctrine – Soft Delete – Multiple Rows at a Time. Git – Revert Multiple Locally Changed Files. Linux – SELinux – SEModule – Compile .pp module from .te file. This entry was posted by Mike Purcell. On August 19, 2013 at 10:32 am, and is filed under CentOS. Follow any responses to this post through RSS 2.0. You can leave a response. From your own site. Times; five = 30. You may use these. Comment Feed for this Post.
melikedev.com
Git Archives » Me Like Dev
http://melikedev.com/category/version-control/git
Development tips, help, and suggestions for building performant websites. Git – Revert Multiple Locally Changed Files. I use a windoze box at home and by default it uses the lame microsoft line endings vs linux line endings, which can wreck havoc on bash scripts. So I recently ran a command similar to the following:. Find /path/to/files -type f -exec dos2unix {} ;. Gstatus fgrep -is png git checkout - $(awk '{ print $3 }'). 8221; message, you need to do either of the following:. Git checkout - . Git clea...
melikedev.com
General - Downtime » Me Like Dev
http://melikedev.com/2014/06/16/general-downtime
Development tips, help, and suggestions for building performant websites. Laquo; Git – Revert Multiple Locally Changed Files. Virsh – Refusing to undefine while domain managed save image exists. General – Downtime. Sorry for the recent outage. Got fed up with godaddy so been moving all of my domains over to namecheap.com, and this one slipped through the cracks, and I forgot about moving it until it started white-paging on Sunday. I will be posting more in the coming weeks. You can leave a response.
melikedev.com
Git Archives » Me Like Dev
http://melikedev.com/tag/git
Development tips, help, and suggestions for building performant websites. Git – Remove all untracked files. Sometimes you start down a path, and realize that there is a better approach or you just don’t have the time to continue. In git it’s easy to do a. Git checkout - . For all existing files, but more difficult for untracked files. To remove all untracked files try this:. Rm -rf $(git ls-files - others - exclude-standard). Git – Revert Multiple Locally Changed Files. Specify the remote repo mkdir repo...
melikedev.com
PHP - Doctrine - Soft Delete - Multiple Rows at a Time » Me Like Dev
http://melikedev.com/2013/07/10/php-doctrine-soft-delete-multiple-rows-at-a-time
Development tips, help, and suggestions for building performant websites. Laquo; PHP – Doctrine – DQL – Select Subquery. Linux – SELinux – SEModule – Compile .pp module from .te file. PHP – Doctrine – Soft Delete – Multiple Rows at a Time. Public function unlink(array $messageIds) { $q = Doctrine Query: create() - update('UserMessage') - set('deleted at', new Doctrine Expression('NOW()') - whereIn('id', $messageIds) - limit(count($messageIds) ; $q- execute(); }. This entry was posted by Mike Purcell.