Skip to content

Instantly share code, notes, and snippets.

Carlo Zottmann carlo

Block or report user

Report or block carlo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@carlo
carlo / install.sh
Last active Mar 5, 2017
[WIP] Provisioning my Mac after installing a new drive & setting up Sierra
View install.sh
# 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 \
@carlo
carlo / ghost-json-export-to-markdown.rb
Created Jan 30, 2017
Ghost export (JSON) to Markdown files (while dropping a lot of metadata)
View ghost-json-export-to-markdown.rb
#!/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>/
View gist:5a574b9f45c2d5e9f0619c2aebba2135
Verifying that "czottmann.id" is my Blockstack ID. https://onename.com/czottmann
View gist:9ad80afe589a8295de0a3429eb9f1b8c
Verifying that "czottmann.id" is my Blockstack ID. https://onename.com/czottmann
View gist:816f80d4eed7637b7434aa6bcac744a8
Verifying that "czottmann.id" is my Blockstack ID. https://onename.com/czottmann
@carlo
carlo / untitled
Last active Apr 5, 2016
Ticket template.txt
View untitled
h3. Issue description
h3. Steps to reproduce the issue
#
#
#
@carlo
carlo / untitled
Created Apr 5, 2016
Ticket template.txt
View untitled
h3. Issue description
h3. Steps to reproduce the issue
#
#
#
@carlo
carlo / wtf-pl.txt
Last active Mar 21, 2016
WTF public license
View wtf-pl.txt
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
View untitled
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
@carlo
carlo / xhr-example.js.jsx
Last active Jan 29, 2016
xhr-example.js.jsx
View xhr-example.js.jsx
export default class X extends React.Component {
constructor(props) {
super(props);
this.state = {
collection: [],
};
}
You can’t perform that action at this time.