Skip to content

Instantly share code, notes, and snippets.

View develop7's full-sized avatar

Andrei Dziahel develop7

View GitHub Profile
[2011-05-22 16:06:02] gunzip < /home/andy/.rvm/archives/rubygems-1.8.3.tgz | tar xf - -C /home/andy/.rvm/src
gzip: stdin: not in gzip format
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
[2011-05-22 16:07:01] gunzip < /home/andy/.rvm/archives/rubygems-1.8.tgz | tar xf - -C /home/andy/.rvm/src
gzip: stdin: not in gzip format
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
sfGuardUser:
sfGuardUser_1:
first_name: null
last_name: null
email_address: test@localhost
username: admin
password: "password" #ну да, пароль потом шифруется, и что?
is_active: true
is_super_admin: true
last_login: '2011-04-13 16:48:39'
@develop7
develop7 / bashrc.sh
Created March 25, 2011 22:37 — forked from 228vit/.bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
# [ -z "$PS1" ] && return
if [[ -n "$PS1" ]]; then ##ну вот же оно! это нужно было раскомментить
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
SELECT t1.id, count(t2.id) from table1 t1 inner join table2 t2 on t2.category=t1.id group by t1.id
<?php
class Post extends BasePost
{
public function getAddedCredentialsNames(sfGuardSecurityUser $user)
{
if ($this->get('owner_id') == $user->getProfile()->getId())
{
return 'post_edit';
}
}
@develop7
develop7 / .hgignore
Created October 24, 2010 19:25
generic .hgignore for symfony project
^(?:cache|log)/
^data/sql/.*
config/databases.yml
^lib/(model|form|filter)/doctrine/(.+?Plugin/)?base/.+?\.class\.php$
^web/.+?Plugin
// ==UserScript==
// @include http://www.tumblr.com/*/new/*
// @include http://www.tumblr.com/new/*
// @include http://www.tumblr.com/edit/*
// ==/UserScript==
(function(){
var ednoteel = $A($$('div.editor_note'));
var ismkdown = ednoteel.size() > 0 && ednoteel[0].text == "markdown"; //detect whether markdown mode is enabled
if (ismkdown){
$$('form div + textarea')[0].style.fontFamily = "monospace"; //set monospace font family for textarea
void testDefaultConstruction()
{
Foo foo = new Foo();
assertNotNull(foo);
}
all:
features:
- extensibility
- robustness
- vibrancy
Match:
columns:
#...skip
relations:
Participants:
local: match_id
foreign: player_id
refClass: MatchPlayer
foreignAlias: MatchesPlayed