Skip to content

Instantly share code, notes, and snippets.

@gmariani
gmariani / mssql-csv.aspx.vb
Created January 20, 2018 17:46
MSSQL export as CSV
Imports CompanyLibrary
Imports System.Data.DataTable
Imports System.Data.SqlClient
Imports System.Data.Sql
Imports System.Data.SqlTypes
Imports System.Configuration
Partial Class viewcsv
Inherits System.Web.UI.Page
Dim db As New CompanyDataContext
@gmariani
gmariani / disable_email_forward_hook.php
Last active September 20, 2021 21:34
Disable email forwarding to external domains in cPanel
#!/usr/local/cpanel/3rdparty/bin/php -q
<?php
/**
* @version 1.0.0
* @package Disable Email Forwards
* @author Gabriel Mariani
* @url https://coursevector.com
* @copyright Copyright (c) 2020 CourseVector LLC. All rights reserved.
* @license GNU/GPL license: https://www.gnu.org/copyleft/gpl.html
@gmariani
gmariani / timer.html
Created February 4, 2024 02:11
Timer
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Work Timer</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript">
var timerID = null, time = 0;
function startTimer() {
if (timerID == null) timerID = setInterval(onTimer, 100);