Skip to content

Instantly share code, notes, and snippets.

View revagomes's full-sized avatar
🦉

Reva Gomes revagomes

🦉
View GitHub Profile
@jrockowitz
jrockowitz / AGENTS.md
Last active February 8, 2026 22:11
README.md file generated by Claude from AGENTS.md

AGENTS.md: AI Agent Guide for Drupal Development with DDEV

AI Agent Instructions: This guide provides comprehensive instructions for AI coding agents working on Drupal projects using DDEV. Follow these guidelines for consistent, high-quality contributions. Human contributors should use README.md instead.

Project Overview

  • Core Technology: Drupal 10.x+ (verify via composer show drupal/core)
  • Development Environment: DDEV (Docker-based development environment)
  • Key Components: Custom modules, themes, configuration management, Composer dependencies
  • Environment: PHP 8.1+, MySQL/MariaDB, Nginx (all managed by DDEV)
  • Development Tools: Composer, Drush 12+, Git, DDEV CLI
@edmargomes
edmargomes / unplash.sh
Created June 21, 2020 21:17
Update your wallpaper automatically
#/bin/bash
# Add this in your crontab to update your wallpaper each three hours
# Example
# 0 */3 * * * sh /home/$USER/Pictures/wallpaper/unplash.sh
wget -O /home/$USER/Pictures/wallpaper/wallpaper.jpg https://unsplash.it/2560/1440/?random
gsettings set org.gnome.desktop.background picture-uri file:///home/$USER/Pictures/wallpaper/wallpaper.jpg
@LeeJunNakao
LeeJunNakao / Free_Textbooks.md
Created April 7, 2020 22:03 — forked from lucasbf/Free_Textbooks.md
Lista de livros liberados gratuitamente para download por diversas editoras.

Livros Gratuitos em Computação

Em tempos de COVID-19 algumas editoras liberaram uma série de livros do seu acervo em formato ebook para download. Entre elas a SpringerNature disponibilizou ebooks em diversas áreas do conhecimento, a lista completa pode ser vista aqui.

Entretanto, uma seleção foi realizada na lista geral e contempla os principais títulos para a área da Ciência da Computação e Análise e Desenvolvimento de Sistemas. São 60 livros que estão divididos em Matemática e Teoria da Computação, Programação e Desenvolvimento de Software, Ciência de Dados e Aprendizado de Máquina, e por fim Diversos.

O nível Básico ou Avançado é indicado em cada livro.

Qualquer dúvida e/ou sugestão de correção deixe um comentário ao final do gist, ou me encontre em @lucasfigueira.

@bgauduch
bgauduch / multiple-repository-and-identities-git-configuration.md
Last active February 14, 2026 01:06
Git config with multiple identities and multiple repositories

Setup multiple git identities & git user informations

/!\ Be very carrefull in your setup : any misconfiguration make all the git config to fail silently ! Go trought this guide step by step and it should be fine 😉

Setup multiple git ssh identities for git

  • Generate your SSH keys as per your git provider documentation.
  • Add each public SSH keys to your git providers acounts.
  • In your ~/.ssh/config, set each ssh key for each repository as in this exemple:
@jakebathman
jakebathman / logslaravel.sh
Created August 19, 2018 00:06
Tail Laravel logs and filter out the stack traces
tail -f -n 450 storage/logs/laravel*.log \
| grep -i -E \
"^\[\d{4}\-\d{2}\-\d{2} \d{2}:\d{2}:\d{2}\]|Next [\w\W]+?\:" \
--color
@notwaldorf
notwaldorf / list.md
Last active December 25, 2025 22:31
Meownica's packing list

Meownica's packing list

I travel a lot so I'm down to like 30 minutes of packing per any kind of trip. I always bring one carry-on suitcase for any trips up to 2 weeks (that I never check in unless forced) -- I have an Away suitcase because it's got a built-in (removable) battery, and amazing wheels.

🚨

  • 🆔Wallet & Passport
  • 💧Travel water bottle
  • 💳Travel credit cards (don't pay foreign currency fees!)
  • 💳Insurance cards
  • 💵Local currency you have
  • 🚎Local public transport cards
@crittermike
crittermike / import.php
Last active June 6, 2025 11:21
Importing Drupal 8 config programmatically
<?php
// Import arbitrary config from a variable.
// Assumes $data has the data you want to import for this config.
$config = \Drupal::service('config.factory')->getEditable('filter.format.basic_html');
$config->setData($data)->save();
// Or, re-import the default config for a module or profile, etc.
\Drupal::service('config.installer')->installDefaultConfig('module', 'my_custom_module');
#!/bin/sh
# Color table
red='\033[0;31m'
green='\033[0;32m'
blue='\033[0;34m'
purple='\033[0;35m'
cyan='\033[0;36m'
yellow='\033[1;33m'
normal='\033[0m'
@lukechilds
lukechilds / get_latest_release.sh
Created August 9, 2016 19:43
Shell - Get latest release from GitHub
get_latest_release() {
curl --silent "https://api.github.com/repos/$1/releases/latest" | # Get latest release from GitHub api
grep '"tag_name":' | # Get tag line
sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value
}
# Usage
# $ get_latest_release "creationix/nvm"
# v0.31.4