Skip to content

Instantly share code, notes, and snippets.

View hoblin's full-sized avatar

Yevhenii Hurin hoblin

  • Kotka, Finland
  • 19:23 (UTC +03:00)
View GitHub Profile
class Client < ActiveRecord::Base
acts_as_paranoid
has_many :client_users, :dependent => :destroy
has_many :users, :through => :client_users
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
private method `rand' called for "translation missing: en.faker.name.first_name":String
/Users/hoblin/.rvm/gems/ruby-1.8.7-p334@jenkins-ProjectName-32/gems/faker-0.9.5/lib/faker.rb:37:in `fetch'
/Users/hoblin/.rvm/gems/ruby-1.8.7-p334@jenkins-ProjectName-32/gems/faker-0.9.5/lib/faker/name.rb:9:in `first_name'
/Users/hoblin/.rvm/gems/ruby-1.8.7-p334@jenkins-ProjectName-32/gems/faker-0.9.5/lib/faker/internet.rb:18:in `user_name'
/Users/hoblin/.rvm/gems/ruby-1.8.7-p334@jenkins-ProjectName-32/gems/faker-0.9.5/lib/faker/internet.rb:16:in `call'
/Users/hoblin/.rvm/gems/ruby-1.8.7-p334@jenkins-ProjectName-32/gems/faker-0.9.5/lib/faker/internet.rb:16:in `user_name'
2013-05-27 12:27:08 [INFO] [ForgeModLoader] MCPC+ enabling 1.5.1 obfuscation compatibility mode
2013-05-27 12:27:08 [INFO] [ForgeModLoader] Forge Mod Loader version 5.2.12.712 for Minecraft 1.5.1 loading
2013-05-27 12:27:08 [INFO] [ForgeModLoader] Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_21, running on Linux:amd64:3.5.0-23-generic, installed at /usr/local/java/jre1.7.0_21
2013-05-27 12:27:08 [WARNING] [ForgeModLoader] The coremod codechicken.core.asm.CodeChickenCorePlugin does not have a MCVersion annotation, it may cause issues with this version of Minecraft
2013-05-27 12:27:08 [WARNING] [ForgeModLoader] The coremod codechicken.nei.asm.NEICorePlugin does not have a MCVersion annotation, it may cause issues with this version of Minecraft
Adding Accesstransformer map: pcc_at.cfg
Adding Accesstransformer map: codechickencore_at.cfg
Adding Accesstransformer map: nei_at.cfg
229 recipes
27 achievements
@hoblin
hoblin / gist:67ab174ada75ba6e6506
Created February 9, 2015 11:11
Nice git one line log format
[format]
pretty = format:%Cgreen%h%Creset - %Cgreen(%cd) %C(bold blue)<%an>%Creset %s %C(yellow)%d%Creset
[log]
date = short
@hoblin
hoblin / .bash_profile
Created March 30, 2016 10:12
Current project/branch and git status in prompt
RED="\[\033[0;31m\]"
YELLOW="\[\033[0;33m\]"
GREEN="\[\033[0;32m\]"
BLUE="\[\033[0;34m\]"
LIGHT_RED="\[\033[1;31m\]"
LIGHT_GREEN="\[\033[1;32m\]"
WHITE="\[\033[1;37m\]"
LIGHT_GRAY="\[\033[0;37m\]"
COLOR_NONE="\[\e[0m\]"
0_package_control_loader.sublime-package
Advanced CSV.sublime-package
AdvancedNewFile.sublime-package
Better CoffeeScript.sublime-package
Better JavaScript.sublime-package
BracketHighlighter.sublime-package
Case Conversion.sublime-package
CMake.sublime-package
Color Highlighter.sublime-package
ColorSchemeEditor.sublime-package
@hoblin
hoblin / .gitconfig
Created September 4, 2018 09:22
Some handy git config stuff
[color]
status = auto
diff = auto
branch = auto
[alias]
st = status
ci = commit
co = checkout
fp = format-patch
br = branch
@hoblin
hoblin / .eslintrc
Created March 13, 2019 15:54
ESLint config for react upgrading
{
"parser": "babel-eslint",
"plugins": [
"react",
"import"
],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
@hoblin
hoblin / react_upgrading.md
Last active March 9, 2022 07:43
Roadmap to upgrade react from 0.13 to 16

This document is a short how-to. It doesn't contain a lot of details about each change you need to implement, but it contains lots of links to the corresponding documents. Please read these docs for refetence.

Upgrade process in general.

1. Setup eslint

ESLint is the main tool to find deprecations in the code so first of all we need to configure it properly.

Prerequisites

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example