- Install
$ sudo pacman -S ghostscript
- Install
$ yay -S cups
- Enable its service
$ sudo systemctl enable cups.service
- Restart the service
$ sudo systemctl restart cups.service
- Check its status
$ sudo systemctl status cups.service
- Install
$ yay -S cnrdrvcups-sfp
- BE AWARE THAT LBP-6030B is a UFRII-LT printer with
sfp
. Only usecnrdrvcups-lb
package if your printer is LBP6030 (white version, USA)!! - Open
http://localhost:631/
in Chrome. - Go to
Administration
and then click onAdd Printer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM On Unix you would do this: find ./ -type f -exec dos2unix {} \; | |
REM After installing dos2unix.exe in Windows, you can create a small bat script with the below in it to | |
REM recursively change the line endings. Careful if you have any hidden directories (e.g. .git) | |
for /f "tokens=* delims=" %%a in ('dir "C:\Users\username\path\to\directory" /s /b') do ( | |
"C:\Program Files\unix2dos.exe" %%a | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import numpy as np | |
import cv2 | |
from time import sleep | |
# create blank image - y, x | |
img = np.zeros((600, 1000, 3), np.uint8) | |
# setup text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
colors: | |
# Default colors | |
primary: | |
background: '0x1e2127' | |
foreground: '0xabb2bf' | |
# Bright and dim foreground colors | |
# | |
# The dimmed foreground color is calculated automatically if it is not present. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This version of the printProgressBar function implements an optional autoresize argument. | |
# It has been updated from a previous version to use the shutil Python module to determine | |
# the terminal size. This update should allow it to work on most operating systems and does | |
# speed up the autosize feature quite a bit – though it still slows things down quite a bit. | |
# For more robust features, it's recommended you use a progress bar library like tdqm (see: https://github.com/tqdm/tqdm) | |
def printProgressBar (iteration, total, prefix = '', suffix = '', decimals = 1, length = 100, fill = '█', autosize = False): | |
""" | |
Call in a loop to create terminal progress bar | |
@params: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Basic instrumentation profiler by Cherno | |
// Usage: include this header file somewhere in your code (eg. precompiled header), and then use like: | |
// | |
// Instrumentor::Get().BeginSession("Session Name"); // Begin session | |
// { | |
// InstrumentationTimer timer("Profiled Scope Name"); // Place code like this in scopes you'd like to include in profiling | |
// // Code | |
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <filesystem> | |
#include <imgui.h> | |
#define BIT(x) (1 << x) | |
std::pair<bool, uint32_t> DirectoryTreeViewRecursive(const std::filesystem::path& path, uint32_t* count, int* selection_mask) | |
{ | |
ImGuiTreeNodeFlags base_flags = ImGuiTreeNodeFlags_OpenOnArrow | ImGuiTreeNodeFlags_OpenOnDoubleClick | ImGuiTreeNodeFlags_SpanAvailWidth | ImGuiTreeNodeFlags_SpanFullWidth; | |
bool any_node_clicked = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// you need this in your cargo.toml | |
// reqwest = { version = "0.11.3", features = ["stream"] } | |
// futures-util = "0.3.14" | |
// indicatif = "0.15.0" | |
use std::cmp::min; | |
use std::fs::File; | |
use std::io::Write; | |
use reqwest::Client; | |
use indicatif::{ProgressBar, ProgressStyle}; |