cvt 2560 1080 60
получается# 2560x1080 59.98 Hz (CVT) hsync: 67.17 kHz; pclk: 230.00 MHz
Modeline "2560x1080_60.00" 230.00 2560 2720 2992 3424 1080 1083 1093 1120 -hsync +vsync
xrandr --newmode "2560x1080_60.00" 230.00 2560 2720 2992 3424 1080 1083 1093 1120 -hsync +vsync
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 18 (RRAddOutputMode)
Serial number of failed request: 45
Current serial number in output stream: 46
let {Cookie, CookieMap} = require('cookiefile')
let cookieJar = await cookies.map(row => {
return new Cookie(row);
})
#HttpOnly_.copart.com FALSE / FALSE 0 g2usersessionid f40037d6ef825cec7e96c9bb6aade4
Since Puppeteer does not currently support navigation to a PDF document in headless mode via page.goto() due to the upstream issue, you can use page.setRequestInterception() to enable request interception, and then you can listen for the 'request' event and detect whether the resource is a PDF before using the request client to obtain the PDF buffer.
const request_client = require('request-promise-native');
(async () => {
const cookiesString = await fs.readFile(path.join(__dirname, '/../tmp/cookies.json'));
const cookies = JSON.parse(cookiesString);
const browser = await puppeteer.launch({
headless: false,
});
const page = await browser.newPage();
await page.setCookie(...cookies);
// навигация по ссылке чтобы получить линк к пдф файлу
const response = await page.goto(url);
const readyPdfPage = response.request().url()
// теперь включаем перехват запросов
await page.setRequestInterception(true)
page.on('request', async request => {
const response = await request_client({
uri: request.url(),
encoding: null,
headers: {
'Content-type': 'applcation/pdf',
},
}).then(response => {
console.log(response)
request.abort();
});
})
await page.goto(readyPdfPage).catch(e => console.log(e));
await browser.close();
})();
SELECT DISTINCT c0_.id AS id_0, c0_.year AS year_1 FROM cars c0_ WHERE c0_.is_stock = 1 AND c0_.year >= 2015 AND c0_.year <= 2019 AND c0_.color IN ('Zaz', 'BMW') AND c0_.brand IN ('Zaz', 'BMW');
$qb->andWhere($normalizedKey . ' IN (:values)')->setParameter('values', $values);
теперь возникла проблема, когда включаю безголовый режим - зависает, зараза