Skip to content

Instantly share code, notes, and snippets.

View carlosqueiroz's full-sized avatar

Carlos Queiroz carlosqueiroz

  • RT MEDICAL SYSTEMS
  • Florianópolis, Santa Catarina, Brazil
View GitHub Profile
@carlosqueiroz
carlosqueiroz / SEND IMAGE TO DOCKER IMAGES.MD
Created February 15, 2022 23:48
SEND IMAGE TO DOCKER IMAGES

docker login

#Depois faz build da imagem

docker-compose build XXXX

#Colocar tag na imagem

docker tag nomedaimagem_original rtmedical/novonome

#
#--------------------------------------------------------------------------
# Image Setup
#--------------------------------------------------------------------------
#
ARG PHP_VERSION=${PHP_VERSION}
FROM php:${PHP_VERSION}-alpine
LABEL maintainer="Mahmoud Zalt <mahmoud@zalt.me>"
@carlosqueiroz
carlosqueiroz / install_CUPS_all_defaults.sh
Created July 23, 2021 01:48 — forked from aweijnitz/install_CUPS_all_defaults.sh
Installing CUPS printer on Debian and add PDF printer
#!/bin/bash
sudo apt-get -y install cups
sudo apt-get -y install cups-pdf
# add pdf printer to cups
# - named files end up in ~/PDF/
# - unnamed files are stored in /var/spool/cups-pdf/ANONYMOUS/, such as PDF:s created by streaming bytes over an API
sudo lpadmin -p cups-pdf -v cups-pdf:/ -E -P /usr/share/ppd/cups-pdf/CUPS-PDF.ppd
@carlosqueiroz
carlosqueiroz / Dockerfile
Created March 24, 2021 18:38 — forked from danielnv18/Dockerfile
Docker with php 7.0 with unixodbc, Microsoft ODBC Driver 13 for Linux and pdo_sql
FROM php:7.0.10-fpm
MAINTAINER Daniel Noyola <danielnv18@gmail.com>
# install the PHP extensions we need
RUN apt-get update && apt-get install -y locales unixodbc libgss3 odbcinst devscripts debhelper dh-exec dh-autoreconf libreadline-dev libltdl-dev unixodbc-dev wget unzip \
&& rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-install pdo \
&& echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
@carlosqueiroz
carlosqueiroz / ConectarAccess.py
Created March 24, 2021 18:38
Exemplo de CRUD com uma base de dados do MS Access
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Exemplo de CRUD com uma base de dados do MS Access.
Código funciona no Windows visto que é necessários
instalar o driver de conexão do MS Access ou ter o
Access instalado no computador.
Driver do MS Access:
Alterando resolucao:
https://superuser.com/questions/117159/failed-to-start-x-server-redhat-linux-5-3
@carlosqueiroz
carlosqueiroz / install.sh
Last active October 26, 2020 11:32
Instalation QR
#!/bin/sh
echo "Baixando Conteiners"
{ # try
docker pull safetyrad/dicomrs_storescu && docker pull safetyrad/dicomrs_storescp
} || { # catch
@carlosqueiroz
carlosqueiroz / resample_itk_image.py
Created August 9, 2020 23:11 — forked from mrajchl/resample_itk_image.py
Resampling an itk image object with SimpleITK
def resample_img(itk_image, out_spacing=[2.0, 2.0, 2.0], is_label=False):
# Resample images to 2mm spacing with SimpleITK
original_spacing = itk_image.GetSpacing()
original_size = itk_image.GetSize()
out_size = [
int(np.round(original_size[0] * (original_spacing[0] / out_spacing[0]))),
int(np.round(original_size[1] * (original_spacing[1] / out_spacing[1]))),
int(np.round(original_size[2] * (original_spacing[2] / out_spacing[2])))]
configurar
https://www.youtube.com/watch?v=iVUnXw64Ez8
/////////////
I have had this same problem the solution was edit ~/.ssh/config e put this lines:
sudo nano ~/.ssh/config
https://opus-hshn.bsz-bw.de/frontdoor/deliver/index/docId/163/file/Masterarbeit_tstein.pdf