Skip to content

Instantly share code, notes, and snippets.

@burningtree
burningtree / npm-debug.log
Created June 2, 2011 03:04
failed installation node-mongodb-native on freebsd8.2
info it worked if it ends with ok
verbose cli [ 'node', '/usr/local/bin/npm', 'install', 'mongodb' ]
info using npm@1.0.8
info using node@v0.4.8
verbose config file /root/.npmrc
verbose config file /usr/local/etc/npmrc
silly testEngine { name: 'node-sizzle',
silly testEngine version: '0.1.0',
silly testEngine author: { name: 'Blagovest Dachev - http://github.com/dachev' },
silly testEngine description: 'Sizzle powered selectors for libxmljs',
@burningtree
burningtree / sd-agent
Created March 14, 2012 01:33
Sample ServerDensity.com FreeBSD rc.d script
#!/bin/sh
. /etc/rc.subr
name="sd_agent"
rcvar="sd_agent_enable"
sd_agent_cmd="/root/sd-agent/agent.py"
command=$sd_agent_cmd
command_args="$1"
@burningtree
burningtree / lastfm_linker.user.js
Created March 15, 2012 14:31
Last.fm Linker (What.cd + Spotify) - greasemonkey script
// ==UserScript==
// @name Last.fm Linker (What.cd + Spotify)
// @namespace ?
// @description Inserts What.cd and Spotify links on Last.fm
// @include http://last.fm/*
// @include http://*.last.fm/*
// @include http://lastfm.*/*
// @include http://*.lastfm.*/*
// ==/UserScript==
@burningtree
burningtree / index.php
Created May 4, 2012 12:16
vytisteni dat do obrazku
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
</head>
<form method="get">
Jmeno: <input type="text" name="name" />
Prijmeni: <input type="text" name="surname" />
Email: <input type="text" name="email" />
@burningtree
burningtree / php-fpm.log
Created March 3, 2013 07:03
ecb sigsegv error
[03-Mar-2013 06:47:05] NOTICE: fpm is running, pid 64904
[03-Mar-2013 06:47:05] NOTICE: ready to handle connections
[03-Mar-2013 06:47:25] NOTICE: Finishing ...
[03-Mar-2013 06:47:25] NOTICE: exiting, bye-bye!
[03-Mar-2013 06:47:25] NOTICE: fpm is running, pid 64924
[03-Mar-2013 06:47:25] NOTICE: ready to handle connections
[03-Mar-2013 06:47:58] WARNING: [pool www] child 64926 said into stderr: "NOTICE: PHP message: PHP Warning: Invalid argument supplied for foreach() in /data/ecb/www/application/modules/default/views/scripts/error/error.phtml on line 60"
[03-Mar-2013 06:48:28] WARNING: [pool www] child 64929 said into stderr: "NOTICE: PHP message: PHP Warning: Invalid argument supplied for foreach() in /data/ecb/www/application/modules/default/views/scripts/error/error.phtml on line 60"
[03-Mar-2013 06:48:44] WARNING: [pool www] child 64930 exited on signal 11 (SIGSEGV) after 23.078121 seconds from start
[03-Mar-2013 06:48:44] NOTICE: [pool www] child 64932 started
#!/usr/local/bin/ruby
# encoding: utf-8
require 'rubygems'
require 'open-uri'
require 'digest/sha1'
require 'mysql'
require 'iconv'
require 'nokogiri'
require 'unicode'
<?php
$url = "http://www.asko-nabytek.cz/katalog-letak-asko";
$template = array
(
"title" => "ASKO nábytek",
"descr" => null,
"datetime_end" => null,
"datetime_begin" => null,
"file_orig" => null,
<?php
// https://raw.github.com/olamedia/nokogiri/master/nokogiri.php
require 'nokogiri.php';
$template = array
(
"title" => "ASKO nábytek",
"descr" => null,
"datetime_end" => null,
@burningtree
burningtree / odoriksms.sh
Created July 18, 2013 00:09
Shell script pro odeslani SMS pres API Odorik.cz
#!/bin/sh
#
# odoriksms.sh <recipient> <message>
#
USER=CHANGE_ME
PASSWORD=CHANGE_ME
SENDER=00420123456789
/*!
* airbank-status.js
* CasperJS script for getting basic info from Airbank.cz website
* MIT License
* by Jan Stransky <jan.stransky@arnal.cz>
*
* Requirements:
* - casperjs 1.1.0+
*
* Usage: