cat ~/.ssh/id_rsa.pub | ssh root@example.com 'cat - >> ~/.ssh/authorized_keys'
This file contains 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 | |
namespace MyApp\Menu; | |
use Knp\Menu\Factory\ExtensionInterface; | |
use Knp\Menu\ItemInterface; | |
use Symfony\Component\ExpressionLanguage\ExpressionLanguage; | |
use Symfony\Component\Security\Core\Authentication\AuthenticationTrustResolverInterface; | |
use Symfony\Component\Security\Core\Role\RoleHierarchyInterface; | |
use Symfony\Component\Security\Core\SecurityContextInterface; |
This file contains 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
# Modified from: http://mediadoneright.com/content/ultimate-git-ps1-bash-prompt | |
################################################################################ | |
# Customize BASH PS1 prompt to show current GIT repository and branch. | |
# by Mike Stewart - http://MediaDoneRight.com | |
# SETUP CONSTANTS | |
# Bunch-o-predefined colors. Makes reading code easier than escape sequences. | |
# I don't remember where I found this. o_O |
This file contains 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
module.exports = function (grunt) { | |
grunt.initConfig({ | |
modernizr: { | |
devFile: "remote", | |
outputFile: "web/_static/js/modernizr.js", | |
files: ["web/js/*", "web/css/*"] | |
}, | |
jshint: { | |
options: { |
This file contains 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
#!/bin/sh | |
USER=$(whoami) | |
APACHE_USER=$(ps axho user,comm|grep -E "httpd|apache"|uniq|grep -v "root"|awk 'END {print $1}') | |
sudo chmod +a "$USER allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs | |
sudo chmod +a "$APACHE_USER allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs | |
echo "app/cache & app/logs been properly chmod'ed for $USER and $APACHE_USER" |
This file contains 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 | |
namespace Zenstruck\eBirdrBundle\Entity\Base; | |
use Zenstruck\eBirdrBundle\Entity\Page; | |
use Doctrine\ORM\Mapping as ORM; | |
/** | |
* @author Kevin Bond <kevinbond@gmail.com> | |
* |
Edit your /etc/fstab
:
sudo nano /etc/fstab
Add the following:
[NAME] [MOUNT_POINT] vboxsf rw 0 0
Where [NAME]
is the name setup in the virtual machine settings and [MOUNT_POINT]
is the path in the guest OS (Ubuntu) you want the shared folder located.
This file contains 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
Full thread dump Java HotSpot(TM) 64-Bit Server VM (24.80-b11 mixed mode): | |
"Attach Listener" daemon prio=10 tid=0x00007f297406f800 nid=0x4b6 waiting on condition [0x0000000000000000] | |
java.lang.Thread.State: RUNNABLE | |
"RequestHandlerThread[#15]" daemon prio=10 tid=0x00007f2974004800 nid=0x4a9 waiting on condition [0x00007f2988212000] | |
java.lang.Thread.State: TIMED_WAITING (parking) | |
at sun.misc.Unsafe.park(Native Method) | |
- parking to wait for <0x00000000f09953e0> (a java.util.concurrent.SynchronousQueue$TransferStack) | |
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:226) |
This file contains 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
Debugger attached successfully. | |
Server compiler detected. | |
JVM version is 24.80-b11 | |
Deadlock Detection: | |
No deadlocks found. | |
Thread 3631: (state = BLOCKED) | |
- sun.misc.Unsafe.park(boolean, long) @bci=0 (Interpreted frame) | |
- java.util.concurrent.locks.LockSupport.parkNanos(java.lang.Object, long) @bci=20, line=226 (Compiled frame) |
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |