Skip to content

Instantly share code, notes, and snippets.

@capotej
capotej / git.sh
Created May 30, 2019 17:25
git shell funcs/aliases
alias co="git checkout "
alias commit="git commit "
alias status="git status "
alias merge="git merge "
alias stash="git stash "
alias fuckit="git reset --hard"
function pushit() {
git push origin $(raw_git_branch)
}
@capotej
capotej / keymap
Created March 24, 2019 18:04
atom keymap
'atom-text-editor.vim-mode-plus.insert-mode':
'ctrl': 'vim-mode-plus:activate-normal-mode'
<profiles>
<profile>
<id>alternative</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>repo1.maven.org</id>
<url>https://repo1.maven.org/maven2</url>
dfdsf
@capotej
capotej / granola.md
Last active August 29, 2015 14:22
Granola Recipe

Granola

I think of granola as a mixture of:

  • 3 parts rolled oats
  • 2 part seed
  • 1 part nut
  • 1 part chewy/sweet
  • sweetening gel

Example

@capotej
capotej / packages.bz2
Created March 30, 2015 22:25
basho riak packagecloud index
Package: riak
Priority: extra
Section: net
Installed-Size: 77021
Maintainer: Basho Package Maintainer <[email protected]>
Architecture: amd64
Version: 2.0.0-1
Depends: libc6 (>= 2.17), libgcc1 (>= 1:4.1.1), libpam0g (>= 0.99.7.1), libssl1.0.0 (>= 1.0.0), libstdc++6 (>= 4.6), libtinfo5, adduser, logrotate
Filename: pool/trusty/main/r/riak/riak_2.0.0-1_amd64.deb
Size: 54990116

Keybase proof

I hereby claim:

  • I am capotej on github.
  • I am capotej (https://keybase.io/capotej) on keybase.
  • I have a public key whose fingerprint is DE53 C3A2 B7CD BA28 364B 582B 4CF8 C64A BA81 5DD7

To claim this, I am signing this object:

@capotej
capotej / HAR.scala
Last active April 4, 2022 08:15
case classes for the HAR format (http://www.softwareishard.com/blog/har-12-spec/)
case class Creator(
name: String,
version: String,
comment: String
)
case class Browser(
name: String,
version: String,
comment: String
@capotej
capotej / gist:9081244
Created February 18, 2014 22:02
tw.sh
tw () {
if [ -z $1 ]
then
1=$(basename $(pwd))
fi
tmux rename-window $1
}
@capotej
capotej / issues_to_roadmap.rb
Created January 9, 2014 23:24
Script to convert issues/milestones into roadmap
#!/usr/bin/env ruby
# encoding: UTF-8
# Converts Issues and Milestones into roadmap.md
require 'net/http'
require 'json'
require 'open-uri'
require 'pp'