Skip to content

Instantly share code, notes, and snippets.

#!/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
@uniacid
uniacid / beefprime.php
Created July 6, 2016 20:26
Find the 444th Prime number converted to hexadecimal which contains the word "beef"
<?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;
@uniacid
uniacid / offer.js
Created July 5, 2016 18:03
offer js
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');
<?php
namespace JukeboxApi;
use GuzzleHttp\Psr7\Request;
use GuzzleHttp\Client as HttpClient;
const TEMPLATE_REGEXP = '/\{([^\{\}]+)\}/';
/**
@uniacid
uniacid / python27_on_debian.sh
Created December 2, 2015 16:32 — forked from lukaslundgren/python27_on_debian.sh
How to install python 2.7 on debian
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 ..
@uniacid
uniacid / GoWithC.go
Last active September 2, 2015 11:41 — forked from 17twenty/GoWithC.go
Cross Compiling and Language Interop oh my!
package main
import (
"./binding"
"fmt"
)
func main() {
binding.PrintHello()
binding.Seed(1)
fmt.Println(binding.Random())
@uniacid
uniacid / sources.list
Created June 1, 2015 20:37
Debian 8 apt source (FR)
deb http://ftp.fr.debian.org/debian/ jessie main contrib non-free
deb-src http://ftp.fr.debian.org/debian/ jessie main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free
# jessie-updates, previously known as 'volatile'
deb http://ftp.fr.debian.org/debian/ jessie-updates main
deb-src http://ftp.fr.debian.org/debian/ jessie-updates main
// ==UserScript==
// @name haaretz
// @namespace http://www.haaretz.co.il
// @description redirects haaretz to webcace
// @include http://www.haaretz.co.il/*
// @include http://webcache.googleusercontent.com/*
// @version 1
// @grant none
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// ==/UserScript==
@uniacid
uniacid / DownloadClickReport.php
Last active August 29, 2015 14:07
click report
<?php
/**
* This example downloads a criteria report to a file.
*
* Copyright 2014, Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
@uniacid
uniacid / Package Control.sublime-settings
Created September 27, 2014 20:16
Sublime Text 3 Packages
{
"auto_upgrade_last_run": null,
"installed_packages":
[
"AdvancedNewFile",
"Alignment",
"BracketHighlighter",
"CakePHP (Native)",
"CodeFormatter",
"ColorPicker",