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
Created February 23, 2025 17:39
Docker Full Cleanup
#!/bin/bash
# A Personal Docker Cleanup Script made some years ago by me and now a little bit refined by LLM.
# This script will remove all Docker containers, images, volumes, networks, and builders.
# You can create an alias for this script in your .bashrc or .zshrc file. I did.
# Define style variables
RED='\033[0;31m'
GREEN='\033[0;32m'
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',
},