Skip to content

Instantly share code, notes, and snippets.

View gozes's full-sized avatar

Juan A. Sanchez gozes

View GitHub Profile
startkde: Starting up...
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
kbuildsycoca4 running...
kbuildsycoca4(433) KBuildSycoca::checkTimestamps: checking file timestamps
kbuildsycoca4(433) KBuildSycoca::checkTimestamps: timestamps check ok
kbuildsycoca4(433) kdemain: Emitting notifyDatabaseChanged ()
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
[ 8665.911]
X.Org X Server 1.14.1
Release Date: 2013-04-17
[ 8665.911] X Protocol Version 11, Revision 0
[ 8665.911] Build Operating System: Linux 3.8.7-1-ARCH x86_64
[ 8665.911] Current Operating System: Linux Batou 3.9.5-1-ARCH #1 SMP PREEMPT Sat Jun 8 09:22:45 CEST 2013 x86_64
[ 8665.911] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=1d2d0cd2-df36-434f-a2d1-bafdd047d966 ro quiet
[ 8665.912] Build Date: 17 April 2013 02:37:06PM
[ 8665.912]
[ 8665.912] Current version of pixman: 0.30.0
@@ -20,9 +20,10 @@ blog_index_dir = 'source' # directory for your blog's index pa
deploy_dir = "_deploy" # deploy directory (for Github pages deployment)
stash_dir = "_stash" # directory to stash posts for speedy generation
posts_dir = "_posts" # directory for blog files
+org_posts_dir = "org_posts"
themes_dir = ".themes" # directory for blog files
-new_post_ext = "markdown" # default new post file extension when using the new_p
-new_page_ext = "markdown" # default new page file extension when using the new_p
+new_post_ext = "org" # default new post file extension when using the new_post t
+new_page_ext = "org" # default new page file extension when using the new_page t
@gozes
gozes / news.py
Last active August 29, 2015 14:06 — forked from wirewc/news.py
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
"""This reads the news for google news."""
import feedparser,requests,json,urllib,urllib2
tech = """https://news.google.com/news/section?pz=1&cf=all&ned=us&hl=en&topic=tc&output=rss"""
archNewsUrl = """https://www.archlinux.org/feeds/news/"""
hadUrl = """http://feeds2.feedburner.com/hackaday/LgoM"""
mlvUrl= """http://makelehighvalley.com/blog/feed/"""
h76Url = """http://feeds.feedburner.com/Hive76"""
crackedUrl = """http://feeds.feedburner.com/CrackedRSS"""
@gozes
gozes / rob.go
Last active August 29, 2015 14:11 — forked from Jxck/rob.go
type errWriter struct {
w io.Writer
err error
}
func (e *errWriter) Write(p []byte) {
if e.err != nil {
return
}
_, e.err = e.w.Write(p)
@gozes
gozes / lib.rs
Last active August 29, 2015 14:23 — forked from ucarion/lib.rs
/Users/ulyssecarion/rust/sparsile/src/lib.rs:7:9: 13:10 error: cannot infer an appropriate lifetime for lifetime parameter `'a` due to conflicting requirements
/Users/ulyssecarion/rust/sparsile/src/lib.rs:7 State {
/Users/ulyssecarion/rust/sparsile/src/lib.rs:8 runState: |firstState| {
/Users/ulyssecarion/rust/sparsile/src/lib.rs:9 let (result, nextState) = (self.runState)(firstState);
/Users/ulyssecarion/rust/sparsile/src/lib.rs:10
/Users/ulyssecarion/rust/sparsile/src/lib.rs:11 (f(result).runState)(nextState)
/Users/ulyssecarion/rust/sparsile/src/lib.rs:12 }
...
/Users/ulyssecarion/rust/sparsile/src/lib.rs:6:65: 14:6 note: first, the lifetime cannot outlive the block at 6:64...
/Users/ulyssecarion/rust/sparsile/src/lib.rs:6 fn and_then<B>(&self, f: |A| -> State<S, B>) -> State<S, B> {
echo -----BEGIN CERTIFICATE----- > encoded.txt
echo Just Base64 encode your binary data
echo TVoAAA== >> encoded.txt
echo -----END CERTIFICATE----- >> encoded.txt
certutil -decode encoded.txt decoded.bin
@gozes
gozes / WinKeyLog.py
Created November 26, 2015 14:20 — forked from hugsy/WinKeyLog.py
Cheap Windows userland keylogger
"""
Simple UserLand Keylogger for Windows
Based on pyHook.
@_hugsy_
"""
import sys
from ctypes import *
try:
@gozes
gozes / keystone.h
Created April 22, 2016 17:38 — forked from aquynh/keystone.h
/* Keystone Assembler Engine (www.keystone-engine.org) */
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2016 */
#ifndef KEYSTONE_ENGINE_H
#define KEYSTONE_ENGINE_H
#ifdef __cplusplus
extern "C" {
#endif
@gozes
gozes / Logging.hs
Created April 25, 2016 11:08 — forked from queertypes/Logging.hs
Simple, context-rich logging module in Haskell
module API.Logging (
-- * Initialize
mkLog,
-- * Context, Types
Context(..),
Method(..),
Log,
-- * Logging