Skip to content

Instantly share code, notes, and snippets.

View czottmann's full-sized avatar
💭
Sure.

Carlo Zottmann czottmann

💭
Sure.
View GitHub Profile
@czottmann
czottmann / install.sh
Last active March 5, 2017 12:12
[WIP] Provisioning my Mac after installing a new drive & setting up Sierra
# Install Xcode command line tools
xcode-select --install
# Install & set up homebrew
ruby ./install-homebrew.rb \
&& brew doctor \
&& brew update \
&& brew cleanup \
&& brew install caskroom/cask/brew-cask \
@czottmann
czottmann / ghost-json-export-to-markdown.rb
Created January 30, 2017 18:10
Ghost export (JSON) to Markdown files (while dropping a lot of metadata)
#!/Users/carlo/.rubies/ruby-2.3.3/bin/ruby
require 'json'
require 'ostruct'
json_content = File.open('ghost.2017-01-27.json', 'r').read
nodes = JSON.parse(json_content)
posts = nodes['db'][0]['data']['posts']
figures_pattern = /<figure>\s*\!\[(.+)\]\((.+)\)\s*<figcaption>.+<\/figcaption>\s*<\/figure>/
Verifying that "czottmann.id" is my Blockstack ID. https://onename.com/czottmann
Verifying that "czottmann.id" is my Blockstack ID. https://onename.com/czottmann
Verifying that "czottmann.id" is my Blockstack ID. https://onename.com/czottmann
@czottmann
czottmann / untitled
Last active April 5, 2016 09:13
Ticket template.txt
h3. Issue description
h3. Steps to reproduce the issue
#
#
#
@czottmann
czottmann / untitled
Created April 5, 2016 09:07
Ticket template.txt
h3. Issue description
h3. Steps to reproduce the issue
#
#
#
@czottmann
czottmann / wtf-pl.txt
Last active March 21, 2016 08:48
WTF public license
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2016 YOUR NAME <YOUR@EMAIL.ADDRESS>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
scompler@ /Users/carlo/Code/k-scompler/scompler
├─┬ babel-eslint@4.1.8
│ ├── acorn-to-esprima@1.0.7
│ ├─┬ babel-core@5.8.35
│ │ ├── babel-plugin-constant-folding@1.0.1
│ │ ├── babel-plugin-dead-code-elimination@1.0.2
│ │ ├── babel-plugin-eval@1.0.1
│ │ ├── babel-plugin-inline-environment-variables@1.0.1
│ │ ├── babel-plugin-jscript@1.0.4
│ │ ├── babel-plugin-member-expression-literals@1.0.1
@czottmann
czottmann / xhr-example.js.jsx
Last active January 29, 2016 10:07
xhr-example.js.jsx
export default class X extends React.Component {
constructor(props) {
super(props);
this.state = {
collection: [],
};
}