Skip to content

Instantly share code, notes, and snippets.

Avatar
Github has statuses?

C.J. Kinniburgh CJKinni

Github has statuses?
View GitHub Profile
@CJKinni
CJKinni / pre-commit
Last active Aug 29, 2015
Chrome Extension auto-increment version number and zip extension on commit via git hooks
View pre-commit
#!/usr/bin/env ruby
require 'json'
filename = './manifest.json'
text = File.read(filename)
json = JSON.parse(text)
oldVersion = json['version']
@luislavena
luislavena / howto-manually-add-trust-cert-to-rubygems.md
Last active Jan 18, 2021
Workaround RubyGems' SSL errors on Ruby for Windows (RubyInstaller)
View howto-manually-add-trust-cert-to-rubygems.md

SSL upgrades on rubygems.org and RubyInstaller versions

UPDATE 2016-12-01: Please refer to the official guide instead of this process.

UPDATE 2014-12-21: RubyGems 1.8.30, 2.0.15 and 2.2.3 have been released. It requires manual installation, please see instructions below.


Hello,

@ttscoff
ttscoff / markdownediting_headlines.sublime-keymap
Created Aug 22, 2012
Markdown headlines for Sublime Text 2
View markdownediting_headlines.sublime-keymap
// Keybinding for Sublime Text to wrap selection in hashmarks with padding space, incrementally up to six marks
{ "keys": ["#"], "command": "insert_snippet", "args": {"contents": "#${0: ${SELECTION/(^ | $)//g} }#"}, "context":
[
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true },
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown", "match_all": true },
{ "key": "preceding_text", "operator": "not_regex_contains", "operand": "#{6}", "match_all": true }
]
}
@CJKinni
CJKinni / archiveTweets.rb
Last active Feb 27, 2018
Download your twitter posts into a single markdown file
View archiveTweets.rb
#!/usr/bin/ruby
=begin
This script turns downloadable tweets from twitter into a markdown
based text file timeline.
To run, change the 'Username' and 'TwitterFilename' below.
I THINK that this is all working. Check the previous gist version
for a more stable script with far fewer features. Let me know in the
You can’t perform that action at this time.