HP LaserJet 1300 в Linux
Принтер HP LaserJet 1300 в Linux, иногда ведёт себя странно и уходит в режим паузы, т.ч постоянно нужно делать принтер "Разрешённым".
Я решил написать небольшой скрипт, который будет каждою минуту будет заниматься мониторингом состояния принтера и в зависимости от значения выполнять определённые действия:
- Пишем скрипт
#!/usr/bin/python
import cups
import time
printer_name='HP-LaserJet' #Имя вашего принтера
printer=cups.Connection()
while 1:
if printer.getPrinters()[printer_name]['printer-state-message']=='Paused':
printer.cancelAllJobs('') #Отменяем все задания печати
printer.enablePrinter(printer_name) #"Разрешаем" принтер
time.sleep(60) # Тайм аут 1 мин.
- Сохраняем его как return_cups
- Делаем исполняемым:
chmod +x return_cups
- Копируем в /usr/bin:
sudo cp return_cups /usr/bin
- Добавляем в автозагрузку
- Перезагружаемся
30 октября 2025 / 19:00
best 10 online pharmacies
6 ноября 2025 / 20:41
online canadian pharmacy with prescription
16 ноября 2025 / 19:20
best canadian pharcharmy online
9 декабря 2025 / 11:54
I don’t often bother with long texts, but today I felt like sharing a small story about a lucky run at an online casino.
I’ve been playing for a while at [url=https://nllalabet.com/]nllalabet.com[/url], mostly on weekends and with a small bankroll. I joined because the first deposit bonus looked pretty good and the terms seemed not too bad compared to many other online casinos. The registration process was pretty simple: name and email and simple email verification, then I was good to go.
For my first deposit I didn’t go crazy and added a small amount into my balance. I went straight to the slots section because that’s what I tend to play. I looked for trending games and picked a slot with free spins and multipliers, hoping for a big hit.
At first it was nothing special: tiny hits and dead spins and free spins with low payout, and I was close to giving up because my balance was getting low. Then the session flipped: I hit a big bonus with multipliers all over the screen, the slot kept hitting combinations and the multiplier boosted my balance much higher. For me it was a really nice win compared to my regular sessions.
I didn’t keep spinning forever; after a few more small spins I decided to stop and send a cashout. The withdrawal process was nothing unusual: the casino asked me to complete KYC with standard documents. I sent everything the same evening, and the verification was approved without problems. After that the money was processed to my wallet and I received it faster than expected.
I’m not saying this casino is the best in the world, and of course you can also lose, but in this case my experience was quite satisfying: transparent rules, normal support and no drama with the withdrawal. This is not a promise you’ll win: there is always a risk in gambling, so only deposit with a strict budget and don’t rely on it as income.