Skip to content

Instantly share code, notes, and snippets.

View lucasrenan's full-sized avatar

Lucas Renan lucasrenan

View GitHub Profile
Behaviour
No preamble, no wrap-up, no flattery. Get into the answer. Assume for anything reversible or low-cost to redo, ask when the ambiguity changes the approach, not just the details. Note them briefly at the end only if they materially affect the answer. Push back when trade-offs are ignored, or something doesn't hold. Don't default to agreement. For decisions and analysis, give the conclusion or recommendation first, then the reasoning. When offering options, lead with a recommendation. Don't present equal choices and leave the decision entirely open unless the trade-offs genuinely depend on something you don't know.
Writing style
English, euros, metric. Short paragraphs. Structure only when it genuinely aids clarity. Prose by default, tables for comparisons, bullets for sequential steps. Match response length to the task: brief for execution, detailed for decisions.
No filler, no em dashes, no content-style hooks, no hedging. Prefer specific over general. If a sentence could apply to anything, dele
@lucasrenan
lucasrenan / aquecedor-alemanha.txt
Last active December 27, 2021 12:18
Aquecedores não funcionam na Alemanha, como resolver?
- A primeira coisa a fazer é tentar tirar o ar de dentro do radiador:
https://www.youtube.com/watch?v=5Pm_lUOhDH8
- Se não funcionar, pode-se tentar retirar o termostato e engraxar a válvula:
https://www.youtube.com/watch?v=xSMOJwNfwKo
---
- Ajustar janelas para o inverno
https://www.youtube.com/watch?v=VrGUTFVmlp8
https://www.linkedin.com/posts/lizryan_stop-asking-candidates-1-why-do-you-want-activity-6683117226645696512-ViTL
STOP ASKING CANDIDATES:
1. Why do you want to work here?
2. What's your greatest weakness?
3. What would your last boss say about you?
4. Why should we hire you?
WHY ARE THESE BAD QUESTIONS?
@lucasrenan
lucasrenan / k8s.sh
Created April 30, 2019 17:50
Kubernetes get all pods/containers resources requests/limits
kubectl get pods --all-namespaces --sort-by='.metadata.name' -o jsonpath='{.items[*].spec.containers[*].resources.limits.memory}'
kubectl get pod --all-namespaces --sort-by='.metadata.name' -o json | jq -r '[.items[] | {pod_name: .metadata.name, containers: .spec.containers[] | [ {container_name: .name, memory_requested: .resources.requests.memory, cpu_requested: .resources.requests.cpu} ] }]'
@lucasrenan
lucasrenan / barbers.txt
Last active April 18, 2019 15:42
barber shops in berlin
http://rowdy-barber.de
https://www.nomadbarber.com/pages/berlin
https://domthebarberian.resurva.com
@lucasrenan
lucasrenan / tech-job-linters.txt
Created April 2, 2019 17:44
Test tech job posts for issues with sexism, culture...
https://textio.com/
http://gender-decoder.katmatfield.com
https://joblint.org/
@lucasrenan
lucasrenan / job-interview-links.txt
Last active May 26, 2021 11:40
Interesting job interview posts
@lucasrenan
lucasrenan / find_unused_images.rake
Created November 7, 2018 13:09
Modified version of "Rake task to find unused images on a Rails project"
# Modified version of: https://gist.github.com/rafaelp/4467738
# Uses ACK 2 library and parallalel gem
task :find_unused_images do
images = Dir.glob(Rails.root.join('app/assets/images/**/*'))
puts "Images found: #{images.count}"
images_to_delete = []
Parallel.each(images, in_threads: 4) do |image|
unless File.directory?(image)
.rvmrc
config/database.yml
coverage
#db/schema.rb
public/uploads
rails_best_practices_output.html
# Logs and databases #
######################
*.log
{
"bold_folder_labels": true,
"color_scheme": "Packages/Solarized Color Scheme/Solarized (dark).sublime-color-scheme",
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
"folder_exclude_patterns":
[
".svn",
".git",
".hg",