Skip to content

Instantly share code, notes, and snippets.

View jozefizso's full-sized avatar
🏳️‍🌈

Jozef Izso jozefizso

🏳️‍🌈
  • Slido, Cisco Systems
  • Bratislava, Slovakia
View GitHub Profile
@jozefizso
jozefizso / shell.sh
Created April 10, 2014 21:29
WebSupport SMTP TLS Certificate
> openssl s_client -connect smtp.websupport.sk:25 -starttls smtp
CONNECTED(00000003)
depth=0 /OU=Domain Control Validated/CN=*.websupport.sk
verify error:num=20:unable to get local issuer certificate
verify return:1
depth=0 /OU=Domain Control Validated/CN=*.websupport.sk
verify error:num=27:certificate not trusted
verify return:1
depth=0 /OU=Domain Control Validated/CN=*.websupport.sk
verify error:num=21:unable to verify the first certificate
var sendFile = function (file, chunkSize)
{
var start = 0,
end = Math.min(chunkSize, file.size),
retryCount = 0,
sendNextChunk, fileChunk;
displayStatusMessage("");
sendNextChunk = function ()
{
fileChunk = new FormData();
@jozefizso
jozefizso / FUCK_OWA_O365.html
Created September 2, 2014 15:01
Fucking OWA O365 FUCK Fucking fuck
<font face="Times New Roman,serif" size="3">
<span style="font-size:12pt;">
<font face="Segoe UI,sans-serif" size="5" color="#B61318">
<span style="font-size:18pt;">Vážený klient,</span>
</font>
</span>
</font>
@jozefizso
jozefizso / 0_reuse_code.js
Last active August 29, 2015 14:10
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@jozefizso
jozefizso / Product.wxs
Last active August 29, 2015 14:23
WIX Utility Scripts for Installer Projects
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<?include $(sys.CURRENTDIR)Runtime.wxi ?>
<Product Id="*">
<Upgrade Id="$(var.UpgradeCode)">
<UpgradeVersion Property="OLDERVERSION_BEINGUPGRADED" Minimum="0.0.0" Maximum="$(var.ProductVersion)" IncludeMaximum="no" />
<UpgradeVersion Property="NEWERVERSION_INSTALLED" OnlyDetect="yes" Minimum="$(var.ProductVersion)" IncludeMinimum="no" />
</Upgrade>
<InstallExecuteSequence>
@jozefizso
jozefizso / Global.asax.cs
Created September 23, 2011 10:39
Job Scheduling in MVC
protected void Application_Start()
{
Registry registry = new Registry();
registry.Schedule<SampleJob1>().ToRunEvery(3).Seconds();
registry.Schedule<SampleJob2>().ToRunEvery(1).Days().At(21, 15);
TaskManager.Initialize(registry);
TaskManager.Start();
}
@jozefizso
jozefizso / Program.cs
Created September 28, 2011 12:39
Reactive Extensions for Windows Forms
using System;
using System.Reactive.Linq;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
static class Program
{
/// <summary>
/// The main entry point for the application.
@jozefizso
jozefizso / Forms1.cs
Created September 29, 2011 10:07
Rx - filtering and displaying mouse move data
void Form1_Load(object sender, EventArgs e)
{
IObservable<Point> points = from mme in Observable.FromEventPattern<MouseEventArgs>(target: this, eventName: "MouseMove")
where mme.EventArgs.X == mme.EventArgs.Y
select mme.EventArgs.Location;
DisplayData(points);
}
private void DisplayData(IObservable<Point> points)
@jozefizso
jozefizso / Program.cs
Created September 29, 2011 10:35
Rx - Use Subject<T> as backend for IObservable<T>
class UseSubject
{
public class Order
{
private DateTime? _paidDate;
private readonly Subject<Order> _paidSubj = new Subject<Order>();
public IObservable<Order> Paid { get { return _paidSubj.AsObservable(); } }
public void MarkPaid(DateTime paidDate)
@jozefizso
jozefizso / Hraci.cs
Created July 15, 2012 18:54
Trieda Ihrisko - zaklad
public class Hrac
{
public Hrac(string meno)
{
this.MenoHraca = meno;
}
// Vlastnost MenoHraca umoznuje ziskat alebo nastavit meno hraca.
public string MenoHraca
{