Skip to content

Instantly share code, notes, and snippets.

🐰
Happy

Igor Dvorkin idvorkin

🐰
Happy
View GitHub Profile
View build-mosh-and-tmux.sh
#!/bin/sh
## https://gist.github.com/eminence/85961d47244a140fde89314837d0db0a
set -e
PWD=`pwd`
DD=$PWD/downloads/ # Download Directory
function download {
View gist:7341cb40a60cfa3b9df91f106769d4ca
[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
@idvorkin
idvorkin / SwapGitHubPagesAndLocalPretzelBlog.js
Last active Dec 25, 2015
swap between github pages and local pretzel blog
View SwapGitHubPagesAndLocalPretzelBlog.js
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 / monitorsize.r
Last active Nov 29, 2015
Computer Monitor Size Given Ratio and Diagonal
View monitorsize.r
# 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))
View powershell-web-server.ps1
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 = @{
View 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
You can’t perform that action at this time.