Tested with a fresh Ubuntu 16.04.1 LTS
$ sudo apt-get install default-jre
<?php //origin: http://www.if-not-true-then-false.com/2012/php-pdo-sqlite3-example/ | |
// Kludges | |
const SQLITE3_TEXT = PDO::PARAM_STR; | |
const SQLITE3_INTEGER = PDO::PARAM_INT; | |
// Set default timezone | |
date_default_timezone_set('UTC'); | |
try { |
""" | |
A script for downloading some podcasts and tagging the files so I can import them to iTunes. | |
""" | |
import pycurl | |
import os.path | |
import sys | |
from BeautifulSoup import BeautifulStoneSoup | |
import eyed3 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" | |
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="et"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>table</title> | |
<style type="text/css"> | |
.odd { background-color: #808080; } | |
.generated_for_mobile { margin-bottom: 30px } |
require 'digest' | |
# = simple_google_analytics.rb | |
# | |
# Chris Le <chris at iamchrisle dot com> | |
# | |
# This module is an wrapper to export data from Google Analytics as a flattened | |
# hash suitable for database storage. It does not require any other gems other | |
# than 'oauth'. I used this simply to get metrics and directly store them in | |
# a database. |
<?php | |
$OTS = '/usr/bin/ots'; | |
loadurl(); | |
if(!isset($_REQUEST['format']) || $_REQUEST['format'] =! 'text'){ | |
header('Content-Type: text/html; charset=utf-8'); | |
html_header(); | |
form(); |
#!/usr/bin/env python | |
# -*- coding: UTF-8 -*- | |
''' | |
@package smi2srt | |
@brief this module is for convert .smi subtitle file into .srt subtitle | |
(Request by Alfred Chae) | |
Started : 2011/08/08 | |
license: GPL |
import os | |
import argparse | |
import requests | |
import progressbar | |
def main(): | |
parser = argparse.ArgumentParser(description='All your MUBI are belong to us.') | |
parser.add_argument('film_id', type=int) | |
parser.add_argument('resolution', choices=('360p', '480p', '640w', '720w', '1280w')) | |
parser.add_argument('output_file') |
<?php | |
snippet('header'); | |
$tag = urldecode(param('tag')); | |
if(param('tag')) | |
$articles=$pages->visible()->filterBy('tags',$tag,',')->sortBy('date')->flip(); | |
?> | |
<main class="main"> | |
<section> | |
<h1><?php echo $page->title() . ' ' . $tag ?></h1> |
<?php | |
/* | |
Made by Kudusch (blog.kudusch.de, kudusch.de, @Kudusch) | |
--------- | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2004 Sam Hocevar <[email protected]> |