Skip to content

Instantly share code, notes, and snippets.

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

Fábio BC Souza fabiobarboza7

🏠
Working from home
  • Globo
  • Pelotas, Brazil
View GitHub Profile
@fabiobarboza7
fabiobarboza7 / docker_full_cleanup.sh
Last active July 1, 2025 16:16
Docker Full Cleanup
#!/bin/bash
# My old version now LLM refactored... added some fancy logs...
# Enhanced Docker Cleanup Script
# This script provides comprehensive Docker environment cleanup with safety features
# Author: Enhanced version with additional cleanup targets and features
# Define style variables with color detection
if [[ -t 1 ]] && [[ "${TERM:-}" != "dumb" ]] && command -v /usr/bin/tput >/dev/null 2>&1 && /usr/bin/tput colors >/dev/null 2>&1 && [[ $(/usr/bin/tput colors) -ge 8 ]]; then
require 'net/http'
require 'uri'
require 'json'
require 'mime/types'
@body ={
"name": "Banana de Pijamas!",
"type": "variable",
"regular_price": "21.99",
"status": "publish",
@fabiobarboza7
fabiobarboza7 / refactoring.js
Created January 22, 2020 21:17
action-cable lib
Object.defineProperty(exports, '__esModule', {
value: true,
});
const React = require('react');
const PropTypes = require('prop-types');
const actioncable = require('actioncable');
const createReactClass = require('create-react-class');
const { Provider, Consumer } = React.createContext();
@fabiobarboza7
fabiobarboza7 / users.json
Last active January 8, 2020 04:55
for friend playground
[
{
"name": "Emanuelle",
"age": "27",
"gender": "FEMALE",
"info": [{
"cpf": 123321,
"rg": 543345
}]
},
import React, { useEffect, useState } from 'react';
import { View, StyleSheet, Text, PermissionsAndroid } from 'react-native';
import Geolocation from 'react-native-geolocation-service';
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: 'lightgreen',
},