Skip to content

Instantly share code, notes, and snippets.

View foxbit19's full-sized avatar

foxbit19

View GitHub Profile
@foxbit19
foxbit19 / welcome.c
Created September 9, 2022 10:00
Simple C program to say welcome to the article reader
#include <stdio.h>
#include <string.h>
/**
* Says hello to the new reader
*/
void welcomeReader(char *inputName) {
char name[100];
strcpy(name, inputName);
printf("Welcome %s to the buffer overflow article! Happy reading!\n", name);
@foxbit19
foxbit19 / forceDownload.js
Last active March 16, 2021 14:53 — forked from jmcarp/forceDownload.js
Generate URL from blob and force file download in JavaScript
/**
* Generates an URL from blob data
* @param blob data to use for URL generation
*/
function generateURL(blob) {
return URL.createObjectURL(blob);
}
/**
* Dispose URL previusly generated to avoid memory issues.
@foxbit19
foxbit19 / configure.ps1
Last active March 7, 2018 16:21
A powershell script to generate web.config from a template
clear
$template = ".\web.config.template"
$confFile = "web.config"
"`n***********************"
"* Configuration script *"
"*************************"
function askConfirm(){