Skip to content

Instantly share code, notes, and snippets.

View adis-me's full-sized avatar

Adis Ćorović adis-me

View GitHub Profile
@adis-me
adis-me / gist:9175e921a2c2190cf1f01b0023265961
Created April 14, 2025 19:21
Run Sonar scanner on a local project
## Pull container and run server
```shell
docker pull sonarqube
docker run -d --name sonarqube -p 9000:9000 -p 9092:9092 sonarqube
# open http://localhost:9000 (login with admin/admin)
Create project and scan via IntelliJ
```
```
git clone
sudo chgrp -R www-data storage bootstrap/cache
sudo chmod -R ug+rwx storage bootstrap/cache
touch .env
nano .env // edit environment file
php artisan migrate // or
php artisan migrate:refresh --seed
```
@adis-me
adis-me / gist:401c3aea1d32b5daf74b609aef44fca6
Last active November 2, 2016 20:50
Install complete PHP for old Dev mode
brew install php56 --with-imap --with-mcrypt
@adis-me
adis-me / gist:c4eadbebc56c3528fd0b
Last active August 29, 2015 14:22
Setting APP_KEY for Laravel Lumen Framework via routes.php
// First we need to load the Dotenv, you could also do this via bootstrap/app.php
\Dotenv::load(__DIR__.'/../../');
// call <url>/k
$app->get('/k', function() use ($app) {
$path = base_path('.env');
if (file_exists($path))
{
file_put_contents($path, str_replace(
@adis-me
adis-me / gist:56914c28761deaa8731a
Created May 21, 2015 09:22
Mass convert images to jpg
# Convert all images to a new type. Sample: from *.png to *.jpeg
sips -s format jpeg ./*.png --out .