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
| /** | |
| * @author Johno Crawford ([email protected]) | |
| */ | |
| @Component | |
| class RedisClientFactory { | |
| private static final Logger logger = LogManager.getLogger(RedisClientFactory.class); | |
| private static final int RETRY_INTERVAL = 500; | |
| private static final int RETRY_ATTEMPTS = 1; |
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
| - name: Build | |
| uses: game-ci/unity-builder@v4 | |
| env: | |
| UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | |
| UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | |
| UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | |
| with: | |
| projectPath: ${{ inputs.projectPath }} | |
| targetPlatform: StandaloneWindows64 | |
| customImage: unityci/editor:windows-6000.0.58f2-windows-il2cpp-3 |
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
| - name: write-upm-config | |
| hook: before | |
| image: mcr.microsoft.com/powershell:lts-windowsservercore-ltsc2022 | |
| shell: powershell | |
| commands: | | |
| $ErrorActionPreference = 'Stop' | |
| $cfg = @' | |
| cacheRoot = "C:\\github\\workspace\\.upm" | |
| '@ |
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
| import subprocess | |
| import time | |
| import re | |
| # === CONFIGURATION === | |
| JSTACK_PATH = "/usr/lib/jvm/java-11-amazon-corretto/bin/jstack" | |
| JAVA_PID = "30381" | |
| INTERVAL = 5 # seconds between samples | |
| TOP_N = 5 # top N threads to show | |
| STACK_LINES = 5 # stack lines for threads 2..N |
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
| import org.apache.commons.dbcp2.BasicDataSource; | |
| import java.util.HashSet; | |
| import java.util.Set; | |
| public class AwsDataSource extends BasicDataSource { | |
| @Override | |
| public synchronized void setDriverClassName(String driverClassName) { | |
| if ("software.amazon.jdbc.Driver".equals(driverClassName)) { |
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
| package org.apache.commons.dbcp2; | |
| import java.sql.SQLException; | |
| public interface SQLExceptionOverride { | |
| /** | |
| * Determines whether a connection should be disconnected based on the provided SQLException. | |
| * | |
| * @param sqlException the SQLException to evaluate |
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
| Host smtp.eu.sparkpostmail.com | |
| Port 587 | |
| Alternative Port 2525 | |
| Authentication AUTH LOGIN | |
| Encryption STARTTLS | |
| Username SMTP_Injection | |
| Password The password is an API key with Send via SMTP permissions. | |
| Open /etc/exim4/exim4.conf.template and find the following sections: |
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
| package { | |
| import flash.display.Sprite; | |
| import flash.events.LocationChangeEvent; | |
| import flash.geom.Rectangle; | |
| import flash.media.StageWebView; | |
| public class Main extends Sprite { | |
| private static const CAPTCHA_ENDPOINT : String = "https://www.habbo" + ".com/api/public/captcha"; |
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
| RegistryKey key = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\", true); | |
| RegistryKey subkey = key.CreateSubKey("Internet Settings"); | |
| int val = (int)subkey.GetValue("SecureProtocols"); | |
| WarningBox warningBox = new WarningBox(); | |
| if (val < 2048) | |
| { | |
| void AddKey() | |
| { |
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
| Windows Registry Editor Version 5.00 | |
| [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client] | |
| "DisabledByDefault"=dword:00000000 | |
| [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings] | |
| "SecureProtocols"=dword:00000a80 | |
| [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Internet Settings] | |
| "SecureProtocols"=dword:00000a80 |
NewerOlder