<commit_before>#!/bin/bash

# Crontab Configuration
# <NAME> (<EMAIL>)

# This script configures the known printes
# - Alunos
# - GAPH
# - Moraes

FILE=/etc/cups/printers.conf
date=$(date +"%Y-%m-%d-%Hh%M")

# backup the original file
if [ -f ${FILE} ]; then
	cp ${FILE} ${FILE}-${date}
fi

# NECESSARIO parar o servico do cups
service cups stop 

#==============================================================================
cat > ${FILE} << END-OF-FILE

<Printer Alunos-Ricoh-Aficio-SP-5210DN-Laser>
UUID urn:uuid:d979d098-d0da-3344-6ff3-485ad85d95b0
Info Impressora Alunos 7o andar, Sala 713
Location sala 713
DeviceURI socket://10.32.175.24:9100
PPDTimeStamp *
State Idle
StateTime 1423669765
Type 8425684
Accepting Yes
Shared Yes
ColorManaged Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job
Option media 0
Option media-col media-bottom-margin
Option output-bin 0
Option print-color-mode monochrome
Option print-quality 5
Option sides two-sided-long-edge
</Printer>

<Printer GAPH-HP-Laser-Jet-4250>
UUID urn:uuid:dc69c1d0-2601-3144-4c41-6aa786d5abb1
Info Impressora do GAPH HP LaserJet 4250
Location Sala 727
DeviceURI ipp://10.32.162.55:631/printers/GAPH-HP-Laser-Jet-4250
PPDTimeStamp *
State Idle
StateTime 1421869052
Type 6
Accepting Yes
Shared No
ColorManaged Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job
Option cups-browsed true
</Printer>

<Printer Moraes-HP-Deskjet-5520>
UUID urn:uuid:23af4dd8-198d-3f34-52df-23e916f3a60b
Info HP Deskjet 5520 (Moraes)
Location Sala do Moraes
DeviceURI socket://10.32.175.187:9100
PPDTimeStamp *
State Idle
StateTime 1412885339
Type 36892<commit_msg>Atualizando a impressora do GAPH<commit_after>#!/bin/bash

# Crontab Configuration
# <NAME> (<EMAIL>)

# This script configures the known printes
# - Alunos
# - GAPH
# - Moraes

FILE=/etc/cups/printers.conf
date=$(date +"%Y-%m-%d-%Hh%M")

# backup the original file
if [ -f ${FILE} ]; then
	cp ${FILE} ${FILE}-${date}
fi

# NECESSARIO parar o servico do cups
service cups stop 

#==============================================================================
cat > ${FILE} << END-OF-FILE

<Printer Alunos-Ricoh-Aficio-SP-5210DN-Laser>
UUID urn:uuid:d979d098-d0da-3344-6ff3-485ad85d95b0
Info Impressora Alunos 7o andar, Sala 713
Location sala 713
DeviceURI socket://10.32.175.24:9100
PPDTimeStamp *
State Idle
StateTime 1423669765
Type 8425684
Accepting Yes
Shared Yes
ColorManaged Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job
Option media 0
Option media-col media-bottom-margin
Option output-bin 0
Option print-color-mode monochrome
Option print-quality 5
Option sides two-sided-long-edge
</Printer>

<DefaultPrinter HP-LaserJet-4250>
UUID urn:uuid:2d75136e-14da-30cc-5f7d-ec6d4090e293
Info HP LaserJet 4250
Location 10.32.162.89
DeviceURI socket://10.32.162.89:9100
PPDTimeStamp *
State Idle
StateTime 1423769357
Reason opc-life-over-warning
Type 8425684
Accepting Yes
Shared Yes
ColorManaged Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job
Attribute marker-colors none,none
Attribute marker-levels -1,0
Attribute marker-names Black Cartridge HP Q5942A,Maintenance Kit HP 110V-Q5421A, 220V-Q5422A
Attribute marker-types toner-cartridge,fuser
Attribute marker-change-time 1423769357
</Printer>

<Printer Moraes-HP-Deskjet-5520>
UUID urn:uuid:23af4dd8-198d-3f34-52df-23e916f3a60b
Info HP Deskjet 5520 (Moraes)
Location Sala do Moraes
DeviceURI socket://10.32.175.187:9100
PPDTimeStamp *
State Idle
StateTime 1412885339
Type 36892
{'fraction_non_alphanumeric': 0.13322323148912743, 'fraction_numerical': 0.11340489953206716, 'mean_word_length': 5.276338514680484, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 7, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6481284', 'n_tokens_mistral': 1628, 'n_tokens_neox': 1347, 'n_words': 360}