Skip to content

Instantly share code, notes, and snippets.

View SergiiKrav4enko's full-sized avatar
🐧

Sergii Kravchenko SergiiKrav4enko

🐧
View GitHub Profile
@SergiiKrav4enko
SergiiKrav4enko / ip_rotate.py
Created April 27, 2021 13:55 — forked from l0n3sh4rk/ip_rotate.py
OpenVPN IP Rotation
#!/usr/bin/python
# 1. Install openvpn
# 2. Download and extract all vpn config files (.ovpn files, .key and .crt) inside the /etc/openvpn/ folder
# 3. Create a new .pia file inside the /root/ directory that stores the username and password for the vpn
# 4. Run this script in crontab under root user. (Ie, use sudo crontab -e)
import os
import random
openvpn_config_dir = '/etc/openvpn/'
@SergiiKrav4enko
SergiiKrav4enko / arena-macos-fixes.sh
Created January 20, 2021 07:34 — forked from april/arena-macos-full-screen-fixes.sh
Fixes Magic Arena's broken full screen implementation on macOS
# this forces Arena into full screen mode on startup, set back to 3 to reset
# note that if you go into the Arena "Graphics" preference panel, it will reset all of these
# and you will need to run these commands again
defaults write com.wizards.mtga "Screenmanager Fullscreen mode" -integer 0
# replace 1792 and 1120 with your full screen resolution, or any scaled resolution your display supports
# to find the scaled resolutions, go to System Preferences --> Display
defaults write com.wizards.mtga "Screenmanager Resolution Width" -integer 1792
defaults write com.wizards.mtga "Screenmanager Resolution Height" -integer 1120
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="TestRunnerService">
<option name="PROJECT_TEST_RUNNER" value="Unittests" />
</component>
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="jdk" jdkName="Python 3.5.2 virtualenv at ~/VirtTest_ChekIO" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="TestRunnerService">
<option name="PROJECT_TEST_RUNNER" value="Unittests" />
</component>