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
const pw = require('playwright'); | |
const UserAgent = require('user-agents'); | |
const uuid = require('uuid'); | |
const tmp = require('tmp-promise'); | |
const UINT32_MAX = (2 ** 32) - 1; | |
const WEBGL_RENDERERS = ['ANGLE (NVIDIA Quadro 2000M Direct3D11 vs_5_0 ps_5_0)', 'ANGLE (NVIDIA Quadro K420 Direct3D9Ex vs_3_0 ps_3_0)', 'ANGLE (NVIDIA Quadro 2000M Direct3D9Ex vs_3_0 ps_3_0)', 'ANGLE (NVIDIA Quadro K2000M Direct3D11 vs_5_0 ps_5_0)', 'ANGLE (Intel(R) HD Graphics Direct3D9Ex vs_3_0 ps_3_0)', 'ANGLE (Intel(R) HD Graphics Family Direct3D9Ex vs_3_0 ps_3_0)', 'ANGLE (ATI Radeon HD 3800 Series Direct3D9Ex vs_3_0 ps_3_0)', 'ANGLE (Intel(R) HD Graphics 4000 Direct3D11 vs_5_0 ps_5_0)', 'ANGLE (Intel(R) HD Graphics 4000 Direct3D11 vs_5_0 ps_5_0)', 'ANGLE (AMD Radeon R9 200 Series Direct3D11 vs_5_0 ps_5_0)', 'ANGLE (Intel(R) HD Graphics Direct3D9Ex vs_3_0 ps_3_0)', 'ANGLE (Intel(R) HD Graphics Family Direct3D9Ex vs_3_0 ps_3_0)', 'ANGLE (Intel(R) HD Graphics Direct3D9Ex vs_3_0 ps_3_0)', 'ANGLE (Intel(R) HD Graphics Family Direct3D |
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/local/bin/bash | |
pgrep -f rosetta | xargs kill | |
pgrep -f node | xargs kill -9 | |
pgrep -f rake | xargs kill -9 | |
sleep 10 | |
for proc in node rake rosetta ;do | |
echo Checking for $proc processes | |
pgrep -f $proc | |
done |
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Debug Test File (rspec)", | |
"type": "Ruby", | |
"request": "launch", | |
"cwd": "${workspaceRoot}", | |
"program": "/Users/jessejohnson/.rvm/gems/ruby-2.7.0@oris-intel-bot/bin/rspec", | |
"args": ["-fd", "${relativeFile}"], |
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
from bs4 import BeautifulSoup, Tag | |
class Attribute(object): | |
def __init__(self, attrname, attrvalue): | |
'Initializes a new attribute.' | |
self._attrname = attrname | |
self._attrvalue = attrvalue | |
@property | |
def name(self): |
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
version: '3.6' | |
services: | |
rabbit: | |
image: rabbitmq:3-management | |
volumes: | |
- ./rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf:ro | |
ports: | |
- '8080:15672' | |
redis: |
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
// Intellectual genuineness of | |
// Anthony McNamara (aka Big Red) | |
// Great article regarding approach | |
// https://medium.com/@filipvitas/how-to-set-user-agent-header-with-puppeteer-js-and-not-fail-28c7a02165da | |
Object.defineProperty(navigator, 'Mozilla/5.0 (compatible; PriceSpider0.2; +https://www.pricespider.com/)', { | |
get: function() { return setPlat }, | |
set: function(a) { } | |
}); |
NewerOlder