Skip to content

Instantly share code, notes, and snippets.

View gabrielsclimaco's full-sized avatar
Working from home

Gabriel Climaco gabrielsclimaco

Working from home
View GitHub Profile
@gabrielsclimaco
gabrielsclimaco / metabase.yml
Created November 8, 2020 21:16
Metabase on docker compose with persisted data
version: '3.8'
volumes:
metabase-data:
driver: local
services:
metabase:
image: metabase/metabase
container_name: metabase
@gabrielsclimaco
gabrielsclimaco / turnip-finder.js
Created June 2, 2020 01:07
Code to use in turnip.exchange console
document.querySelector('.note').forEach(island => {
const bells = Number(island.children[2].children[2].children[1].innerText.split(' ')[0])
if (bells > 500) {
const islandName = island.children[1].children[1].innerText.split('\n')[0];
console.log(bells, islandName);
}
})
@gabrielsclimaco
gabrielsclimaco / .hyper.js
Created February 11, 2020 01:30
Hyper terminal config file
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
@gabrielsclimaco
gabrielsclimaco / compareSSMPaths.js
Created October 30, 2019 16:50
Script to compare SSM values
const AWS = require('aws-sdk');
const _ = require('lodash');
AWS.config.update({
region: 'us-east-1',
accessKeyId: '',
secretAccessKey: '',
});
const AWS = require('aws-sdk');
AWS.config.update({
region: 'us-east-1',
accessKeyId: '',
secretAccessKey: '',
});
const copySSMNamespace = async () => {
@gabrielsclimaco
gabrielsclimaco / rename.sh
Created May 30, 2019 00:47
Bash script to rename all (same type) files in a directory
#!/bin/sh
x=0
for file in *.jpg
do
mv "$file" "print-$x.jpg"
x=$((x+1))
done
@gabrielsclimaco
gabrielsclimaco / example.vue
Last active April 17, 2019 01:42
Sample Vue SFC with Pug template and Stylus style
<template lang="pug">
.sample
</template>
<script>
export default {
name: 'sample',
components: {
},
props: {
set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath=&runtimepath
source ~/.vimrc
@gabrielsclimaco
gabrielsclimaco / Dockerfile
Last active August 22, 2017 22:27
Docker set up for kiskadee PostgreSQL database. Kiskadee project can be found in https://pagure.io/kiskadee.
FROM ubuntu
# Add the PostgreSQL PGP key to verify their Debian packages.
# It should be the same key as https://www.postgresql.org/media/keys/ACCC4CF8.asc
RUN apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8
# Add PostgreSQL's repository. It contains the most recent stable release
# of PostgreSQL, ``9.3``.
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" > /etc/apt/sources.list.d/pgdg.list
@gabrielsclimaco
gabrielsclimaco / .zshrc
Last active August 2, 2021 11:55
ZSH Set Up
export ZSH="/home/cafe/.oh-my-zsh"
ZSH_THEME="jnrowe"
plugins=(
adb
aws
bgnotify
dnf
docker-compose
git