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
| position: absolute; | |
| width: 1px; | |
| height: 1px; | |
| padding: 0; | |
| margin: -1px; | |
| overflow: hidden; | |
| clip: rect(0, 0, 0, 0); | |
| white-space: nowrap; | |
| border: 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
| position: absolute; | |
| width: 1px; | |
| height: 1px; | |
| padding: 0; | |
| margin: -1px; | |
| overflow: hidden; | |
| clip: rect(0, 0, 0, 0); | |
| white-space: nowrap; | |
| border: 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
| CEF | |
| EPV | |
| ERY | |
| EUM | |
| EWV | |
| FAIL | |
| FAZ | |
| FLDR | |
| FLMI | |
| FLTB |
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
| AAA | |
| AAAU | |
| AADR | |
| AAXJ | |
| ABEQ | |
| ACES | |
| ACIO | |
| ACP | |
| ACSI | |
| ACTV |
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 smtplib | |
| import email.message, email.policy, email.utils, sys | |
| text = """This is a test""" | |
| message = email.message.EmailMessage(email.policy.SMTP) | |
| message['To'] = '[email protected]' | |
| message['From'] = '[email protected]' | |
| message['Subject'] = 'A test email' | |
| message['Date'] = email.utils.formatdate(localtime=True) | |
| message['Message-ID'] = email.utils.make_msgid() |
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/sh | |
| #Alias of the certificate | |
| echo 'Please enter the alias of the certificate: e.g. (shortwebname)' | |
| read NAME | |
| #The current domain registered in letsencrypt such as www.mydomain.com | |
| echo 'Please enter the domain name: e.g. (www.mydomain.com)' | |
| read DOMAIN | |
| #The keystore password, default is (changeit) | |
| echo 'Please enter the keystore password: default is (changeit)' |
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
| //Using read-only in a JPA Query | |
| import org.eclipse.persistence.config.HintValues; | |
| import org.eclipse.persistence.config.QueryHints; | |
| query.setHint(QueryHints.READ_ONLY, HintValues.TRUE); | |
| //Using read-only in a @QueryHint Annotation | |
| import org.eclipse.persistence.config.HintValues; | |
| import org.eclipse.persistence.config.QueryHints; | |
| @QueryHint(name=QueryHints.READ_ONLY, value=HintValues.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
| REM Download VSCode | |
| curl -L "https://update.code.visualstudio.com/latest/win32-x64-user/stable" --output C:\Users\Public\Downloads\vscode.exe | |
| REM Install and run VSCode | |
| C:\Users\Public\Downloads\vscode.exe\vscode.exe /verysilent /suppressmsgboxes |
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
| mysql > SET TRANSACTION ISOLATION LEVEL READ COMMITTED; | |
| Query OK, 0 rows affected | |
| Time: 0.001s | |
| mysql > SET TRANSACTION ISOLATION LEVEL SERIALIZABLE; | |
| Query OK, 0 rows affected | |
| Time: 0.001s | |
| mysql > SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED; | |
| Query OK, 0 rows affected | |
| Time: 0.001s | |
| mysql > SET TRANSACTION ISOLATION LEVEL REPEATABLE READ; |
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 apt update && sudo apt -y upgrade | |
| sudo apt-get purge xrdp | |
| # install xfce | |
| sudo apt-get install -y xfce4 xfce4-goodies | |
| # install xrdp | |
| sudo apt-get install xrdp | |
| sudo cp /etc/xrdp/xrdp.ini /etc/xrdp/xrdp.ini.bak | |
| sudo sed -i 's/3389/3390/g' /etc/xrdp/xrdp.ini | |
| sudo sed -i 's/max_bpp=32/#max_bpp=32\nmax_bpp=128/g' /etc/xrdp/xrdp.ini | |
| sudo sed -i 's/xserverbpp=24/#xserverbpp=24\nxserverbpp=128/g' /etc/xrdp/xrdp.ini |
NewerOlder