Skip to content

Instantly share code, notes, and snippets.

Avatar

Aaron Mason thirdwheel

View GitHub Profile
@thirdwheel
thirdwheel / Recover_Deleted_Data_Proc.sql
Created Oct 14, 2020
Recover deleted data in a SQL Database from 2005 onwards
View Recover_Deleted_Data_Proc.sql
-- Script Name: Recover_Deleted_Data_Proc
-- Script Type : Recovery Procedure
-- Develop By: Muhammad Imran
-- Date Created: 15 Oct 2011
-- Modify Date: 7 Oct 2020
-- Version : 3.1
-- Notes : Included BLOB data types for recovery.& Compatibile with Default , CS collation , Arabic_CI_AS.
-- Changed 7 Oct 2020 - Add support for using transaction log backups
IF OBJECT_ID('dbo.Recover_Deleted_Data_Proc') is not null
@thirdwheel
thirdwheel / main.go
Created Dec 15, 2019
GWT Sessions Package - new session for each request
View main.go
package main
import (
"fmt"
"log"
"net/http"
"os"
"github.com/gorilla/sessions"
)
@thirdwheel
thirdwheel / ipsec.conf
Created Dec 23, 2018
IPSec connection from behind NAT
View ipsec.conf
# 10.0.0.21 is the "public" IP address - local is 10.40.180.50 (DHCP)
ike esp from 10.0.0.21 to 10.0.0.23
# 10.255.255.253 is the IP on this side of a gif(4) tunnel, the other is the other side
ike esp from 10.255.255.253 to 10.255.255.252 peer 10.0.0.23
# ifconfig output at https://pasteboard.co/HT0kGu7.png
# tcpdump output at https://pasteboard.co/HT0m2JA.png
You can’t perform that action at this time.