Skip to content

Instantly share code, notes, and snippets.

View jyc's full-sized avatar

jyc

View GitHub Profile
{"lastUpdated":1404452632,"Attack":{"Alaska":{"asOf":1404452623,"type":"Army","progress":"986/998"},"Florida":{"asOf":1404452625,"type":"Submarines","progress":"1369/1824"}},"error":null}
switch (json_last_error()) {
case JSON_ERROR_NONE:
echo ' - No errors';
break;
case JSON_ERROR_DEPTH:
echo ' - Maximum stack depth exceeded';
break;
case JSON_ERROR_STATE_MISMATCH:
echo ' - Underflow or the modes mismatch';
[jonathan@jc-t430-arch jyc]$ make html
pelican /home/jonathan/blogs/jyc/content -o /home/jonathan/blogs/jyc/output -s /home/jonathan/blogs/jyc/pelicanconf.py
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/pkg_resources.py", line 449, in _build_master
ws.require(__requires__)
File "/usr/lib/python3.4/site-packages/pkg_resources.py", line 742, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3.4/site-packages/pkg_resources.py", line 643, in resolve
raise VersionConflict(dist, req) # XXX put more info here
pkg_resources.VersionConflict: (pelican 3.4.0 (/usr/lib/python3.4/site-packages), Requirement.parse('pelican==3.3'))
Dec 09 13:14:59 jc-t430-arch kernel: wlan0: associate with 00:1a:1e:95:57:01 (try 1/3)
Dec 09 13:14:59 jc-t430-arch kernel: wlan0: RX AssocResp from 00:1a:1e:95:57:01 (capab=0x431 status=0 aid=1)
Dec 09 13:14:59 jc-t430-arch kernel: wlan0: associated
Dec 09 13:15:10 jc-t430-arch wpa_actiond[438]: Interface 'wlan0' reestablished connection to network 'eduroam'
# OPAM config report
# opam-version 1.2.2
# self-upgrade no
# os linux
# external-solver aspcud $in $out $criteria
# criteria -count(removed),-notuptodate(request),-sum(request,version-lag),-count(down),-notuptodate(changed),-count(changed),-notuptodate(solution),-sum(solution,version-lag)
# jobs 1
# repositories 1* (http)
# pinned 0
# current-switch 4.02.1
(bitmatch (u8vector 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1)
(((a double big) (b double big) (c boolean) (d boolean))
(vector a b c d)))
Press ENTER or type command to continue
; outputs #(0.0 0.0 1 1)
(write (bitmatch (u8vector 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1)
(((a double big) (b double big) (c 8) (d 8))
(vector a b c d))))
@jyc
jyc / nginx.conf
Created November 17, 2011 00:10
Addition to nginx.conf
## Compression
# src: http://www.ruby-forum.com/topic/141251
# src: http://wiki.brightbox.co.uk/docs:nginx
gzip on;
gzip_http_version 1.0;
gzip_comp_level 2;
gzip_proxied any;
gzip_min_length 1100;
gzip_buffers 16 8k;
#!/bin/bash
xrandr --output DVI-1 --right-of DVI-0
[Desktop Entry]
Encoding=UTF-8
Version=0.9.4
Type=Application
Name=ssh-add
Comment=Start ssh-add.
Exec=ssh-add "/home/jonathan/.ssh/id_rsa"
StartupNotify=false
Terminal=false
Hidden=false
[Desktop Entry]
Encoding=UTF-8
Version=0.9.4
Type=Application
Name=GNOME-Do
Comment=Start GNOME-Do.
Exec=gnome-do
StartupNotify=false
Terminal=false
Hidden=false