- Acme\DemoBundle\AcmeDemoBundle
- Acme\DemoBundle\Controller\DemoController
- Acme\DemoBundle\EventListener\ControllerListener
- Acme\DemoBundle\Twig\Extension\DemoExtension
- Assetic\Extension\Twig\AsseticExtension
- Assetic\Extension\Twig\ValueContainer
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
--- | |
ip: "192.168.56.56" | |
memory: 2048 | |
cpus: 2 | |
provider: virtualbox | |
folders: | |
- map: C:/Users/User/Documents/laravelstuff/my-projects | |
to: /home/vagrant/laravelstuff |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# this script loads an Ubuntu 22.04 LTS (Jammy Jellyfish) development server (!!!! not for production ) | |
# If it doesn't load the php-module into apache2 server ( to verify use the "phpinfo();" into a index.php file ) | |
# So we have to manualy login with "vagrant ssh" and use cli command for investigation | |
# 1) apachectl -M | grep php --> list of all apache's loaded modules (static , shared) | |
# 2) ls /etc/apache2/mods-available --> if php mod not listed, make an installation with apt-get | |
# sudo apt-get install libapache2-mod-php8.1 and sudo a2nmode php | |
# --- OR --- |
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
// Reference : JavaScript for Experienced Developers | |
// https://www.youtube.com/watch?v=h50lRx3Myfo&list=PLknneukDQdN9sz45rtMkT3k0uq36d7rGj&index=141 (min 17:00) | |
function setFirstname(firstname) { | |
function appendLastName (lastname) { | |
console.log("My fullName is : " + firstname + " " + lastname ); | |
}; | |
return appendName; | |
} |
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
Help from here: http://gitm8.com/running-awus036nhr-in-virtualbox-kali/ | |
and here: http://www.fixedbyvonnie.com/2015/04/welcome-to-kali-linux-part-2-of-3/#.VkPK8q6rTdQ | |
Adapter: http://www.amazon.com/gp/product/B0035APGP6 | |
1. Download the VirtualBox image for Kali 2.0 | |
2. Import it into VirtualBox | |
3. Set up the machine as normal | |
4. In the network tab disable the network interfaces | |
5. Change to the Ports tab | |
6. Change to the USB portion of the Ports tab |
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
// | |
// This sketch will print some of interesting predefined constants to Serial. | |
// | |
// For more information, look at | |
// http://electronics4dogs.blogspot.com/2011/01/arduino-predefined-constants.html | |
// helper macro | |
#define LINE(name,val) Serial.print(name); Serial.print("\t"); Serial.println(val); | |
void setup() |
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
// This function is part of Laravel's ./Illuminate/Support/helpers.php:663: | |
function preg_replace_sub($pattern, &$replacements, $subject) | |
{ | |
return preg_replace_callback($pattern, function($match) use (&$replacements) | |
{ | |
return array_shift($replacements); | |
}, $subject); | |
} |
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
use \Symfony\Component\HttpKernel\Exception\NotFoundHttpException; | |
$app->error(function (\Exception $e) use ($app) { | |
if ($e instanceof NotFoundHttpException) { | |
return $app->json(array('error' => 'Page Not Found'), 404); | |
} | |
$code = ($e instanceof HttpException) ? $e->getStatusCode() : 500; | |
return $app->json(array('error' => $e->getMessage()), $code); | |
}); |
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
rm -rf app/cache/* | |
rm -rf app/logs/* | |
APACHEUSER=`ps aux | grep -E '[a]pache|[h]ttpd' | grep -v root | head -1 | cut -d\ -f1` | |
sudo chmod +a "$APACHEUSER allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs | |
sudo chmod +a "`whoami` allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs |
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
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
NewerOlder