I hereby claim:
- I am millsy on github.
- I am millsy (https://keybase.io/millsy) on keybase.
- I have a public key ASBcvryt7HEQQwOGWO8YmfWtAB8CNi8Pp8d_vjDAHxfQ1go
To claim this, I am signing this object:
protected override void WndProc(ref Message message) | |
{ | |
const int WM_SYSCOMMAND = 0x0112; | |
const int SC_MOVE = 0xF010; | |
const int SC_MAXIMIZE = 0xF030; | |
const int SC_MINIMIZE = 0xF020; | |
const int SC_RESTORE = 0xF120; | |
switch (message.Msg) | |
{ |
<?php | |
echo "Source: $source"; | |
$fp=fopen("/path/to/certificate.crt","r"); | |
$pub_key=fread($fp,8192); | |
fclose($fp); | |
openssl_get_publickey($pub_key); | |
/* | |
* NOTE: Here you use the $pub_key value (converted, I guess) | |
*/ | |
openssl_public_encrypt($source,$crypttext,$pub_key); |
<?php | |
$p12cert = array(); | |
$file = 'https://myserver.com/myp12file.p12'; | |
$c = file_get_contents($file); | |
if (openssl_pkcs12_read($c, $p12cert, '1234567890') ) | |
{ | |
$pkey = $p12cert['pkey']; //private key |
<?php | |
require_once 'sdk.class.php'; | |
$s3 = new AmazonS3(); | |
$s3url = $s3->get_object_url('mybucket', 'mypath/tofile.txt', '5 minutes'); | |
echo $s3url; | |
?> |
public string[] emailSplit(string email) | |
{ | |
string[] result = null; | |
Regex exp = new Regex(@"^([^@]*)@(.*)", RegexOptions.IgnoreCase); | |
MatchCollection matches = exp.Matches(email); | |
if (matches.Count == 1 && matches[0].Groups.Count > 1) | |
{ | |
Match m = matches[0]; | |
result = new string[m.Groups.Count -1]; | |
for (int i = 1; i < m.Groups.Count; i++) |
public void StyleWindow(IntPtr handle) | |
{ | |
Diagnostic.DebugInfo("StyleWindow() called"); | |
int lStyle = GetWindowLong(handle, GWL_STYLE); | |
lStyle &= ~(WS_CAPTION | WS_THICKFRAME | WS_MINIMIZE | WS_MAXIMIZE | WS_SYSMENU); | |
SetWindowLong(handle, GWL_STYLE, lStyle); | |
Diagnostic.DebugInfo("StyleWindow() ended"); | |
} |
@ echo off | |
net use j: \\server-name\folder-name | |
cd /d "%PROGRAMFILES%\OpenSpan\OpenSpan Runtime Enterprise" | |
osdump.exe -osdir "%USERPROFILE%\My Documents\OpenSpan Studio for VS 2010" -mode hang | |
cd /d "%USERPROFILE%\My Documents\OpenSpan Studio for VS 2010" |
@ echo off | |
setlocal EnableDelayedExpansion | |
set dd=%date% %Time% | |
set outputFile=C:\Output-Folder\%username%\TimestampChecker-%dd:~4,2%%dd:~7,2%%dd:~10,4%-%dd:~15,2%%dd:~18,2%%dd:~21,2%.txt | |
SET STUDIOFILE=C:\Folder-Name\FileName.dll | |
>%outputFile% 2>&1 ( |
--- | |
- hosts: all | |
tasks: | |
- name : Set netdev_budget_usecs | |
sysctl: | |
name: net.core.netdev_budget_usecs | |
value: 5000 | |
sysctl_set: yes | |
state: present |
I hereby claim:
To claim this, I am signing this object: