This file contains hidden or 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
| for f in (ls /sys/bus/usb/devices/*/product) | |
| echo $f && cat $f | |
| end |
This file contains hidden or 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
| diff --git a/config/webpack/production.js b/config/webpack/production.js | |
| index cec810184..a5807830a 100644 | |
| --- a/config/webpack/production.js | |
| +++ b/config/webpack/production.js | |
| @@ -15,8 +15,9 @@ const sharedConfig = require('./shared'); | |
| const root = resolve(__dirname, '..', '..'); | |
| module.exports = merge(sharedConfig, { | |
| + parallelism: 1, | |
| mode: 'production', |
This file contains hidden or 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
| #[pyfunction] | |
| fn process_file(file: &PyAny, callback: &PyAny) { | |
| assert!(callback.is_callable()); | |
| let file = file.to_string(); | |
| if let Ok(lines) = read_lines(file) { | |
| for line in lines { | |
| Python::with_gil(|py| { | |
| let pool = unsafe { py.new_pool() }; | |
| let py = pool.python(); | |
| for msg in line.unwrap().replace("}{", "}\n{").split("\n") { |
OlderNewer