Skip to content

Instantly share code, notes, and snippets.

View relrod's full-sized avatar

Rick Elrod relrod

View GitHub Profile
ricky@t520 99% ~/devel/python/fedora/fas (FAS_3.0)$ rm -rf ~/.virtualenvs/fas-python2.7/
ricky@t520 99% ~/devel/python/fedora/fas (FAS_3.0)$ export WORKON_HOME=$HOME/.virtualenvs
ricky@t520 99% ~/devel/python/fedora/fas (FAS_3.0)$ source /usr/bin/virtualenvwrapper.sh
ricky@t520 99% ~/devel/python/fedora/fas (FAS_3.0)$ ./bootstrap.py
Bootstrapping fas...
Trying 'rmvirtualenv fas-python2.7'
Removing fas-python2.7...
Did not find environment /home/ricky/.virtualenvs/fas-python2.7 to remove.
option_applicative =
{|
pure := Some;
ap := option_ap;
identity_law := fun (a : Type) (x : option a) =>
match
x as o return (option_ap (Some identity) o = identity o)
with
| Some a0 => eq_refl
| None => eq_refl
module Main
outputPasswd : IO ()
outputPasswd = do
x <- readFile "/etc/passwd"
putStrLn x
main : IO ()
main = outputPasswd
ricky@t520 66% /tmp/purescript-machines (master)$ npm
module.js:340
throw err;
^
Error: Cannot find module 'graceful-fs'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
@relrod
relrod / gist:71b4426886c54b26fa35
Last active August 29, 2015 14:11
Works well
ricky@t520 96% ~$ host ebay.com
name.c:2445: REQUIRE((((source) != ((void *)0)) && (((const isc__magic_t *)(source))->magic == ((('D') << 24 | ('N') << 16 | ('S') << 8 | ('n')))))) failed, back trace
#0 0x3f984137a7 in ??
#1 0x3f984136fa in ??
#2 0x3f98880dbc in ??
#3 0x409a49 in ??
#4 0x409aea in ??
#5 0x409ca8 in ??
#6 0x40ef1a in ??
#7 0x3f98435ecb in ??
diff --git a/spins.fedoraproject.org/data/templates/master.html b/spins.fedoraproject.org/data/templates/master.html
index 105c92f..002ed72 100644
--- a/spins.fedoraproject.org/data/templates/master.html
+++ b/spins.fedoraproject.org/data/templates/master.html
@@ -150,7 +150,7 @@ class Torrents(object):
return random.randint(0, len(list)-1)
torrents = Torrents()
-release = '20'
+release = '21'
00:02.0 VGA compatible controller [0300]: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0126] (rev 09) (prog-if 00 [VGA controller])
Subsystem: Lenovo Device [17aa:21cf]
Flags: bus master, fast devsel, latency 0, IRQ 28
Memory at f0000000 (64-bit, non-prefetchable) [size=4M]
Memory at e0000000 (64-bit, prefetchable) [size=256M]
I/O ports at 5000 [size=64]
Expansion ROM at <unassigned> [disabled]
Capabilities: <access denied>
Kernel driver in use: i915
Kernel modules: i915
@relrod
relrod / gist:1e0c4acb236b78a2e723
Created November 25, 2014 04:52
What could /possibly/ go wrong?
double
SECTION
__sin (double x)
{
double xx, res, t, cor, y, s, c, sn, ssn, cs, ccs, xn, a, da, db, eps, xn1,
xn2;
mynumber u, v;
int4 k, m, n;
double retval = 0;
type Latitude = Double
type Longitude = Double
type Altitude = Double
data Coordinate = Coordinate Latitude Longitude Altitude deriving (Show, Eq, Ord)
data AzElCord = AzelCord { azimuth :: Double, elevation :: Double, range :: Double } deriving (Show)
lookAngle :: Coordinate -> Coordinate -> AzElCord
lookAngle (Coordinate gLat gLon gAlt) (Coordinate pLat pLon pAlt) =
AzelCord azimuth' elevation' range'
@relrod
relrod / keybase.md
Created October 15, 2014 03:15
keybase.md

Keybase proof

I hereby claim:

  • I am CodeBlock on github.
  • I am relrod (https://keybase.io/relrod) on keybase.
  • I have a public key whose fingerprint is 9739 5A0F BDC8 1D20 A137 CDCC 0027 10B0 DAD3 DF0E

To claim this, I am signing this object: