Skip to content

Instantly share code, notes, and snippets.

View vladshablinsky's full-sized avatar

Uladzislau Shablinski vladshablinsky

View GitHub Profile
@vladshablinsky
vladshablinsky / FORMULA_RENAMES.md
Last active August 29, 2015 14:23
Formula renames: progress and todo

Homebrew: Formula renames

Workflow

  • Explore tap structure
  • Check if the installed formula in the Cellar belongs to appropriate tap while performing migrations
  • Metadata for tap formula migrations
  • Dependencies on taps
  • What if several formulae installed to the same directory
  • Skip if multiple taps formulae installed???
@vladshablinsky
vladshablinsky / week8.md
Last active August 29, 2015 14:25
week 8 results

Here is the diff for the week.

  • Worked on scripts for testing update. Tested.
  • Wrote some unit test.
  • Found some bugs in relative symlinks in migrator and fixed them.
  • Checked migration for openssl with otool -- everything is OK

Plans for next week

@vladshablinsky
vladshablinsky / .vimrc
Last active August 29, 2015 14:25 — forked from RGBD/.vimrc
Well, someone asked for it.
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
" My plugins
Plugin 'tpope/vim-fugitive'
@vladshablinsky
vladshablinsky / notes.md
Last active August 29, 2015 14:26
Notes
  • tmux new -s basic
  • prefix d
  • tmux ls
  • tmux attach -t second_session
  • tmux kill-sessions -t basic
  • prefix c — new window in a session
  • prefix , — rename window
  • prefix n — next window
  • prefix p — previous window
  • prefix 0
@vladshablinsky
vladshablinsky / formula_renames.md
Last active November 23, 2015 23:51
formula renames: allow names same as oldmames

Formula renames: allow any type of renames

I suggest you reading this and not going deeply into the details at first, because several approaches are described here and something can be wrong at some point and then another approach is introduced.

Metadata

Let's describe core formula renames at this point and then try to add same functionality to taps.

@vladshablinsky
vladshablinsky / renames.md
Last active December 29, 2015 23:52
renames todos
  • exception should be raised if installed formula is not the one we're installing/upgrading/whatsoever
  • the same for dependencies
  • dependencies seems to work, since reqursive dependencies have to_formula it's the main point here. to_formula calls Formulary.factory, which resolves name ✅❎
  • rename command
@vladshablinsky
vladshablinsky / bundle_help.md
Last active March 8, 2016 15:54
bundle_help_test_fail

➜ vlad:bundler$ sw_vers                                                                                                                master
ProductName:	Mac OS X
ProductVersion:	10.10.5
BuildVersion:	14F27
➜ vlad:bundler$ ruby -v                                                                                                                master
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin14]
➜ vlad:bundler$ rvm -v                                                                                                                 master
Mar-18 02:37:50 <1> : kiwi --build /home/vlad/Projects/git/machinery/spec/definitions/boxes/definitions/base_opensuse13.2_kvm --destdir /tmp/pennyworth-builds --logfile /tmp/pennyworth-builds/kiwi-terminal-output.log
Mar-18 02:37:50 <1> : kiwi revision: abefa16730fcf356afb2b45b71d93d13dae02780
Mar-18 02:37:50 <1> : Setting log file to: /tmp/pennyworth-builds/kiwi-terminal-output.log
Mar-18 02:37:50 <1> : EXEC [/usr/bin/uname -m]
Mar-18 02:37:50 <1> : EXEC [/usr/bin/uname -m]
Mar-18 02:37:50 <1> : Description provides no MD5 hash, check
Mar-18 02:37:50 <1> : Reading image description [Prepare]...
Mar-18 02:37:50 <1> : EXEC [/usr/bin/uname -m]
Mar-18 02:37:50 <1> : EXEC [rm -f /var/cache/kiwi/zypper/repos/* 2>&1]
Mar-18 02:37:50 <1> : Setting up package manager:

Concept

(The blockquote style does not look so well so I just pasted directly, but these are all quoted from the links in the bottom of this page)

You should not implement to_str unless your object acts like a string, rather than just having a string representation. The only core class that implements to_str is String itself.

[to_i and to_s] are not particularly strict: if an object has some kind of decent representation as a string, for example, it will probably have a to_s method… [to_int and to_str] are strict conversion functions: you implement them only if you object can naturally be used every place a string or an integer could be used.

to_str is used by methods such as String#concat to convert their arguments to a string. Unlike to_s, which is supported by almost all classes, to_str is normally implemented only by those classes that act like strings. Of the built-in classes, only Exception and String implement to_str

Project Title Student Display Name Organization Name Mentors
Key mapping GUI Tomasito665 Mixxx DJ Software RJ Ryan, Ferran Pujol Camins
YAPDNS system64 The Honeynet Project Pietro Delsante, Fedele Mantuano, Andrea De Pasquale
FFv1 P frame support sdolganov FFmpeg Reynaldo Verdejo, michaelni
coala: Integrating coala with the Eclipse IDE Sheikh Araf Python Software Foundation Harsh Dattani, Lasse Schuirmann (sils1297), AbdealiJKothari
User interfaces for Tracker Dilushi Sustainable Computing Research Group ( SCoRe ) Dinith Minura, Namal Jayasuriya, Rumesh
File Support izgzhen Mozilla Manishearth
KolibriOS. Development of TLS/SSL library DenisKarpenko KolibriOS Jeffrey A., Pathoswithin
IPFS friendly & distributed version of Amber skbly7 Berkman Center for Internet and Society Genève
Cache layer for jpf-nhandler Jayton Java Pathfinder Team franck, Nastaran, Cyrille Artho