Skip to content

Instantly share code, notes, and snippets.

View rsyring's full-sized avatar

Randy Syring rsyring

View GitHub Profile
@rsyring
rsyring / gist:74654ef6b97386354e7377bb350c635f
Created April 5, 2017 17:23
installing scudcloud 1.5 with error message "Depends: python3-pyqt5 but it is not going to be installed"
# See for more context: https://github.com/raelgc/scudcloud/issues/550
rsyring@loftex:~$ sudo apt-get install scudcloud
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
@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)
@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 / 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:

<?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 / 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
@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 / 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
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)