$ tree -h .git/objects/
.git/objects/
├── [4.0K] 0e
│ └── [ 75] 50fdbbefb059864c397d7eaf054c7af58a23cf
├── [4.0K] 10
│ └── [ 75] 6d3b1c00034193bbe91194eb8a90fc45006377
├── [4.0K] 3e
│ └── [ 75] 50041e82b225ca9e9b2641548b0c1b81eb971b
├── [4.0K] 45
- 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.
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem install nokogiri -v '1.6.8' -- --use-system-libraries --with-xml2-include="$(brew --prefix libxml2)/include/libxml2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
file 'video.mp4' | |
file 'video.mp4' |
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cat "$1" | pbcopy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]; | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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')); | |
}); |