Skip to content

Instantly share code, notes, and snippets.

View marcellodesales's full-sized avatar

Marcello DeSales marcellodesales

View GitHub Profile
@marcellodesales
marcellodesales / Ollama-API-CLI-Docker-Models-in-10-minutes.md
Last active August 6, 2024 04:51
Ollama hacking with Docker + Shell + API Server + Models Storage
@marcellodesales
marcellodesales / emoji-for-developers.md
Last active September 14, 2023 13:42
All emojis used for gitops gitflow emojiops automation

Emoji for Developer Automation

I'm passionate about automation and emojis have been used in Git for a while... here are some examples I've been using on my repos based on different emoji automation projects. Mostly from https://www.emojiall.com/en/all-emojis?type=normal.

To search for emojis based on a given keyword, just use https://emojidb.org/done-emojis?user_typed_query=1&utm_source=user_search

Language or platform-specific emojis

  • These are my personal list of emojis for the things I didn't find before
@marcellodesales
marcellodesales / minitwit.puml
Created March 9, 2023 13:59
PUML for minitwit
@startuml
skin rose
title Minitwit - Components
package viasat.platform.cloud <<Frame>> {
class ConfigService
class HostService
@marcellodesales
marcellodesales / ${HOME}_.aws_credentials
Last active July 13, 2022 05:16
How to use docker's secret with build mount without storing secrets from `${HOME}/.aws/credentials` bound to a profile. Docker will use the secret and mount it during the build, but it won't cache it inside the image. Instructions at https://github.com/moby/buildkit/blob/master/frontend/dockerfile/docs/syntax.md#example-access-to-s3
[marcellodesales-aws]
aws_access_key_id = AKIA*******F37A
aws_secret_access_key = sfZ*****w5m
@marcellodesales
marcellodesales / MarcellosHashMap.java
Last active April 30, 2022 15:21
Simple HashMap implementation during interviews, without key-collision
/*
* Click `Run` to execute the snippet below!
*/
import java.io.*;
import java.util.*;
/*
* To execute Java, please define "static void main" on a class
* named Solution.
@marcellodesales
marcellodesales / haskell-at-google.md
Last active April 20, 2022 23:47
Training sessions from Google and EMURGO in preparation to writing Smart Contracts in the Cardano Blockchain
@marcellodesales
marcellodesales / keybase.md
Created January 7, 2022 22:29
This is me, keybase... If it's not, it's not me..

Keybase proof

I hereby claim:

  • I am marcellodesales on github.
  • I am marcellodesales (https://keybase.io/marcellodesales) on keybase.
  • I have a public key ASAqYYeRDlZvJQiOFkeC8N5XjpoYE100OSztytrHUuzzXQo

To claim this, I am signing this object:

@marcellodesales
marcellodesales / keybase-gpg-github-gitlab-prompt.md
Last active May 25, 2024 19:31 — forked from jplew/README.md
How to Setup SSH and GPG keys with Gitlab

Set up Keybase.io, GPG & Git to sign commits on Github, Gitlab

This is a step-by-step guide on how to create a GPG key on keybase.io, adding it to a local GPG setup and use it with Git and Gitlab.

Requirements

  • MacOS: Use homebrew
  • Linux: Use apt-get, apk, etc
  • Windows: Get a better life, replace the entire OS with MacOS or Linux
@marcellodesales
marcellodesales / gitconfig
Created December 4, 2021 01:15
Gitconfig save as ~/.gitconfig
[user]
name = Marcello de Sales
email = [email protected]
[alias]
lol = log --pretty=oneline --abbrev-commit --graph --decorate
lg = log --color --graph --pretty=format:'%C(yellow)%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
new = !sh -c 'git log $1@{1}..$1@{0} "$@"'
reflog = gitk --all --date-order $(git log -g --pretty=%H)
#lostfound = gitk --all --date-order $(git fsck | grep "dangling commit" | awk '{print $3;}')
lostfound = !sh -c "git fsck | awk {print $3;}"
@marcellodesales
marcellodesales / LargestAscendingSubArraySum.java
Last active November 22, 2021 18:05
Solution to the problem of the longest subarray sum... That is, the two ascending... Executable version: https://onlinegdb.com/jYaDXgI5T More information at https://leetcode.com/problems/maximum-ascending-subarray-sum/
/**
* @author [email protected]
*
* Solution to the problem of the longest subarray sum... That is, the two ascending arrays
* [10,20,30,5,10,50] = 65 [5,10,50]
* [12,17,15,13,10,11,12] = 33. [10,11,12]
**/
public class Main {
public static void main(String[] args) {