Skip to content

Instantly share code, notes, and snippets.

View joepreludian's full-sized avatar
🛰️
Working from home

Jonhnatha Trigueiro joepreludian

🛰️
Working from home
View GitHub Profile
@joepreludian
joepreludian / docker-compose.yml
Created June 19, 2022 14:19
Create a docker-compose file with blackd service
version: "3.9"
services:
blackd:
restart: always
image: docker.io/pyfound/black
command: blackd --bind-host 0.0.0.0 --bind-port 45484
ports:
- "45484:45484"
@joepreludian
joepreludian / 00-keyboard.conf
Created January 18, 2022 01:46
/etc/X11/xorg.conf.d/00-keyboard.conf - SWAP Caps lock with ESC on Xorg
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "br"
Option "XkbOptions" "caps:swapescape"
EndSection
@joepreludian
joepreludian / .bashrc
Created November 24, 2021 14:39
Pyenv install notes =)
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init --path)"
eval "$(pyenv virtualenv-init -)"
@joepreludian
joepreludian / minikube.service
Created October 31, 2021 15:46
Create minikube starting automatically from systemd enabled systems
[Unit]
Description=Kickoff Minikube Cluster
After=docker.service
[Service]
Type=oneshot
ExecStart=/usr/local/bin/minikube start
RemainAfterExit=true
ExecStop=/usr/local/bin/minikube stop
StandardOutput=journal
@joepreludian
joepreludian / mirrorlist
Created September 27, 2021 14:08
my mirror list - manjaro
##
## Manjaro Linux default mirrorlist
## Generated on 2021-09-16 11:44
##
## Please use 'pacman-mirrors -f [NUMBER] [NUMBER]' to modify mirrorlist
## (Use 0 for all mirrors)
##
## Country : South_Korea
Server = https://mirror.d-tl.com/manjaro/testing/$repo/$arch
@joepreludian
joepreludian / create_setup.py
Last active September 3, 2021 20:44 — forked from adamghill/create_setup.py
Convert pyproject.toml to setup.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# @Author: José Sánchez-Gallego (gallegoj@uw.edu); Jonhnatha Trigueiro (joepreludian@gmail.com)
# @Date: 2019-12-18
# @Filename: create_setup.py
# @License: BSD 3-clause (http://www.opensource.org/licenses/BSD-3-Clause)
# https://github.com/sdss/flicamera/blob/master/create_setup.py
# This is a temporary solution for the fact that pip install . fails with
@joepreludian
joepreludian / karabiner.json
Created July 15, 2021 16:07
My Karabiner configuration file with support to Logitech MX Master 3 mouse
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"parameters": {
# In order to add your repository, change my_pypi for whatever you want
$ poetry config repositories.my_pypi http://localhost:8010/
# Creating a default credential
$ poetry config http-basic.my_pypi <the_user_you_created> <your_password>
# In order to publish your package, just run this
$ poetry publish --repository my_pypi --build
@joepreludian
joepreludian / start.sh
Created May 28, 2020 02:49
OCR Development
#!/bin/bash
which podman 2> /dev/null
if [ $? -eq 0 ]; then
CONTAINER_APP="podman";
else
CONTAINER_APP="docker";
fi
@joepreludian
joepreludian / gist:e0710d96a2536c76cfc6c23bed82917f
Last active March 20, 2020 20:27
Como instalar o R no linux

Instalar dependencias de desenvolvimento do R-Studio

$ sudo dnf install R-devel;

Coloque a sua senha e depois tente instalar as coisas no seu R, normalmente.