Skip to content

Instantly share code, notes, and snippets.

View enieber's full-sized avatar
🚧
decentralizing the world

Enieber Cunha enieber

🚧
decentralizing the world
View GitHub Profile
@rafnixg
rafnixg / odoo_wrapper.py
Created March 31, 2023 02:39
Odoo shell enviroment wrapper for executre custom code
import sys
def execute_script(env, script_path):
# Importa el archivo de script como un modulo
import importlib.util
spec = importlib.util.spec_from_file_location("module.name", script_path)
script_module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(script_module)
# Ejecuta la función 'run' del modulo importado
@FreddieOliveira
FreddieOliveira / docker.md
Last active July 8, 2024 04:33
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@mtotowamkwe
mtotowamkwe / alpine_linux_with_sqlite_docker_image.md
Created December 27, 2020 04:43
How to build an Alpine Linux docker image with an instance of SQLite installed using a Dockerfile.

Building docker images with Dockerfiles.

To build an alpine linux docker image with sqlite.

  • Create a directory.
  • In the directory above create a Dockerfile.
  • Add the desired commands in the Dockerfile.

Following are the commands in the Dockerfile.

@kennethnwc
kennethnwc / .dockerignore
Last active May 18, 2024 05:08
My docker-compose with nextjs and nginx
.next/
node_modules/
Dockerfile
yarn-error.log
.dockerignore
.git
.gitignore
#! /bin/sh
## Requirements
## - esy
## - brew install nodejs
## - brew install coreutils
## Full Xcode installed
## look for /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk
git clone https://github.com/EduardoRFS/reason-mobile.git
@akitaonrails
akitaonrails / links.md
Created November 6, 2019 01:28
Links de referência pro Episódio 66 do Canal Akitando
@rumansaleem
rumansaleem / clean-up-arch-linux.md
Created May 28, 2019 08:51
Instructions to clean up Arch Linux (Manjaro)

Contents

  • Clean pkg cache
  • Remove unused packages (orphans)
  • Clean cache in /home
  • remove old config files
  • Find and Remove
    • duplicates
    • empty files
    • empty directories
  • broken symlinks
@ksmithut
ksmithut / .dockerignore
Last active June 2, 2024 21:43
Node Docker Compose nodemon
node_modules
@mbeaudru
mbeaudru / Checkbox.js
Created March 22, 2017 09:06
Checkbox with styled-components
import React, { Component, PropTypes } from 'react';
import styled from 'styled-components';
class Checkbox extends Component {
render() {
return (
<Styled
onClick={() => this.props.onChange(!this.props.checked)}
>
<input