Skip to content

Instantly share code, notes, and snippets.

View jdaviderb's full-sized avatar
👨‍💻
Creating

Jorge Hernandez jdaviderb

👨‍💻
Creating
View GitHub Profile
@jdaviderb
jdaviderb / query.sql
Created May 9, 2022 00:20
mysql show databases by size
SELECT table_schema AS "Data Base Name", sum( data_length + index_length ) / 1024 / 1024 AS "Data Base Size in MB" FROM information_schema.TABLES GROUP BY table_schema;
@jdaviderb
jdaviderb / AzureRegionData.md
Created October 5, 2021 15:22 — forked from ausfestivus/AzureRegionData.md
A list of the Azure regions

List of Azure Regions

A list of all the region names and locations for Azure

Creating the list

You can recreate the list anytime using this command:

az account list-locations -o table
# sh -c "$(curl -fsSL https://gist.githubusercontent.com/gjgd/5a08da85a98bf147294f331461e44d1f/raw/a63bf0f4169a8ab651adfa0a56e676e6bc465876/setup-github-action-runner.sh)"
# Update instance
sudo apt update -y
sudo apt upgrade -y
# Install latest version of git
sudo add-apt-repository ppa:git-core/ppa -y
sudo apt-get update
sudo apt-get install git -y
# sh -c "$(curl -fsSL https://gist.githubusercontent.com/gjgd/5a08da85a98bf147294f331461e44d1f/raw/a63bf0f4169a8ab651adfa0a56e676e6bc465876/setup-github-action-runner.sh)"
# Update instance
sudo apt update -y
sudo apt upgrade -y
# Install latest version of git
sudo add-apt-repository ppa:git-core/ppa -y
sudo apt-get update
sudo apt-get install git -y
@jdaviderb
jdaviderb / Gemfile
Created June 24, 2020 23:33 — forked from dhh/Gemfile
HEY's Gemfile
ruby '2.7.1'
gem 'rails', github: 'rails/rails'
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data
# Action Text
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra'
gem 'okra', github: 'basecamp/okra'
# Drivers
@jdaviderb
jdaviderb / jwtRS256.sh
Created June 15, 2020 21:27 — forked from ygotthilf/jwtRS256.sh
How to generate JWT RS256 key
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key
# Don't add passphrase
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub
cat jwtRS256.key
cat jwtRS256.key.pub
@jdaviderb
jdaviderb / java-home
Created May 17, 2020 21:06
java home
export JAVA_HOME="$(/usr/libexec/java_home -v 1.6)"
or
export JAVA_HOME="$(/usr/libexec/java_home -v 1.7)"
or
export JAVA_HOME="$(/usr/libexec/java_home -v 1.8)"
def filter
Budget::Investment
.where(mariquito, "valor del status")
end
def mariquito
<<-SQL
(SELECT status_id FROM budget_investment_milestones
WHERE investment_id = budget_investments.id ORDER BY created_at ASC LIMIT !) = ?
SQL
techteam@CISRV01:~/docker/sbt/warrantxApi$ cat docker-compose.yml
version: '3'
services:
sbt:
build: .
stdin_open: true
tty: true
command: bash -c 'sbt start'
volumes:
- .:/root