Skip to content

Instantly share code, notes, and snippets.

@epidemicz
epidemicz / install-new-dot-file.ps1
Last active March 2, 2016 07:28
Creates or removes the "New .dotfile here" explorer menu item
Param ([Boolean]$remove = $false)
function Install-New-Dot-File([Boolean]$remove = $false)
{
$hkcr = Test-Path "HKCR:\"
if ($hkcr -ne $true)
{
$registry = New-PSDrive -PSProvider registry -Name HKCR -Root HKEY_CLASSES_ROOT
}
@ECHO off
REM You will need to change this
SET VsDevCmd="D:\vs2015\Common7\Tools\VsDevCmd.bat"
REM ---------------------------------------------------
SET xml_file=%1
CALL %VsDevCmd%
FOR %%i IN ("%xml_file%") DO (
SET filename=%%~ni
)
SET xsd_file=%filename%.xsd
@epidemicz
epidemicz / install_sqlplus.md
Created May 17, 2016 17:05 — forked from tcnksm/install_sqlplus.md
How to install oracle client to Ubuntu 12.04

Install SQL*Plus

  1. Download .rpm package here
    • oracle-instantclinet*-basic-*.rpm
    • oracle-instantclinet*-devel-*.rpm
    • oracle-instantclinet*-sqlplus-*.rpm
  2. Install alien (sudo apt-get install alien)
  3. Convert the rpm files and install
    • sudo alien -i oracle-instantclinet*-basic-*.rpm
  • sudo alien -i oracle-instantclinet*-devel-*.rpm
@epidemicz
epidemicz / mint_date_range.js
Last active January 26, 2017 06:32 — forked from n8henrie/mint_date_range.js
Bookmarklet to filter Mint transactions by date range
// mint_date_range.js
// https://mint.lc.intuit.com/questions/948537-mint-faq-how-can-i-view-transactions-within-a-specific-date-range
// jsmin <mint_date_range.js
//
// Copy the minified version below into a bookmarklet
// javascript:(function(){var currentUrl=window.location.href;var destUrl="https://wwws.mint.com/transaction.event?";var today=new Date();var today_str=today.getMonth()+1+"/"+today.getDate()+"/"+today.getFullYear();var startDate=prompt("Start Date? Format: MM/DD/YYYY","");var endDate=prompt("End Date? Format: MM/DD/YYYY",today_str);destUrl+="&startDate="+startDate+"&endDate="+endDate;if(currentUrl.indexOf("wwws.mint.com")>-1){location.href=destUrl;}else{window.open(destUrl);}})();
var currentUrl = window.location.href;
var destUrl = "https://wwws.mint.com/transaction.event?";
@epidemicz
epidemicz / Makefile
Created August 23, 2022 03:32
A dead simple makefile that just works
CC = gcc
CFLAGS = -Wall -Og
RM = rm -f
ARGS = myfile.txt
default: all
all: main
main: main.c
@epidemicz
epidemicz / gist:08e44f05496f60e267dbfe684f67cf2d
Created August 16, 2023 01:31
Powershell friendly curl git release api request
curl -L `
-H "Accept: application/vnd.github+json" `
-H "Authorization: Bearer <YOUR-TOKEN>" `
-H "X-GitHub-Api-Version: 2022-11-28" `
https://api.github.com/repos/OWNER/REPO/releases