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
Show hidden characters
{ | |
"always_show_minimap_viewport": true, | |
"bold_folder_labels": true, | |
"caret_style": "phase", | |
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme", | |
"file_exclude_patterns": [], | |
"folder_exclude_patterns": [], | |
"font_face": "Ubuntu mono", | |
"font_options": ["gray_antialias"], | |
"font_size": 10, |
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
hdiutil makehybrid -o ~/Desktop/image.iso ~/path/to/folder/to/be/converted -iso -joliet |
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
SELECT concat('DROP TABLE IF EXISTS ', table_name, ';') | |
FROM information_schema.tables | |
WHERE table_schema = 'MyDatabaseName'; |
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 rotVulpix\TestBundle\Security; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\Security\Core\Authentication\SimpleFormAuthenticatorInterface; | |
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; | |
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken; | |
use Symfony\Component\Security\Core\Encoder\EncoderFactoryInterface; | |
use Symfony\Component\Security\Core\Exception\AuthenticationException; | |
use Symfony\Component\Security\Core\Exception\UsernameNotFoundException; |
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 | |
// Errores desde Form | |
$errores = $view['form']->errors($form); | |
// Limpieza | |
$limpiezaUL = str_replace('<ul>','', $errores); | |
$limpiezaUL = trim(str_replace('</ul>','', $limpiezaUL)); | |
// Separar Errores |
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/bash | |
echo '===> install apc.so in OSX Mavericks' | |
mkdir -p ~/tmp/apc-deps | |
# Compile PCRE - Perl Compatible Regular Expressions | |
cd ~/tmp/apc-deps | |
curl -O ftp://ftp.csx.cam.ac.uk//pub/software/programming/pcre/pcre-8.33.tar.gz | |
tar -xvzf pcre-8.33.tar.gz |
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
<!-- RadioButtons, about them the Dropdown will be filled --> | |
<input type="radio" name="ambito" class="selectable" value="1" data-caption="Ámbito 1"> | |
<input type="radio" name="ambito" class="selectable" value="2" data-caption="Ámbito 2"> | |
<input type="radio" name="ambito" class="selectable" value="3" data-caption="Ámbito 3"> | |
<!-- Bootstrap Dropdown - empty --> | |
<div class="btn-group radio-selectable" data-radio="ambito"> | |
<button type="button" class="btn btn-default dropdown-toggle btn-info" data-toggle="dropdown"> | |
Seleccione <span class="caret"></span> | |
</button> |
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 | |
shell_exec('rm -rf ../app/cache/*'); | |
shell_exec('chmod -R 777 ../app/cache/*'); | |
shell_exec('rm -rf ../app/logs/*'); | |
shell_exec('chmod -R 777 ../app/logs/*'); |
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 | |
class BaseController extends Controller { | |
/** | |
* Setup the layout used by the controller. | |
* | |
* @return void | |
*/ | |
protected function setupLayout() |
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
--- /usr/local/etc/apache2/2.2/original/httpd.conf 2014-12-05 20:14:50.000000000 -0500 | |
+++ /usr/local/etc/apache2/2.2/httpd.conf 2014-12-05 20:16:46.000000000 -0500 | |
@@ -38,7 +38,7 @@ | |
# prevent Apache from glomming onto all bound IP addresses. | |
# | |
#Listen 12.34.56.78:80 | |
-Listen 8080 | |
+Listen 8000 | |
# |
OlderNewer