This file contains 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
sudo apt-get install build-essential libsqlite3-dev zlib1g-dev libncurses5-dev libgdbm-dev libbz2-dev libreadline5-dev libssl-dev libdb-dev | |
wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz | |
tar -xzf Python-2.7.3.tgz | |
cd Python-2.7.3 | |
./configure --prefix=/usr --enable-shared | |
make | |
sudo make install | |
cd .. |
This file contains 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 | |
namespace JukeboxApi; | |
use GuzzleHttp\Psr7\Request; | |
use GuzzleHttp\Client as HttpClient; | |
const TEMPLATE_REGEXP = '/\{([^\{\}]+)\}/'; | |
/** |
This file contains 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
class UpdateOfferByMetal { | |
constructor(offerUpdateMethod, actualValue, event) { | |
if (!offerEditingCellInstance) { | |
offerEditingCellInstance = this; | |
} | |
this.offerUpdateMethod = offerUpdateMethod; | |
this.actualValue = actualValue; | |
this.obj = event; | |
this.offerEditingCell = false; | |
this.editStatus = $(this.obj).parent().data('edit-status'); |
This file contains 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 | |
set_time_limit(0); | |
function isPrime($number) { | |
$sqrt = ceil(sqrt($number)); | |
if ($number <= 1) { | |
return FALSE; | |
} else if ($number <= 3) { | |
return TRUE; | |
} else if ( !($number % 2) || !($number % 3) ) { | |
return FALSE; |
This file contains 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/perl | |
# | |
# tracker_modify.pl 0.01 | |
# Add/delete trackers recursively from all torrents. | |
# Free to copy and mutilate any way you like :) | |
# | |
# Originally from http://publicbt.com/tracker_modify.pl | |
sub usage { | |
print <<EOF |
This file contains 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
#!/bin/sh | |
# https://github.com/phracker | |
# | |
# AutoDL-Irssi Init Script | |
# Tested on Debian 7 (Wheezy) | |
# Instructions: | |
# - Install / configure irssi + autodl-irssi (duh) | |
# - Save this script as /etc/init.d/autodl-irssi | |
# - `chmod +x /etc/init.d/autodl-irssi` | |
# - `insserv autodl-irssi` |
This file contains 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
module OS | |
def OS.windows? | |
(/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil | |
end | |
def OS.mac? | |
(/darwin/ =~ RUBY_PLATFORM) != nil |
This file contains 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
chance = 70.71 | |
bethigh = true | |
basebet = 0.00000022 | |
firstlossbet = 0.00000222 | |
secondlossbet = 0.00002222 | |
thirdlossbet = 0.00022222 | |
nextbet = basebet | |
counter=0 | |
betcount=0 |
This file contains 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 fizzbizz() | |
{ | |
for ($i = 0; $i <= 100; $i++) { | |
if ( ($i % 3 == 0) && ($i % 5 == 0) ) { | |
echo "FizzBuzz\r\n"; | |
} elseif ($i % 3 == 0) { | |
echo "Fizz\r\n"; | |
} elseif ($i % 5 == 0) { | |
echo "Buzz\r\n"; |
This file contains 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
DROP TEMPORARY TABLE IF EXISTS MRReport; | |
# Create temp table | |
CREATE TEMPORARY TABLE MRReport | |
# Insert Initial Data | |
SELECT | |
# MRR Year | |
`mntMRR`.MrrYear, | |
# MRR Month | |
`mntMRR`.MrrMonth, | |
# MRR Total |