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
| local function pre_skipOriginalMethod(args) | |
| return sdk.PreHookResult.SKIP_ORIGINAL | |
| end | |
| local function pre_resetUsedTickets(args) | |
| local saveDataManager = sdk.get_managed_singleton("app.SaveDataManager") | |
| local systemCommon = saveDataManager._SystemSaveData._Data._SystemCommon | |
| local userSaveData = saveDataManager._UserSaveData._Data | |
| systemCommon.HunterTicketsUsed = 0 | |
| systemCommon.PalicoTicketsUsed = 0 |
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
| local windManager = sdk.get_managed_singleton("app.WindManager") | |
| windManager._Stop = true |
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
| local graphicsManager = sdk.get_managed_singleton("app.GraphicsManager")._AppGraphicsSettingController | |
| local graphicsSetting = graphicsManager._GraphicsSetting | |
| graphicsSetting._LensDistortionSetting = 2 | |
| graphicsManager:call("setGraphicsSetting", graphicsSetting) |
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
| #Requires AutoHotkey v2 | |
| #SingleInstance | |
| ListLines(0), KeyHistory(0) | |
| ProcessSetPriority("High") | |
| for k, v in Map("a","d","w","s") | |
| Set(k, v, 0), Set(v, k, 0), Set(k, v, 1), Set(v, k, 1) | |
| Set(a, b, up) { | |
| if up |
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
| from bs4 import BeautifulSoup | |
| from urllib.parse import unquote | |
| import requests | |
| url = 'http://dev.packages.vyos.net/' | |
| path = '?dir=repositories/equuleus/pool/main' | |
| def scan(_path): | |
| page = requests.get(url + _path).text | |
| soup = BeautifulSoup(page, 'html.parser') |
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
| #!/usr/bin/python3 | |
| import sys | |
| import os | |
| import re | |
| args = sys.argv | |
| layout = { | |
| "stereo": "2", | |
| "5.1": "6" |
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
| log.info("[Rise Voucher Manager] started loading") | |
| local config = { | |
| enable = false, | |
| desiredVoucherUseCount = 0 | |
| } | |
| local DlcManager = nil | |
| local config_file = "RiseVoucherManager.json" | |
| local _config = json.load_file(config_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
| RSS = ( | |
| { 'url': 'https://example.com' }, | |
| { 'url': 'https://example.com', 'regex': '^.+720p.*$' }, | |
| ) | |
| PROXIES = { | |
| 'http': 'http://example.com:8080', | |
| 'https': 'https://example.com:8443', | |
| } |
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
| set -g mouse on | |
| set -g history-limit 100000 | |
| set -s escape-time 0 | |
| set -g default-command $SHELL | |
| unbind -T copy-mode MouseDrag1Pane | |
| unbind -T copy-mode MouseDragEnd1Pane | |
| unbind -T copy-mode DoubleClick1Pane | |
| unbind -T copy-mode TripleClick1Pane |
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
| In my understanding, the "tcp meltdown" problem is not difficult to solve: | |
| you only need to set a large retransmission timeout for the inner tcp connection. | |
| By greatly increasing the minimum retransmission timeout of the inner TCP connection, | |
| we have effectively disabled the timeout retransmission mechanism of the inner TCP. | |
| Therefore, the TCP meltdown problem is avoided. | |
| For example, in linux, you can use ip route replace 192.168.168.1/24 via 192.168.168.2 rto_min 12s | |
| to increase the minimum retransmission timeout of all internal connections established through OpenVPN | |
| from 0.2 seconds to 12 seconds (It is assumed that 192.168.168.1/24 is your OpenVPN network segment). |
NewerOlder