Skip to content

Instantly share code, notes, and snippets.

View felipepodesta's full-sized avatar
👨‍💻
Stairway To Heaven

Felipe Podestá felipepodesta

👨‍💻
Stairway To Heaven
View GitHub Profile
@felipepodesta
felipepodesta / toTitleCasePT.R
Created January 18, 2024 17:33 — forked from jjesusfilho/toTitleCasePT.R
Converts Portuguese strings to Title Case
#' Convertion to title case with lower case for some classes of words.
#'
#' In written Portuguese, when converting to title case, it is not usual
#' to keep in title case some words, like prepositions, conjunctions,
#' articles and some kinds of pronouns. This functions locates those
#' cases and converts them to lower case.
#'
#' @param string vector of characters to be converted to title case
#' but with connector words (one-word prepositions and conjunctions)
#' and articles (both definite and indefinite) and some pronouns
@felipepodesta
felipepodesta / readme.md
Created November 17, 2022 11:35 — forked from Rofram/readme.md
Android Command line tools in linux

The latest version of cmdline tools (7302050_latest) seems to have a different directory structure. The folder is now called cmdline-tools instead of tools so when you extract the folder it won't work as expected. sdkmanager also seems to expect to want to be in ${ANDROID_HOME}/cmdline-tools/latest/bin but extracting it in ANDROID_HOME will just give you ${ANDROID_HOME}/cmdline-tools/bin...

So it looks like unzipping the newest version to ${ANDROID_HOME}/cmdline-tools/cmdline-tools will fix this, and remove the need to run sdkmanager --sdk_root.... Easiest way might just be to mkdir -p Android/cmdline-tools and unzip to there & rename the second cmdline-tools to latest

Not sure how this whole forking gists thing is supposed to work but here are the changes I used: https://gist.github.com/jason-s-yu/30375db45c1f71c1259e042d216e4bd3

Go to https://developer.android.com/studio?hl=PL

wget https://dl.google.com/android/repository/commandlinetools-linux-7302050_latest.zip
@felipepodesta
felipepodesta / console.ts
Created August 18, 2022 06:00 — forked from royshouvik/console.ts
Nestjs REPL
import 'dotenv/config';
import { NestFactory } from '@nestjs/core';
import * as repl from 'repl';
import * as Logger from 'purdy';
const LOGGER_OPTIONS = {
indent: 2,
depth: 1,
};
@felipepodesta
felipepodesta / personal-investment.md
Created July 6, 2022 01:28 — forked from biantris/personal-investment.md
personal investment by sseraphini discord server

(personal investiment thread)

Ítalo S. : Melhores investimentos que você fez em você?

sibelius :

  • books
  • community
  • crossfit
  • learn in public
  • sharing knowledge in public
@felipepodesta
felipepodesta / wait-for-assertion.spec.ts
Created June 1, 2022 13:41 — forked from VinceOPS/wait-for-assertion.spec.ts
Nest: testing (E2E) asynchronous side-effects with Jest and RxJs
import { TimeoutError } from 'rxjs';
import { waitForAssertion } from './wait-for-assertion';
describe('waitForAssertion', () => {
let mockWitness: jest.Mock;
beforeEach(() => {
mockWitness = jest.fn().mockReturnValue(false);
});
@felipepodesta
felipepodesta / info.sh
Created March 23, 2022 02:59 — forked from kiritofeng/info.sh
A script to print system information.
#!/usr/bin/env bash
#
# Created by Dylan Araps, modified by Roger Fu
# Copyright (c) 2016-2017 Dylan Araps
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the 'Software'), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# Poll for various system stats for monitoring system
# Just copy and paste the commands into a bash prompt
# Use Ctrl-C to exit the polling
# Simple Example (CPU/Load/Memory)
# Settings
INTERVAL_DURATION="5" # seconds to average across
TIME_PAD=' '
@felipepodesta
felipepodesta / linux-explorer.sh
Created March 19, 2022 03:03 — forked from chrisfu/linux-explorer.sh
Linux Explorer system information script
#!/bin/bash
##############################################################################
#
#
# FILE : linux-explorer.sh
# Last Change Date : 04-07-2016
# Author(s) : Joe Santoro
# Date Started : 15th April, 2004
# Email : linuxexplo [ at ] unix-consultants.com
# Web : http://www.unix-consultants.com/examples/scripts/linux/linux-explorer
@felipepodesta
felipepodesta / vue-nuxt-reference-guide.md
Created March 11, 2022 05:43 — forked from CMQNordic/vue-nuxt-reference-guide.md
Vue & Nuxt | Quickly refresh your skills | Written by Martin Czerwinski @ CMQ Nordic

Reference Guide - Vue & Nuxt

This document helps you to refresh your Vue skills and can also be used for quick look-ups. This reference guide was written with love and broken english, for myself, by myself as notes for myself, educational purposes and just for for fun.

(This document is not fully finished still work in progress)

Written by Martin Czerwinski ®CMQ Nordic AB | Feb 2021

@felipepodesta
felipepodesta / Vue3.md
Created March 11, 2022 05:43 — forked from harshadsatra/Vue3.md
Vue3 related lists