Skip to content

Instantly share code, notes, and snippets.

$ tree -h .git/objects/
.git/objects/
├── [4.0K]  0e
│   └── [  75]  50fdbbefb059864c397d7eaf054c7af58a23cf
├── [4.0K]  10
│   └── [  75]  6d3b1c00034193bbe91194eb8a90fc45006377
├── [4.0K]  3e
│   └── [  75]  50041e82b225ca9e9b2641548b0c1b81eb971b
├── [4.0K] 45
@Katee
Katee / Hugo Issues.md
Last active August 30, 2017 02:19
Hugo Issues

TODO

  • Turn off generation of /posts/feed.xml without stopping generation of /feed.xml.
  • Turn off generation of category and tags pages without breaking categories and tags completely.
  • Would like to have an asset pipeline so CSS is versioned in the filename.

Fixed

  • I want Pygments to generate using CSS instead of inline styles so I can colorize differently. (The options the docs say to use do not work) Got this working.
gem install nokogiri -v '1.6.8' -- --use-system-libraries --with-xml2-include="$(brew --prefix libxml2)/include/libxml2"
alias gs='git status'
alias gst='git stash'
alias gsp='git stash pop'
alias gcm='git ci -m'
alias gl='git l'
alias gd='git diff'
alias gdc='git diff --cached -w'
alias gpl='git pull'
alias gps='git push'
alias gnb='git nb' # new branch aka checkout -b
require 'uri'
require "minitest/autorun"
# Use a module as a shared example
module RedirectTest
def test_with_reasonable_path
assert_equal "/reasonable-path", redirect_path("/reasonable-path")
end
def test_with_reasonable_path_with_query
@Katee
Katee / video_list.txt
Created June 18, 2015 14:45
Creating a concatenated video with ffmpeg
file 'video.mp4'
file 'video.mp4'

Android Kiosk

Tested on ~20 Samsung Tab 4 8.0 (SM-T330NU) running 4.4.2 but unfortunately no other devices.

If the tablet already has the extremely extremely obnoxious Samsung demo mode you'll need to do a factory reset. Go to Samsung demo settings from the notification tray, first password is 5444, admin password to factory reset is M729Q16K8546.

Enable Development options by going to Settings -> General -> About device and tapping on the Build number ~8 times. When development options appear enable USB debugging (Stay awake is also a option to enable for a kiosk.)

Install Towelroot, launch it and click the magic button. You now have root and can uninstall Towelroot. This will allow us to completey remove the top bar later.

@Katee
Katee / clip
Created December 7, 2013 06:22
Put this somewhere in your path to easily copy files to your clipboard.
#!/bin/bash
cat "$1" | pbcopy
var Literal = {
consume: function(literal, tokens) {
if (tokens !== undefined && tokens[0] !== undefined && tokens[0].content === literal) {
return [tokens[0], tokens.slice(1)];
}
return [null, tokens];
}
};
@Katee
Katee / gist:7647782
Last active December 29, 2015 09:08
app.configure(function(){
app.set('port', process.env.PORT || conf.port);
app.use(express.logger('dev'));
app.use(express.bodyParser());
app.use(express.cookieParser());
app.use(express.methodOverride());
app.use(app.router);
app.use(express.static('public'));
});