This file contains hidden or 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
| sudo xattr -d com.apple.quarantine /Applications/MakeMKV.app | |
| sudo /Applications/MakeMKV.app/Contents/MacOS/makemkv |
This file contains hidden or 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
| # Required packages: | |
| # pip install pydub | |
| # pip install votify | |
| # install ffmpeg | |
| import subprocess | |
| import os | |
| from pydub import AudioSegment | |
| import spotipy | |
| from spotipy.oauth2 import SpotifyClientCredentials |
This file contains hidden or 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
| private configureUserData(): void { | |
| const asgUserdata = this.agent.autoScalingGroup[ | |
| "userData" | |
| ] as MultipartUserData; | |
| const waitYumLock = `while [ -f /var/run/yum.pid ]; do echo "Waiting for yum lock..."; sleep 5; done`; | |
| const multiUserData = new MultipartUserData(); | |
| var yumWaitUserData: UserData = UserData.forLinux({ | |
| shebang: "#!/bin/bash -e", | |
| }); |
This file contains hidden or 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
| poetry config virtualenvs.in-project true | |
| poetry env use python |
This file contains hidden or 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
| sudo spctl --master-disable |
This file contains hidden or 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
| # Get best UDP OpenVPN servers from Poland, Czech Republic, Romania and Hungary | |
| for id in 174 57 179 98; do curl --silent --retry 3 --connect-timeout 3 --max-time 6 --retry-delay 1 --retry-all-errors "https://nordvpn.com/wp-admin/admin-ajax.php?action=servers_recommendations&filters=\{\"country_id\":$id,\"servers_groups\":\[11\],\"servers_technologies\":\[3\]\}" | jq --raw-output '.[].station'; done |
This file contains hidden or 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
| Linux sysctl.conf setting changes: | |
| # Technologies suggested buffer settings | |
| net.core.rmem_max = 16777216 | |
| net.core.wmem_max = 16777216 | |
| net.core.rmem_default = 8388608 | |
| net.core.wmem_default = 8388608 | |
| net.core.netdev_max_backlog = 3145728 | |
| net.ipv4.tcp_window_scaling = 0 | |
| net.ipv4.route.secret_interval = 86400 | |
| net.ipv4.tcp_rmem = 262144 4194304 16777216 |
This file contains hidden or 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
| #!/bin/bash | |
| eval $(AWS_SHARED_CREDENTIALS_FILE=${path_to_cred} aws --profile ${profile} --region ${region} ecr get-login-password) |
This file contains hidden or 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
| # upload file to server | |
| scp my_file user@server://home/user/my_file | |
| # download from server | |
| scp user@server://home/user/my_file my_file |
This file contains hidden or 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
| pipenv install # cd to project and insatll environment | |
| pipenv install --python 3.6 # cd to project and insatll environment with specific python version | |
| pipenv shell # like source .venv/bin/activate | |
| pipenv --rm # cd to project an removes environment |
NewerOlder