- sudo apt-get install build-essential automake autoconf libtool pkg-config intltool libcurl4-openssl-dev libglib2.0-dev libevent-dev libminiupnpc-dev libminiupnpc5 libappindicator-dev intltool checkinstall
- wget -c --no-check-certificate https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz
- tar zxvf libevent-2.0.22-stable.tar.gz
- cd libevent-2.0.22-stable
- ./configure
- make -j4
- sudo make install
- cd ../
- wget -c https://github.com/transmission/transmission-releases/raw/master/transmission-2.92.tar.xz
- tar -xJf transmission-2.92.tar.xz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; | |
; 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
auto lo | |
iface lo inet loopback | |
auto eth1 | |
iface eth1 inet dhcp | |
auto br0 | |
iface br0 inet dhcp | |
bridge_ports eth1 | |
bridge_stp off |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git push --mirror [email protected]:username/project.git | |
git archive --format zip --output /full/path/to/zipfile.zip master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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?) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 |