Skip to content

Instantly share code, notes, and snippets.


Bruno Lemos brunolemos

View GitHub Profile
brunolemos / linkedin-unfollow-everyone.js
Last active Oct 22, 2020
Unfollow everyone on Linkedin
View linkedin-unfollow-everyone.js
(() => {
let count = 0;
function getAllButtons() {
return document.querySelectorAll('') || [];
async function unfollowAll() {
const buttons = getAllButtons();

[WIP]Juliana Dias Rules

Algumas frases com pensamentos que me guiam no desenvolvimento de software

1 - Se está difícil, provavelmente tem algo errado, o código deveria ser mais fácil de codificado e lido.
2 - Você é seu melhor termômetro, se algo não te agrada é provável que precise refatorar, tal qual o item 1.
3 - Se o erro não faz sentido, provavelmente é algum typo, refaça todos os passos com bastante atenção.
4 - Tenha preferência em fazer funcionar com um código com a maior qualidade possível dentro do prazo dado, tendo feito um código que funcione, refatore (siga o TDD e o Make it works, Make it Beauty).
5 - É tudo sobre responsabilidades, clareza e objetividade, isso é orientação a objetos, isso é SOLID.
6 - Testes foram feitos para quebrar, isso é que te dá segurança sobre o que você está desenvolvendo. Se o teste não falha com a sua alteração no código, pode ser que o teste não esteja testando o que deve.
7 ...

View remove_unsupported_libraries.rb
# In order to use the same PodFile with MacOS, we need to unlink the libraries that do not support Catalyst, filter
# files in native targets build phases, filter dependencies and make sure the unsupported frameworks along with their
# their bundle resources are not included in the final archive. For that, we use `platform_filter` to specify 'ios' and
# 'OTHER_LDFLAGS[sdk=iphone*]' to link those libraries for iPhone and iPad. Besides, we modify "*" and
# "*" to skip installation for architecture x86_64.
# *Notice*: 'sdk=iphone*' excludes macOS, even though Catalyst is compiled with iOS SDK.
View console-function-names.js
const bypass = [
// function names to avoid logging
const collapsed = [
// function names to groupCollapsed
module.exports = function(babel) {
const { types: t } = babel;
const wrapFunctionBody = babel.template(`{
View PostVirtualizedComments.tsx
import {
} from "react-native";
import {Font, Space} from "../atoms";
erquhart / selection-command.js
Last active Sep 30, 2020
Text selection commands for
View selection-command.js
* Credits
* @Bkucera:
* @Phrogz:
* Usage
* ```
* // Types "foo" and then selects "fo"
* cy.get('input')
* .type('foo')
dominictarr /
Created Nov 26, 2018
statement on event-stream compromise

Hey everyone - this is not just a one off thing, there are likely to be many other modules in your dependency trees that are now a burden to their authors. I didn't create this code for altruistic motivations, I created it for fun. I was learning, and learning is fun. I gave it away because it was easy to do so, and because sharing helps learning too. I think most of the small modules on npm were created for reasons like this. However, that was a long time ago. I've since moved on from this module and moved on from that thing too and in the process of moving on from that as well. I've written way better modules than this, the internet just hasn't fully caught up.


otherwise why would he hand over a popular package to a stranger?

If it's not fun anymore, you get literally nothing from maintaining a popular package.

One time, I was working as a dishwasher in a restu

# Darkify Slack on Mac OS or Linux.
# curl | sh
if [ "`uname -s`" = "Darwin" ]; then
clodal /
Last active Apr 17, 2020
Describes how to verify a Zeit Now domain with AWS SES for email sending

How to setup AWS SES with Zeit Now

  1. Domain Verification Record
now dns add <NAKED_DOMAIN> _amazonses TXT <VALUE>
  1. DKIM Record Set
now dns add <NAKED_DOMAIN> <KEY_1>._domainkey CNAME <VALUE_1>
bvaughn /
Last active Oct 19, 2020
How to use profiling in production mode for react-dom
You can’t perform that action at this time.