How to set up a Headless Selenium Testing environment for CentOS 6.3.
Follow these steps to set up a CentOS 6.3 host to run headless Selenium tests with Firefox.
Country | Alpha-2 code | Alpha-3 code | Numeric code | Latitude (average) | Longitude (average) | |
---|---|---|---|---|---|---|
Afghanistan | AF | AFG | 4 | 33 | 65 | |
Åland Islands | AX | ALA | 248 | 60.116667 | 19.9 | |
Albania | AL | ALB | 8 | 41 | 20 | |
Algeria | DZ | DZA | 12 | 28 | 3 | |
American Samoa | AS | ASM | 16 | -14.3333 | -170 | |
Andorra | AD | AND | 20 | 42.5 | 1.6 | |
Angola | AO | AGO | 24 | -12.5 | 18.5 | |
Anguilla | AI | AIA | 660 | 18.25 | -63.1667 | |
Antarctica | AQ | ATA | 10 | -90 | 0 |
Mac OSX: | |
listening () { | |
lsof -Pni | grep '(LISTEN)' | awk 'BEGIN {printf "%-15s %5s %21s\n", "Command", "PID", "PORT"} {printf "%-15s %5s %21s\n", $1,$2,$9}' | |
} | |
Linux (if you want non-you processes that are listening): | |
listening () { | |
sudo lsof -Pni | grep '(LISTEN)' | awk 'BEGIN {printf "%-15s %5s %21s\n", "Command", "PID", "PORT"} {printf "%-15s %5s %21s\n", $1,$2,$9}' | |
} |
#!/bin/bash | |
# this is not following best practices | |
# removing explicit familyControlsEnabled keys to mitigate high parentalcontrolsd cpu usage | |
rm -rf /Library/Managed\ Preferences/com.apple.applicationaccess.new.plist | |
rm -rf /Library/Managed\ Preferences/*/com.apple.applicationaccess.new.plist | |
if pgrep 'parentalcontrolsd'; then | |
killall -STOP parentalcontrolsd | |
fi |
Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.
This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would
// Requires: | |
// Leaflet: http://leafletjs.com/ | |
// Leaflet.curve: https://github.com/elfalem/Leaflet.curve | |
// | |
// Assumes: | |
// var map is a Leaflet map and already set up. | |
var latlngs = []; | |
var latlng1 = [LATITUDE, LONGTITUDE], |
// No Security | |
{ | |
"rules": { | |
".read": true, | |
".write": true | |
} | |
} |