Skip to content

Instantly share code, notes, and snippets.

View rsyring's full-sized avatar

Randy Syring rsyring

View GitHub Profile
Wed Feb 16 17:44:56 2011 c:\windows\temp\tmp6ri9no
149 function calls in 0.002 seconds
Ordered by: cumulative time
ncalls tottime percall cumtime percall filename:lineno(function)
1 0.000 0.000 0.002 0.002 <string>:1(<module>)
1 0.000 0.000 0.002 0.002 C:\Python27\lib\site-packages\isapi_wsgi-0.4.2-py2.7-win32.egg\isapi_wsgi.py:432(_run_app)
Tue Feb 15 17:27:18 2011 c:\users\randys~1\appdata\local\temp\tmpkg6_ok
1590097 function calls in 17.619 seconds
Ordered by: cumulative time
ncalls tottime percall cumtime percall filename:lineno(function)
1 0.000 0.000 17.619 17.619 <string>:1(<module>)
1 0.057 0.057 17.619 17.619 test_iw.py:20(dotest)
10000 0.171 0.000 17.562 0.002 test_iw.py:17(simreq)
@rsyring
rsyring / install-monodevelop-2.8.6.5.sh
Created March 4, 2012 22:06
Script to Install MonoDevelop 2.8.6.5 on Ubuntu 11.10 Oneiric
#!/bin/bash -e
TOPDIR=$(pwd)
BUILDDIR=$TOPDIR/build
PREFIX=/opt/mono-2.10
export PATH=$PREFIX/bin:$PATH
export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig:$PKG_CONFIG_PATH
export LD_LIBRARY_PATH=$PREFIX/lib:$LD_LIBRARY_PATH
@rsyring
rsyring / gist:2562557
Created April 30, 2012 20:50
monodevelop nunit bug #4776
using System;
using NUnit.Framework;
using SomeProject.Tests.Utils;
namespace Some.Project.Tests {
[SetUpFixture]
public class DBInit {
@rsyring
rsyring / gist:4140704
Created November 24, 2012 17:58
rvm #718
rvm install 1.8.7
No binary rubies available for: downloads/ruby-1.8.7-p371.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Installing Ruby from source to: /usr/local/rvm/rubies/ruby-1.8.7-p371, this may take a while depending on your cpu(s)...
ruby-1.8.7-p371 - #downloading ruby-1.8.7-p371, this may take a while depending on your connection...
ruby-1.8.7-p371 - #extracting ruby-1.8.7-p371 to /usr/local/rvm/src/ruby-1.8.7-p371
ruby-1.8.7-p371 - #extracted to /usr/local/rvm/src/ruby-1.8.7-p371
Applying patch /usr/local/rvm/patches/ruby/1.8.7/stdout-rouge-fix.patch
Applying patch /usr/local/rvm/patches/ruby/1.8.7/no_sslv2.diff
ruby-1.8.7-p371 - #configuring
<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type='text/xsl' href='freb.xsl'?>
<!-- saved from url=(0014)about:internet -->
<failedRequest url="http://localhost:80/testapp4.0/default.aspx"
siteId="1"
appPoolId="Classic .NET AppPool"
processId="6860"
verb="POST"
remoteUserName=""
userName=""
@rsyring
rsyring / keybase.md
Created February 5, 2016 21:41
keybase.md

Keybase proof

I hereby claim:

  • I am rsyring on github.
  • I am randysyring (https://keybase.io/randysyring) on keybase.
  • I have a public key ASAB9i5eth_mEtEPjCuc64rj3P9PEXrohrZe790bJn8yRwo

To claim this, I am signing this object:

@rsyring
rsyring / gist:6895791
Created October 9, 2013 03:33
python keyring setup for ubuntu and virtualenvs
import os
from os import path as osp
import sys
import keyring
paths_to_link = (
'/usr/lib/python2.7/dist-packages/dbus',
'/usr/lib/python2.7/dist-packages/_dbus_bindings.so',
'/usr/lib/python2.7/dist-packages/_dbus_glib_bindings.so',
@rsyring
rsyring / random.py
Created April 5, 2017 14:31
random string script using Click library
#!/usr/bin/env python
from __future__ import print_function
import random
import click
@click.command()
@click.argument('length', type=click.INT)