sudo service systemd-timesyncd stop
sudo service vboxadd-service stop
sudo date +%T -s "00:12:00"
date -s "27 OCT 2016 00:12:00"
date +%Y%m%d -s "20161027"
sudo service systemd-timesyncd stop
sudo service vboxadd-service stop
sudo date +%T -s "00:12:00"
date -s "27 OCT 2016 00:12:00"
date +%Y%m%d -s "20161027"
[Unit]
Description=Selenium hub
[Service]
Environment=DISPLAY=:99
ExecStart=/bin/bash -c 'java -jar /opt/selenium/selenium-server-standalone.jar -role hub'
User=root
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo service selenium_hub status
sudo chkconfig selenium_hub on
sudo systemctl enable selenium_hub.service
mitmproxy -s "modify_response_body.py"
from mitmproxy.models import decoded
def response(context, flow):
if "site.custom.min.js" in flow.request.path:
with decoded(flow.response): # automatically decode gzipped responses.
flow.response.content = flow.response.content.replace(
"surfly.com",
"sitesupport.net")
mitmproxy --ignore ws.sitesupport.net:443
sudo nano ~/.pulse/default.pa
### Generated from: pulseaudio-equalizer
load-module module-ladspa-sink sink_name=ladspa_output.mbeq_1197.mbeq master=alsa_output.pci-0000_05_00.0.analog-stereo plugin=mbeq_1197 label=mbeq #control=-0.2,-0.2,-0.2,-0.2,3.5,3.5,3.5,3.5,3.5,3.5,3.5,2.5,2.5,0.0,0.0
set-default-sink ladspa_output.mbeq_1197.mbeq
set-sink-volume alsa_output.pci-0000_05_00.0.analog-stereo 65536
set-sink-mute alsa_output.pci-0000_05_00.0.analog-stereo 0
### END: Equalized audio configuration
cd /etc/yum.repos.d/
sudo wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo
sudo dnf install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-PAE-devel dkms
sudo dnf install VirtualBox-5.1
sudo /usr/lib/virtualbox/vboxdrv.sh setup
sudo usermod -a -G vboxusers user_name
# Disable migrations when running tests
MIGRATION_MODULES = {
app[app.rfind('.') + 1:]: 'your_app.migrations_not_used_in_tests'
for app in INSTALLED_APPS
}
TEST_RUNNER = 'your_app.test_runner.CustomDiscoverRunner'
from django.test.runner import DiscoverRunner
from myapp.management.commands._setup_functions import create_groups
class CustomDiscoverRunner(DiscoverRunner):
def setup_databases(self, **kwargs):
result = super(CustomDiscoverRunner, self).setup_databases(**kwargs)
create_groups()
return result