Skip to content

Instantly share code, notes, and snippets.

View DavidGarciaCat's full-sized avatar

David Garcia DavidGarciaCat

View GitHub Profile
@DavidGarciaCat
DavidGarciaCat / check-updates.sh
Created January 28, 2016 10:08
GNU/Linux Shell Script that checks if there are new updates available for the Operating System
#!/bin/bash
TEMP_FILE=/tmp/available-updates.log
apt-get update
sleep 5
dpkg --get-selections | xargs apt-cache policy {} | grep -1 Installed | sed -r 's/(:|Installed: |Candidate: )//' | uniq -u | tac | sed '/--/I,+1 d' | tac | sed '$d' | sed -n 1~2p > $TEMP_FILE
@DavidGarciaCat
DavidGarciaCat / .sensiolabs.yml
Last active July 31, 2017 12:21
SensioLabs Insight - What We Analyze: "Based on the experience of the SensioLabs Audit team, we established a list of 108 control points to make sure an application is safe, reliable, maintainable, that it follows standards and good practices."
rules:
# CRITICAL - SECURITY
# Projects must not depend on dependencies with known security issues
composer.security_issue_in_composer:
enabled: true
# Database queries should use parameter binding
doctrine.database_query_contains_string_and_variable_concatenation:
enabled: true
# PHP debug statements found
php.debug_statements: