Skip to content

Instantly share code, notes, and snippets.

View WilbertOnGithub's full-sized avatar

Wilbert van Dolleweerd WilbertOnGithub

  • ICT Group
  • The Netherlands
  • 01:18 (UTC +02:00)
View GitHub Profile
@WilbertOnGithub
WilbertOnGithub / gist:f2f4f747bf47b2c24d1e69f9bd5a7ad8
Created April 16, 2021 06:55
Bericht van allekabels.nl over hack
Beste klant van Allekabels,
Uw wachtwoord is gelekt bij een datalek en hebben wij om deze reden
gewist. Laten we beginnen om onze welgemeende excuses aan te bieden voor
eventuele overlast welke gepaard gaat met dit datalek en het feit dat
dit nu pas duidelijk is geworden.
Ons bedrijf is op 23 augustus 2020 slachtoffer geworden van een hack
door cybercriminelen en heeft daar meteen melding van gemaakt bij de
Autoriteit Persoonsgegevens en de technologische beveiliging maximaal
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using System.Timers;
namespace ConsoleApplication6
{
@WilbertOnGithub
WilbertOnGithub / ASP.NETDownloadCSV
Last active August 29, 2015 14:21
ASP.NET download CSV
// POST
public FileContentResult GenerateCsvDownload(FormCollection formCollection)
{
string csv = Request.Form["csv"];
return File(Encoding.UTF8.GetBytes(csv), "text/plain", "csv.txt");
}
@WilbertOnGithub
WilbertOnGithub / Highcharts csv-export
Created May 13, 2015 09:58
Highcharts csv-export
Highcharts.getOptions().exporting.buttons.exportButton.menuItems.push({
text: 'Download CSV',
onclick: function () {
Highcharts.post('http://www.highcharts.com/studies/csv-export/csv.php', {
csv: this.getCSV()
});
}
});
@WilbertOnGithub
WilbertOnGithub / Highchart export csv
Created May 13, 2015 09:47
Highchart export csv page
<?php
/**
* DISCLAIMER: Don't use www.highcharts.com/studies/csv-export/csv.php in
* production! This file may be removed at any time.
*/
$csv = $_POST['csv'];
if ($csv) {
header('Content-type: text/csv');
header('Content-disposition: attachment;filename=chart.csv');
echo $csv;
@WilbertOnGithub
WilbertOnGithub / QueueBackgroundWorkItem example
Created May 13, 2015 09:16
QueueBackgroundWorkItem example
public class ValuesController1 : ApiController
{
// POST api/<controller>
public void Post([FromBody]string value)
{
HostingEnvironment.QueueBackgroundWorkItem(ct => StartBackgroundTask());
}
private async Task StartBackgroundTask()
{
@WilbertOnGithub
WilbertOnGithub / .gitconfig
Created December 7, 2012 07:38
gitconfig file that shows how to configure P4Merge
[merge]
tool = p4merge
log = true
[user]
name =
email =
[core]
editor = vim
autocrlf = true
safecrlf = false
@WilbertOnGithub
WilbertOnGithub / gist:4130569
Created November 22, 2012 11:00
Part of a series of instructions on how to use Git in combination with Dropbox
D:\Data\Projects\foo>git checkout master
D:\Data\Projects\foo>git push dropbox master
@WilbertOnGithub
WilbertOnGithub / gist:4130562
Created November 22, 2012 10:57
Part of a series of instructions on how to use Git in combination with Dropbox
D:\My Dropbox\Git repos>cd \data\projects\foo
D:\Data\Projects\foo>git remote add dropbox "D:\My Dropbox\Git repos\foo.git"
@WilbertOnGithub
WilbertOnGithub / gist:4130545
Created November 22, 2012 10:52
Part of a series of instructions on how to use Git in combination with Dropbox
D:\My Dropbox\Git repos>git clone d:\data\projects\foo --bare