Skip to content

Instantly share code, notes, and snippets.

View urbanslug's full-sized avatar

Njagi Mwaniki urbanslug

View GitHub Profile
--- threadscope-0.2.2/GUI/SaveAs.hs 2012-11-02 07:57:16.000000000 +0300
+++ threadscope-new-0.2.2/GUI/SaveAs.hs 2014-03-05 15:45:54.042702589 +0300
@@ -10,6 +10,20 @@
-- Imports for GTK
import Graphics.UI.Gtk
import Graphics.Rendering.Cairo
+ ( Render
+ , Operator(..)
+ , Format(..)
+ , rectangle
\o/
||
/\
\o|
||
/\
|o/
||
import Data.Monoid
power :: (Monoid a, Integral i) => a -> i -> a
power _ 0 = mempty
power a n | r==0 = b
| otherwise = a `mappend` b
where (q,r) = n `divMod` 2
b = (a `mappend` a) `power` q
_____ ____ ___ ____ _ __ __ _ _ _
| ___| | _ \ |_ _| | _ \ / \ \ \ / / | | | |
| |_ | |_) | | | | | | | / _ \ \ V / | | | |
| _| | _ < | | | |_| / / ___ \ | | |_|_|_|
|_| |_| \_\ |___| |____/ /_/ \_\ |_| (_|_|_)
_____ ____ ___ ____ _ __ ___ _ _
| ___| _ \|_ _| _ \ / \\ \ / / | | |
| |_ | |_) || || | | |/ _ \\ V /| | | |
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
("marmalade" . "http://marmalade-repo.org/packages/")
("melpa" . "http://melpa.milkbox.net/packages/")))
<Randall> for future reference:
<Randall> the right to free speech means you can't be arrested for speech (with narrow exceptions for libel and public safety)
<Randall> it does NOT mean that anyone else has to listen to your bullshit
<Randall> and it does not mean that any other person or group is required to host you and your bullshit, or put up with it when you hang around them repeating it
<Randall> the right to free speech is not the right to speak without consequence or response
<Randall> and that response is often "get the fuck out of my house/campus/studio/irc channel"
<Randall> when you think about it, defending an opinion by citing "free speech" is kind of the ultimate concession, because it says that your position is so weak that the best thing you can say in support of it is that it is not literally illegal to express.
<Randall> which isn't a defense, it's just a statement that you've met the minimum standard for speaking. it's like saying "the thing I said can't be wrong! the spellchecker s
#!/usr/bin/env bash
# cron job to update letsencrypt cert from hyper_ch #letsencrypt irc.freenode.net
days=60 # After how many days should the cert be renewed?
domain="blog.urbanslug.com" # Provide domain name
#*************************************************************************************************************#
# #
# HERE BE DRAGONS #
# #
#*************************************************************************************************************#
# Maintainer: Ashley Whetter <(firstname) @ awhetter.co.uk>
# Contributor: Eothred <yngve.levinsen@gmail.com>
pkgname=spotify
pkgver=1.0.45.186
_anotherpkgver=.g3b5036d6
pkgrel=1
pkgdesc="A proprietary music streaming service"
arch=('x86_64' 'i686')
license=('custom:"Copyright (c) 2006-2010 Spotify Ltd"')

Keybase proof

I hereby claim:

  • I am urbanslug on github.
  • I am urbanslug (https://keybase.io/urbanslug) on keybase.
  • I have a public key whose fingerprint is 5990 3B71 F28B D7DE 5A21 4A4A E3E1 AE32 F8D0 CD03

To claim this, I am signing this object:

Get pretty request time breakdown from cURL with -w or --write-out:

$ curl -u username:password -w "@curl-format.txt" -o response.txt -H "Accept: text/html" -X GET "https://blog.urbanslug.com"

pass -s to get rid of the progress output:

$ curl -s -u username:password -w "@curl-format.txt" -o response.txt -H "Accept: text/html" -X GET "https://blog.urbanslug.com"