Skip to content

Instantly share code, notes, and snippets.

View saitodisse's full-sized avatar

Julio M Saito saitodisse

  • Linx
  • São Paulo, Brasil
  • 03:38 (UTC -03:00)
View GitHub Profile
@infoslack
infoslack / sumario.md
Last active December 2, 2015 11:22
Livro de Docker
  1. Introdução
  • O que é Docker ?
  • O que diferencia um container de uma máquina virtual ?
  • O que são Namespaces ?
  • Para que serve o Cgroups ?
  • O que é Union file systems ?
  1. Explorando o Docker
  • Instalação
  • Hello, Docker!
@Obooman
Obooman / UploadImage.js
Created May 16, 2016 05:27
react-native bulit-in tool for image upload
export function postData (url, params, fileURL) {
let data = new FormData()
if (fileURL) {
data.append('image', {uri: fileURL, name: 'image.jpg', type: 'image/jpg'})
}
_.each(params, (value, key) => {
if (value instanceof Date) {
data.append(key, value.toISOString())
} else {
data.append(key, String(value))
@gilyes
gilyes / Backup, restore postgres in docker container
Last active October 4, 2025 11:26
Backup/restore postgres in docker container
Backup:
docker exec -t -u postgres your-db-container pg_dumpall -c > dump_`date +%d-%m-%Y"_"%H_%M_%S`.sql
Restore:
cat your_dump.sql | docker exec -i your-db-container psql -Upostgres
@mihow
mihow / load_dotenv.sh
Last active January 11, 2026 05:16
Load environment variables from dotenv / .env file in Bash
# The initial version
if [ ! -f .env ]
then
export $(cat .env | xargs)
fi
# My favorite from the comments. Thanks @richarddewit & others!
set -a && source .env && set +a
@saitodisse
saitodisse / android-apps.md
Last active January 26, 2017 04:00
android-app-list