Skip to content

Instantly share code, notes, and snippets.

View VTwo-Group's full-sized avatar

VTwo Group VTwo-Group

View GitHub Profile
@VTwo-Group
VTwo-Group / aftershow.pas
Created March 30, 2018 14:43 — forked from meason/aftershow.pas
Delphi After Events
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
@umayr
umayr / recover-deleted-branch.sh
Created April 1, 2016 11:41
How to recover a deleted branch
## 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}
@wongsyrone
wongsyrone / ocserv.conf
Last active October 31, 2022 22:28 — forked from tinkernels/ocserv.conf
ocserv configuration file example.
# 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
@meason
meason / aftershow.pas
Last active June 8, 2023 15:02
Delphi After Events
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;
@luginbash
luginbash / example.ocserv.conf
Created July 21, 2014 02:00
Example OpenConnect Server configuration
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