Skip to content

Instantly share code, notes, and snippets.

View AndyDaSilva52's full-sized avatar
🎯
Focusing

Anderson da Silva AndyDaSilva52

🎯
Focusing
View GitHub Profile
@shanselman
shanselman / ohmyposhv3-v2.json
Last active April 18, 2024 22:35
ohmyposhv3-v2
{
"final_space": true,
"console_title": true,
"console_title_style": "folder",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"horizontal_offset": 0,
"vertical_offset": 0,
@sivinnguyen
sivinnguyen / wsl2_200915_fix_dns_resolution.md
Last active April 12, 2024 07:30
Fix DNS resolution in WSL2

Error

$ sudo apt-get update
Err:1 http://archive.ubuntu.com/ubuntu focal InRelease
Temporary failure in name rerolution

$ host google.com
;; connection timed out; no servers could be reached
@felipe-ssilva
felipe-ssilva / padrao-de-commit.md
Last active March 10, 2022 21:46
export default 'padrao-de-commit' 👩‍💻

😉 Yes, we can! And we must!

Antes de mais nada: todo o trabalho precisa ser "commitado". Sem mais, nem menos. Esse é o primeiro passo.

♻️ Siga os padrões, amiguinho.

Não reinvente a roda e não seja rebelde. Se o projeto que você começou a trabalhar, já tem um padrão definido e que atende a necessidade, não há razão para mudanças drásticas. Se o projeto já tem tempos de vivência, significa que o padrão atual já dá conta do recado (ou ao menos deveria).

🚀 Ao infinito e além!

O ideal para manter o código bem versionado é, para cada mudança, um commit. Seja adição de nova funcionalidade, correção de bug ou até remoção de uma funcionalidade antiga. Isso nos dá a facilidade de usar uma das principais funcionalidades do versionamento: retroceder ao código antes do commit indicado.

Commit

@rupakg
rupakg / api-platform-matrix.md
Last active June 24, 2022 00:03
API platforms comparison table
Platform Design Code Gen. Docs Testing Management
3Scale Supports Swagger None ActiveDocs (Swagger compliant) Developer Portal Security, Analytics, Monetization, Dashboard, Traffic Mgmt.
Akana Graphical Designer. Supports Swagger, RAML, WADL, WSDL Build Code Document Developer Portal API Gateway, Security, Analytics, Orchestration, Transformation, Traffic Mgmt.
Apigee Edge UI. Supports OpenAPI Specs None Developer Portal Developer Portal API Gateway, Security, Analytics, Monetization, Orchestration, Transformation, Traffic Mgmt., API Proxy Editor
Boomi Mediate None
@AndyDaSilva52
AndyDaSilva52 / VBAOutlookCreateFoldersSubfolders.bas
Last active February 6, 2018 15:47
Create Folders and Subfolders in Outlook Folder Structure - Choose a Origim Folder and Create the same Subfolders in the Destination
Sub CreateFolders()
Dim olNS As NameSpace
Dim olFolder As Folder
Dim OlNewFolder As Folder
Dim olNewFolders As Folders
Dim olItems As Items
Dim olItem As MailItem
Dim strName As String
Dim i As Long
@ozmoroz
ozmoroz / schema_table_size.sql
Created January 1, 2018 10:53
Show sizes of all tables in an Oracle schema
-- Find the size of all tables in an Oracle schema
-- Script by Sergey Stadnik, http://ozmoroz.com
-- Licensed under CC BY with attribution required
-- Based on Stackoverflow.com discussion
-- http://stackoverflow.com/questions/264914/how-do-i-calculate-tables-size-in-oracle
DEFINE schema_name = 'replace_with_your_schema_name'
SELECT * FROM (
SELECT
@rponte
rponte / split-string-by-token.sql
Last active March 3, 2022 14:13
Oracle PLSQL - splitting string by token using regexp_substr() function
--
-- splitting as columns
--
select regexp_substr('a-b-c', '[^-]+', 1, 1) as grupo_1
,regexp_substr('a-b-c', '[^-]+', 1, 2) as grupo_2
,regexp_substr('a-b-c', '[^-]+', 1, 3) as grupo_3
from dual;
-- result:
-- a b c
@jherax
jherax / filterArray.js
Last active February 23, 2024 12:59
Filters an array of objects with multiple match-criteria.
/**
* Filters an array of objects using custom predicates.
*
* @param {Array} array: the array to filter
* @param {Object} filters: an object with the filter criteria
* @return {Array}
*/
function filterArray(array, filters) {
const filterKeys = Object.keys(filters);
return array.filter(item => {
@matagus
matagus / APIs-webliography.md
Last active June 24, 2022 00:03
Links to posts, talks and slides talking about API design, arquitecture, testing, tools, etc
@anupdhml
anupdhml / lastfm_to_gmusic.py
Last active November 16, 2017 06:01 — forked from Timmmm/lastfm_to_gmusic.py
Lastfm loved tracks/playlist to Google Music playlist, either with songs from your library or from all access. Order of songs in lastfm is preserved and can export/load them from a json file.
#!/usr/bin/env python
# Lastfm loved tracks/playlist to Google Music playlist, either with songs from your library or from all access
# Order of songs in lastfm is preserved.
# First export the lastfm data in a json file, and then import it into Google Music
# You can edit the intermediate json file if you wish.
#
# Based on this script.
# https://gist.github.com/Timmmm/6572592
#