Skip to content

Instantly share code, notes, and snippets.

View dodegaard's full-sized avatar

Doug Odegaard dodegaard

  • ServiceNow
  • Missoula, MT
  • 21:31 (UTC -07:00)
View GitHub Profile
@shirhatti
shirhatti / Program.cs
Created February 10, 2020 16:33
MWA Set environment variable on ApplicationPool
using Microsoft.Web.Administration;
namespace MWASample
{
public class Program
{
static void Main(string[] args)
{
var serverManager = new ServerManager();
var config = serverManager.GetApplicationHostConfiguration();
with table_stats as (
select psut.relname,
psut.n_live_tup,
1.0 * psut.idx_scan / greatest(1, psut.seq_scan + psut.idx_scan) as index_use_ratio
from pg_stat_user_tables psut
order by psut.n_live_tup desc
),
table_io as (
select psiut.relname,
sum(psiut.heap_blks_read) as table_page_read,
@staltz
staltz / introrx.md
Last active November 11, 2025 05:59
The introduction to Reactive Programming you've been missing
using System;
using System.IO;
using System.Net;
using System.Text;
using System.Collections.Generic;
public class SSEvent {
public string Name { get; set; }
public string Data { get; set; }
@bkono
bkono / spin-js-example.html
Created August 21, 2011 19:27
spin.js example
<!doctype html>
<head>
<title>Hi</title>
<style>
#spin {
background: #333;
color: white;
float: left;
width: 200px;
height: 200px;
@mattpodwysocki
mattpodwysocki / jsconf2011-talks.txt
Created May 5, 2011 18:30
JSConf talks and resources
Track A
Bytes and Blobs – David Flanagan @__DavidFlanagan
Slides: http://davidflanagan.com/Talks/jsconf11/BytesAndBlobs.html
Conference Wifi Redux - Malte Ubi @cramforce
Sashimi: https://github.com/cramforce/Sashimi
Slides: http://social-traffic.streamie.org/preso/static/#slide1
Run Your JS everywhere with Jellyfish – Adam Christian @admc