Skip to content

Instantly share code, notes, and snippets.

View brunorozendo's full-sized avatar

Bruno Rozendo brunorozendo

View GitHub Profile
@PickledDragon
PickledDragon / list-constraints.sql
Created October 25, 2015 11:30
Postgres list all constraints
SELECT
tc.constraint_name, tc.table_name, kcu.column_name,
ccu.table_name AS foreign_table_name,
ccu.column_name AS foreign_column_name
FROM
information_schema.table_constraints AS tc
JOIN information_schema.key_column_usage AS kcu
ON tc.constraint_name = kcu.constraint_name
JOIN information_schema.constraint_column_usage AS ccu
ON ccu.constraint_name = tc.constraint_name
@m1st0
m1st0 / php_build_ubuntu.sh
Last active April 27, 2026 08:09
Compiling PHP 8 on Ubuntu 25.04 with module support and optimized compilation. Included MariaDB and MySQL compatibility.
#!/bin/bash
# ⚠️ This project has moved
# https://github.com/m1st0/php_ubuntu_build_script
# This gist is no longer maintained
echo "This project moved to: https://github.com/m1st0/php_ubuntu_build_script"
exit 1
# PHP 8 Compile #
@mosabua
mosabua / init.gradle
Last active January 21, 2020 04:15
init.gradle file for proxying all repositories with Sonatype Nexus
/**
* init.gradle file for development using Nexus as proxy repository
*
* @author Manfred Moser <[email protected]
*/
apply plugin:NexusRepositoryPlugin
class NexusRepositoryPlugin implements Plugin<Gradle> {