Skip to content

Instantly share code, notes, and snippets.

View pinei's full-sized avatar
🏠
Working from home

Pìnei pinei

🏠
Working from home
  • Petrobras
  • Rio de Janeiro, Brazil
View GitHub Profile
@pinei
pinei / Order By Year Desc
Created September 26, 2021 19:59
Software Architecture Books
The Software Architect Elevator (2020)
Architecting for Scale (2020)
Fundamentals of Software Architecture (2020)
The Unicorn Project (2019)
Semantic Software Design (2019)
The Pragmatic Programmer (2019)
Technology Strategy Patterns (2018)
Refactoring (2018)
Release It (2018)
The Model Thinker (2018)
@pinei
pinei / zipup.vbs
Created October 12, 2021 04:40
Zip a folder with Windows command-line or .bat
Set fso = CreateObject("Scripting.FileSystemObject")
InputFolder = fso.GetAbsolutePathName(WScript.Arguments.Item(0))
ZipFile = fso.GetAbsolutePathName(WScript.Arguments.Item(1))
' Create empty ZIP file.
CreateObject("Scripting.FileSystemObject").CreateTextFile(ZipFile, True).Write "PK" & Chr(5) & Chr(6) & String(18, vbNullChar)
Set objShell = CreateObject("Shell.Application")
Set source = objShell.NameSpace(InputFolder).Items
objShell.NameSpace(ZipFile).CopyHere(source)
@pinei
pinei / README.md
Created May 4, 2022 14:22
Git SSH over Proxy (Windows)

Create ~/.ssh/config (notepad %home%\.ssh\config)

ProxyCommand "C:\Program Files\Git\bin\connect.exe" -H <proxy-server>:<proxy-http-port> %h %p

Host 127.0.0.1
  HostName 127.0.0.1
  User <username>

Host github.com
@pinei
pinei / 0. README.md
Last active June 24, 2022 23:23
Databricks PySpark Utilities

Methods for DataFrames manipulation

@pinei
pinei / databricks-programming-guide.md
Last active July 27, 2022 13:12 — forked from ravila4/databricks-programming-guide.md
Databricks Programming Guidance

Databricks Programming Guidance

This document contains lessons learned with regard to Databricks programming, but also contains some best practices

Mapping to a Azure Data Lake Generation 2

blobname = "miraw"  
storageaccount = "rdmidlgen2"  
mountname = "/rdmi"

configs = {"fs.azure.account.auth.type": "OAuth",

@pinei
pinei / custom.css
Last active November 22, 2022 01:47
Obsidian Simple Custom CSS
/* Headers - Color */
.cm-header-1, .markdown-source-view h1
{
color: #FFFF00;
}
.cm-header-2, .markdown-source-view h2
{
color: #FFEA00;
@pinei
pinei / promise_tests.js
Created January 19, 2023 03:50
Promise with Javascript
const work = async (id) => new Promise((resolve, reject) => {
setTimeout(() => {
console.log(`${(new Date()).toISOString()}: ${id}`)
resolve()
}, 1000)
});
async function test1() {
// parallel
@pinei
pinei / bluesky_tools.md
Last active February 16, 2024 19:41
Bluesky tools

Active

  • SkyFeed - Web client with custom feed builder
  • Bluesky Feeds - Powerful custom feed builder (by @anianimals.moe)
  • Bluesky Feed Creator - Define your feeds using simple hashtag, emoji or word searches.
  • bsky.jazco.dev - Atlas - Engagement and interation social graph
  • t.ly/p5mYp - Atlas 3D alternative published at Code Pen (fetch from s3.jazco.io)
  • Bluesky Statistics - Top lists and stats
  • Twexit.nl - Experimental web app for the Bluesky social media platform (lot of features)
  • wolfgang.raios.xyz - Interactions, charts, and top lists (portuguese)
@pinei
pinei / README.md
Created December 4, 2023 23:37
Bluesky Firehose Python

Bluesky Firehose

Usa o websocket do Bluesky para captura de posts em realtime

Cada post pode ser texto puro, resposta a outro post, pode conter imagens, link externo, etc.

Ref.: https://atproto.com/specs/event-stream

Tipos atribuidos a variável 'record':

  • atproto.xrpc_client.models.app.bsky.feed.post.Main