Skip to content

Instantly share code, notes, and snippets.

View Kwpolska's full-sized avatar

Chris Warrick Kwpolska

View GitHub Profile
@Kwpolska
Kwpolska / A_PerpeTask.py
Last active August 29, 2015 14:01
PerpeTask evernote experiment
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
# The PerpeTask Evernote experiment
# Copyright © 2014, Chris “Kwpolska” Warrick.
# All rights reserved.
# Licensed under the BSD license.
"""The PerpeTask Evernote experiment."""
from evernote.api.client import EvernoteClient
@Kwpolska
Kwpolska / -
Created September 20, 2014 10:11
Archive: /media/windows/Android/gapps-kk-20140606-signed.zip
signed by SignApk
Length Date Time Name
--------- ---------- ----- ----
283576 2008-02-28 18:33 META-INF/com/google/android/update-binary
2538 2008-02-28 18:33 META-INF/com/google/android/updater-script
733 2008-02-28 18:33 install-optional.sh
1293 2008-02-28 18:33 optional/face/addon.d/71-gapps-faceunlock.sh
1509607 2008-02-28 18:33 optional/face/app/FaceLock.apk
1267168 2008-02-28 18:33 optional/face/lib/libfacelock_jni.so
@Kwpolska
Kwpolska / DeskClock-seconds.patch
Created October 12, 2014 17:07
A patch for Android’s DeskClock, adding seconds to the display. Partially broken and not really finalized, but AOSP apps are a pain to build.
diff --git a/res/layout/main_clock_frame.xml b/res/layout/main_clock_frame.xml
index ba51c2d..fdc9f05 100644
--- a/res/layout/main_clock_frame.xml
+++ b/res/layout/main_clock_frame.xml
@@ -41,7 +41,7 @@
<TextClock
android:id="@+id/digital_clock"
android:format12Hour="@string/main_clock_12_hours_format"
- android:format24Hour="@string/clock_24_hours_format"
+ android:format24Hour="@string/clock_24_hours_format_sec"
@Kwpolska
Kwpolska / README.md
Last active August 29, 2015 14:12
Nikola — auto-generated post plugin

Autopost plugin

This plugin was produced on request by Anton Akhmerov on the nikola-discuss mailing list. It uses the SignalHandler architecture to facilitate creation of posts/pages that are automatically generated by a task.

There is a specific execution order that, if broken, results in the plugin not functioning. The order is:

  1. AutopostSignal is loaded
  2. signalhandlers_loaded is fired, AutogenSignal.gen_files is called
  3. AutopostSignal.gen_files creates cache/autopost.rst and cache/autopost.meta
  4. Posts are scanned, cache/autopost.rst is one of them (see POSTS/PAGES in config)
@Kwpolska
Kwpolska / -
Created January 10, 2015 17:44
<!DOCTYPE html>
<html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="Tags and Categories">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Tags and Categories | My Nikola Site</title>
<link href="../assets/css/all-nocdn.css" rel="stylesheet" type="text/css">
@Kwpolska
Kwpolska / with-in-for.py
Created January 15, 2015 17:32
with in for
import io
files = ['foo', 'bar', 'baz']
for fn in files:
with io.open(fn, 'r', encoding='utf-8') as fh:
print('file {0}:'.format(fn))
print(fh.read())
@Kwpolska
Kwpolska / README.md
Created January 26, 2015 14:45
Evernote Note Mover

This is some code that I intended to use to manage my Evernote workflow, but then decided a saved search (reminderDoneTime:*) is easier.

Fill in auth_token (that is, implement OAuth), APGuid (source notebook) and CTGuid (destination notebook). Figure out GUIDs using the two _nl lines.

All notes with a Done reminder in the APGuid notebook are moved to the CTGuid notebook.

@Kwpolska
Kwpolska / aur.zsh
Created January 30, 2015 09:47
AURgit automation
mkaur() {
pkg=$1
ssh aur-dev.archlinux.org setup-repo $1
git clone ssh+git://aur-dev.archlinux.org/$1.git/
cd $1
cp ~/git/aur-pkgbuilds/$1/* .
}
cpaur() {
pkg=$1
@Kwpolska
Kwpolska / README.md
Created February 15, 2015 17:29
Fix index hack for Nikola

This hacky plugin adds a post list to a file in post-processing, useful when you want post text out of a post list.

Use with care.

Usage:

Here is my hacky post list:

.. listofpostsgoeshere