Skip to content

Instantly share code, notes, and snippets.

View rodrigosdo's full-sized avatar
🏠

Rodrigo Oliveira rodrigosdo

🏠
  • Rio de Janeiro, Brasil
  • 04:45 (UTC -03:00)
View GitHub Profile
@rodrigosdo
rodrigosdo / standard.sh
Created March 31, 2020 22:14 — forked from hfossli/standard.sh
Standard bash script format
#!/bin/bash
CLEAR='\033[0m'
RED='\033[0;31m'
function usage() {
if [ -n "$1" ]; then
echo -e "${RED}👉 $1${CLEAR}\n";
fi
echo "Usage: $0 [-n number-of-people] [-s section-id] [-c cache-file]"
Estamos buscando um Desenvolvedor que seja movido a desafios e que saiba trabalhar em equipe!
Front? Back? Full Stack? Queremos conhecer gente boa, que goste de colocar a mão na massa, tenha o CPF responsável e queira fazer história! \o/
Confira algumas competências necessárias:
Escrever e manter códigos legíveis, testáveis e facilmente extensíveis;
Construir testes automatizados (unitários, integração e funcionais);
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rodrigosdo
rodrigosdo / iterm2-solarized.md
Created August 25, 2017 05:14 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)

Default

Default

Powerlevel9k

Powerlevel9k

Database
[ ] Use encryption for data identifying users and any sensitive data like access tokens, email addresses or billing details.
[ ] If your database supports low cost encryption at rest (like AWS Aurora), then enable that to secure data on disk. Make sure all backups are stored encrypted as well.
[ ] Use minimal privilege for the database access user account. Don’t use the database root account.
[ ] Store and distribute secrets using a key store designed for the purpose. Don’t hard code in your applications.
[ ] Fully prevent SQL injection by only using SQL prepared statements. For example: if using NPM, don’t use npm-mysql, use npm-mysql2 which supports prepared statements.
Development
[ ] Ensure that all components of your software are scanned for vulnerabilities for every version pushed to production. This means O/S, libraries and packages. This should be automated into the CI-CD process.
[ ] Secure development systems with equal vigilance to what you use for production systems. Build the software fr
#!/usr/bin/ruby
# Create display override file to force Mac OS X to use RGB mode for Display
# see http://embdev.net/topic/284710
require 'base64'
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay`
edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten
vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten
@rodrigosdo
rodrigosdo / README.md
Created October 18, 2016 16:21 — forked from vicainelli/README.md
10 livros que todo mundo deveria ler - by Murilo Gun

10 livros que todo mundo deveria ler

by Murilo Gun

  1. Abundancia - O futuro é melhor do que você imagina | Steven Kotler e Peter H. Diamandis
  2. VLEF - Vai lá e faz
  3. A Startup Enxuta - Como Os Empreendedores Atuais Utilizam a Inovação
  4. Marketing e Comunicação da Era Pós-Digital - As Regras Mudaram | Walter Longo
  5. De Onde Vem as Boas Ideias | Steven Johnson
  6. Steve Jobs - A Biografia | Walter Isaacson
@rodrigosdo
rodrigosdo / package.json
Created May 18, 2016 14:32 — forked from addyosmani/package.json
npm run-scripts boilerplate
{
"name": "my-app",
"version": "1.0.0",
"description": "My test app",
"main": "src/js/index.js",
"scripts": {
"jshint:dist": "jshint src/js/*.js'",
"jshint": "npm run jshint:dist",
"jscs": "jscs src/*.js",
"browserify": "browserify -s Validating -o ./dist/js/build.js ./lib/index.js",
@rodrigosdo
rodrigosdo / gitkeep
Last active August 29, 2015 14:26 — forked from simoncoulton/gitkeep
Create empty gitkeep files in directories that are empty
find . -type d -empty -exec touch {}/.gitkeep \;
BIN = ./node_modules/.bin
SRC = $(wildcard src/*.coffee)
LIB = $(SRC:src/%.coffee=lib/%.js)
build: $(LIB)
lib/%.js: src/%.coffee
@mkdir -p $(@D)
@$(BIN)/coffee -bcp $< > $@