Skip to content

Instantly share code, notes, and snippets.

# Maintainer: James Thomas <dairy_water at yahoo dot co dot uk>
# Contributor: Anton Larionov <diffident dot cat at gmail dot com>
_pkgname=cantata
/**
* GitStats - default style
*/
body {
color: black;
background-color: #fefefe;
font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif;
color: #333;
line-height: 1.5em;
}
#!/usr/bin/env runhaskell
{-Thanks to jaspervdj: http://jaspervdj.be/ -}
--------------------------------------------------------------------------------
{-# LANGUAGE Arrows #-}
{-# LANGUAGE OverloadedStrings #-}
module Main where
--------------------------------------------------------------------------------
// ==UserScript==
// @name Hacked News
// @match https://news.ycombinator.com/*
// @match http://news.ycombinator.com/*
// @description For a tidier Hacker News
// @version .01
// ==/UserScript==
var css = '<style type="text/css">'
// Wildcards
user@1000.service - User Manager for 1000
Loaded: loaded (/usr/lib/systemd/system/user@.service; static)
Drop-In: /etc/systemd/system/user@.service.d
└─environment.conf
Active: active (running) since Tue 2013-10-22 11:07:46 IST; 9h ago
Main PID: 1912 (systemd)
Status: "Startup finished in 22.563s."
CGroup: /user.slice/user-1000.slice/user@1000.service
├─1912 /usr/lib/systemd/systemd --user
├─1914 (sd-pam)
@rejuvyesh
rejuvyesh / rc.lua
Last active December 26, 2015 13:49
-- search
awful.key({modkey }, "g", function()
awful.prompt.run({ prompt = "<span foreground='#7f9f7f'>Google Search:</span> "},
promptbox[mouse.screen].widget,
function(input)
awful.util.spawn_with_shell("searchGoogle.sh " .. input)
end, nil
)
end),
awful.key({modkey }, "s", function()
mex -v -L'C:\Program Files (x86)\GnuWin32\lib' -l'libgsl' -l'libgslcblas' -I'C:\Program Files (x86)\GnuWin32\include' test2.c kmeans.c function.c 'C:\Program Files (x86)\GnuWin32\lib\libgsl.dll.a'
#!/bin/sh
#
# File: win.sh
#
# Created: Wednesday, December 11 2013 by rejuvyesh <mail@rejuvyesh.com>
# License: GNU GPL 3 <http://www.gnu.org/copyleft/gpl.html>
#
TMW_ROOT="$MATLAB"
MLIBS="-L$TMW_ROOT/bin/$Arch -lmx -lmex -lmat"
RPATH="-Wl,-rpath-link,$TMW_ROOT/bin/$Arch"
@rejuvyesh
rejuvyesh / also
Last active December 31, 2015 01:19
>3 gem update --verbose
Updating installed gems
GET https://api.rubygems.org/specs.4.8.gz
302 Moved Temporarily
HEAD http://api.rubygems.org/specs.4.8.gz
302 Moved Temporarily
HEAD http://production.s3.rubygems.org/specs.4.8.gz
200 OK
GET http://api.rubygems.org/specs.4.8.gz
302 Moved Temporarily
# unregister broken GHC packages. Run this a few times to resolve dependency rot in installed packages.
# ghc-pkg-clean -f cabal/dev/packages*.conf also works.
function ghc-pkg-clean() {
for p in `ghc-pkg check $* 2>&1 | grep problems | awk '{print $6}' | sed -e 's/:$//'`
do
echo unregistering $p; ghc-pkg $* unregister $p
done
}
# remove all installed GHC/cabal packages, leaving ~/.cabal binaries and docs in place.