Skip to content

Instantly share code, notes, and snippets.

View beshkenadze's full-sized avatar

Aleksandr Beshkenadze beshkenadze

View GitHub Profile
@beshkenadze
beshkenadze / afp.conf
Created December 5, 2012 21:00 — forked from oscarcck/afp.conf
afp.conf sample for osx 10.7 lion time machine with netatalk 3.0 afpd on ubuntu 12.04
;
; Netatalk 3.x configuration file
; http://netatalk.sourceforge.net/3.0/htmldocs/afp.conf.5.html
;
[Global]
; Global server settings
vol preset = default_for_all_vol
log file = /var/log/netatalk.log
uam list = uams_dhx.so,uams_dhx2.so
@beshkenadze
beshkenadze / afp.conf
Created December 6, 2012 09:51
Netatalk config for TimeMacine
;/usr/local/etc/afp.conf
; Netatalk 3.x configuration file
;
[Global]
; Global server settings
vol preset = default_for_all_vol
hostname = TimeCapsule
log file = /var/log/netatalk.log
log level = default:info
auto lo
iface lo inet loopback
auto eth1
iface eth1 inet dhcp
auto br0
iface br0 inet dhcp
bridge_ports eth1
bridge_stp off
@beshkenadze
beshkenadze / gist:4275720
Last active February 12, 2022 17:45
Build transmission for low-system
@beshkenadze
beshkenadze / git-mirror.sh
Created December 14, 2012 06:16
Mirroring git repo
git push --mirror [email protected]:username/project.git
git archive --format zip --output /full/path/to/zipfile.zip master
var marker;
var circle;
var map = new L.Map('leaflet', {
dragging: true
});
var cloudmadeUrl = 'http://{s}.tile.cloudmade.com/396d41ac26d14f84a7ef6176c59f4720/997/256/{z}/{x}/{y}.png',
cloudmadeAttrib = '',
cloudmade = new L.TileLayer(cloudmadeUrl, {
maxZoom: 18,
attribution: cloudmadeAttrib
<?php
function game($change = false)
{
$doors[] = array("win" => false, "select" => false);
$doors[] = array("win" => false, "select" => false);
$doors[] = array("win" => false, "select" => false);
// Set win door
$doors[rand(0, count($doors)-1)]["win"] = true;
#!/usr/bin/env ruby
require 'yaml'
common_git_paths = "which git"
git_path = `#{common_git_paths}`.chomp
filename = File.join(File.dirname(File.expand_path(__FILE__)), '../app/config/parameters.yml')
abort('File not found') unless File.exists?(filename)
abort('Path not found') if (git_path.empty?)
package org.coolreader.crengine;
public interface OPDSConst {
/*
* This is a list of OPDS catalogs which may have problems with copyright.
* Added by request of LitRes.
* http://tr.reddit.com/r/Android/comments/17rtk0/moon_reader_was_blocked_from_play_market_by/
*/
final static int BLACK_LIST_MODE_NONE = 0;
final static int BLACK_LIST_MODE_WARN = 1;
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<company>
<id>1337</id>
<universal-name>linkedin</universal-name>
<name>LinkedIn</name>
<ticker>LNKD</ticker>
<logo-url>http://media.linkedin.com/mpr/mpr/p/2/000/072/3f9/35d2127.png</logo-url>
<description>LinkedIn takes your professional network online, giving you access to people, jobs and opportunities like never before. Built upon trusted connections and relationships, LinkedIn has established the worldÕs largest and most powerful professional network. Currently, more than 150 million professionals are on LinkedIn, including executives from all five hundred of the Fortune 500 companies, as well as a wide range of household names in technology, financial services, media, consumer packaged goods, entertainment, and numerous other industries. LinkedIn is backed by world-class investors including Sequoia Capital, Greylock, the European Founders Fund, Bessemer Venture Partners, Bain Capital, Goldman Sachs, SAP Ventures, and The McGraw-Hill Com