Skip to content

Instantly share code, notes, and snippets.

View idvorkin's full-sized avatar
🐰
Happy

Igor Dvorkin idvorkin

🐰
Happy
View GitHub Profile
@idvorkin
idvorkin / dumpMDForAction
Created December 9, 2012 14:24
dumpMDForAction
$$ Call DumpMD on the target of a System.Action(aka delgate).
$$ Tested on x64 only
$$ From: http://geekswithblogs.net/akraus1/archive/2012/05/20/149699.aspx
.echo usage - $$>a< ".\dumpMDForAction.dbg" addressOfObject
.loadby sos clr
$$ Sorry World, I did not find a simpler way. I'll explain the parts
$$ for the next time I'm feeling like doing this.
$$ DESIRE: t0 = (Action._methodPtrAux !=0) ? Action._methodPtrAux : Action._methodPtr
function Load-Packages
{
param ([string] $directory = 'Packages')
$assemblies = Get-ChildItem $directory -Recurse -Filter '*.dll' | Select -Expand FullName
foreach ($assembly in $assemblies) { [System.Reflection.Assembly]::LoadFrom($assembly) }
}
Load-Packages
$routes = @{
@idvorkin
idvorkin / monitorsize.r
Last active November 29, 2015 18:04
Computer Monitor Size Given Ratio and Diagonal
# From http://ig2600.blogspot.com/2015/11/monitor-sizes-and-ratios.html
# Example:
# > sizeBoth(27,1.77)
#[1] 13.28117 23.50767
size <- function (dim,ratio) dim/sqrt(1+(ratio)^2)
sizeBoth <- function (dim,ratio) c(size(dim,ratio), ratio*size(dim,ratio))
@idvorkin
idvorkin / SwapGitHubPagesAndLocalPretzelBlog.js
Last active December 25, 2015 15:25
swap between github pages and local pretzel blog
function swapLocalRemoteBlog() {
/*
* Pretzel renders, but doesn't navigate the same as github pages (GHP).
* Thus use GHP to navigate, then use this bookmarklet to swap with local pretzel blog.
*/
var currentUrl = document.URL;
var errorMessage = "Only works on Igor's Blog";
var githubBlogURL = "http://idvorkin.github.io";
var localPretzelBlogUrl = "http://localhost:8080";
var newUrl = "";
@idvorkin
idvorkin / gist:7341cb40a60cfa3b9df91f106769d4ca
Created September 30, 2017 17:23
Tableau Installation failure
[1B30:4A34][2017-09-30T10:21:17]i001: Burn v3.10.3.3007, Windows v10.0 (Build 15063: Service Pack 0), path: C:\Users\idvor\AppData\Local\Temp\{E1576AD6-6D51-46DE-BBD1-2270900C04F8}\.cr\TableauPublicDesktop-64bit-10-4-0.exe
[1B30:4A34][2017-09-30T10:21:17]i000: Initializing string variable 'LaunchTarget' to value '[INSTALLDIR]\bin\Tabpublic.exe'
[1B30:4A34][2017-09-30T10:21:17]i000: Initializing string variable 'DATABASEDRIVERS' to value '0'
[1B30:4A34][2017-09-30T10:21:17]i000: Initializing string variable 'REPORTINGSERVER' to value '0'
[1B30:4A34][2017-09-30T10:21:17]i000: Initializing string variable 'SCHEDULEREPORTINTERVAL' to value '0'
[1B30:4A34][2017-09-30T10:21:17]i000: Initializing string variable 'AUTOSAVE' to value '1'
[1B30:4A34][2017-09-30T10:21:17]i000: Initializing string variable 'AUTOUPDATE' to value '1'
[1B30:4A34][2017-09-30T10:21:17]i000: Initializing string variable 'AUTOUPDATESERVER' to value 'downloads.tableau.com'
[1B30:4A34][2017-09-30T10:21:17]i000: Initializing string variable 'INSTA
#!/bin/sh
## https://gist.github.com/eminence/85961d47244a140fde89314837d0db0a
set -e
PWD=`pwd`
DD=$PWD/downloads/ # Download Directory
function download {
<!DOCTYPE html>
<html lang="" data-theme="light">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="https://chat.openai.com/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Tags File Fixing</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/github-dark.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/highlight.min.js"></script>
<script>
" Common things in all of my vimrc's
" File in git: ~/gits/settings/default_vimrc
set nocompatible
set nohls
set ignorecase
set noincsearch
set guioptions-=T
set guioptions-=m
" Remove right hand scroll bars
set guioptions-=R
" Common things in all of my vimrc's
" File in git: ~/gits/settings/default_vimrc
set nocompatible
set nohls
set ignorecase
set noincsearch
set guioptions-=T
set guioptions-=m
" Remove right hand scroll bars
set guioptions-=R

Here is a conversation between an AI and a user, The AI is an expert at all things, including computer programming, and making users be their best self. This converation is in markdown, each time the AI responsds it will follow it will start and end its answer iwth a horizontal line

Are you an expert?


Yes. How can I help?