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
const | |
WM_AFTER_SHOW = WM_USER + 300; // custom message | |
WM_AFTER_CREATE = WM_USER + 301; // custom message | |
type | |
TForm1 = class(TForm) | |
// After Resize Event | |
procedure WMExitSizeMove(var Message: TMessage); message WM_EXITSIZEMOVE; | |
// OnShow event | |
procedure FormShow(Sender: TObject); | |
// OnCreate event |
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
## Pre-requisite: You have to know your last commit message from your deleted branch. | |
git reflog | |
# Search for message in the list | |
# a901eda HEAD@{18}: commit: <last commit message> | |
# Now you have two options, either checkout revision or HEAD | |
git checkout a901eda | |
# Or | |
git checkout HEAD@{18} |
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
# User authentication method. Could be set multiple times and in | |
# that case all should succeed. To enable multiple methods use | |
# multiple auth directives. Available options: certificate, certificate[optional], | |
# plain, pam. | |
#auth = "certificate" | |
#auth = "plain[./ocserv-passwd]" | |
#auth = "pam" | |
# This indicates that a user may present a certificate. When that option | |
# is set, individual users or user groups can be forced to present a valid |
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
uses | |
WinAPI.Messages; | |
const | |
WM_AFTER_SHOW = WM_USER + 300; // custom message | |
WM_AFTER_CREATE = WM_USER + 301; // custom message | |
type | |
TForm1 = class(TForm) | |
// After Resize Event | |
procedure WMExitSizeMove(var Message: TMessage); message WM_EXITSIZEMOVE; |
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
auth = "plain[/etc/ocserv/ocpasswd]" | |
max-clients = 16 | |
max-same-clients = 5 | |
tcp-port = 443 | |
udp-port = 443 | |
keepalive = 32400 | |
dpd = 90 | |
mobile-dpd = 1800 | |
try-mtu-discovery = true | |
server-cert = /etc/ssl/certs/server-cert.pem |