Skip to content

Instantly share code, notes, and snippets.

View denis's full-sized avatar

Denis Barushev denis

View GitHub Profile
@denis
denis / jquery.plugin_name.js
Created September 24, 2008 20:21
A simple jQuery plugin skeleton
(function ($) {
$.fn.pluginName = function (settings) {
settings = $.extend({
param: 'value'
}, settings);
return this.each(
function () {
var $this = $(this);
// plugin code here
Телевидение
-----------
р/с 26007002323226
МФО 335775
ОКПО 25330359
Интернет
--------
р/с 26002001323244
МФО 335775
#!/bin/sh
git diff $* | kompare - > /dev/null 2>&1
require 'benchmark'
Benchmark.bm do |x|
n = 100_000
x.report do
n.times do
# paste code here
end
end
cd /tmp
git clone git://git.kernel.org/pub/scm/git/git.git
cd git
git checkout v`git --version | awk '{print $3}'`
cp contrib/completion/git-completion.bash ~/.git-completion.bash
cd ~
rm -rf /tmp/git
echo -e "source ~/.git-completion.bash" >> .profile
#!/usr/bin/env ruby
#
# Git log to iCalendar
#
# Written by Dmitry Chestnykh, 5 Aug 2008
# Public domain
#
# Usage:
#
# log2icalendar.rb path-to-git-repo > outfile.ics
apt-get install ntp ntpdate
aptitude -y install user-setup
user-setup
A user account will be created for you to use instead of the root account for non-administrative activities.
if [ -e $ROOT/etc/sudoers ]; then
$log $chroot $ROOT addgroup --system admin >/dev/null 2>&1 || true
$log $chroot $ROOT adduser "$USER" admin >/dev/null 2>&1 || true

Радио-Т

<itunes:image href="http://radio-t.com/logo.jpg" />

<image>
	  <title>Радио-Т</title>
    <url>http://radio-t.com/logo.jpg</url>
    <link>http://radio-t.com</link>

Ubuntu 8.10 Server Setup

Update system:

aptitude update
aptitude -y safe-upgrade

aptitude install -y build-essential
# 0: false
# 1: 0
# 2: true
# 3: 1
# 4: nil
# 5: 2
# ...
# 338: :"!"
# 378: :%
# 388: :&