Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html data-cast-api-enabled="true">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<script charset="UTF-8" type="text/javascript">var Locale = {"currency": {"isk": {"position": "end", "symbol": " kr."}, "usd": {"symbol": "$"}, "aud": {"symbol": "$"}, "chf": {"position": "end", "symbol": " CHF"}, "nok": {"position": "end", "symbol": " kr."}, "clp": {"position": "start", "symbol": "$"}, "pln": {"position": "end", "symbol": " z\u0142"}, "myr": {"position": "start", "symbol": "RM"}, "cop": {"position": "start", "symbol": "$"}, "mxn": {"position": "start", "symbol": "$"}, "czk": {"position": "end", "symbol": " K\u010d"}, "brl": {"symbol": "R$"}, "gbp": {"symbol": "\u00a3"}, "nzd": {"symbol": "$"}, "lvl": {"position": "end", "symbol": " Ls"}, "ltl": {"position": "end", "symbol": " Lt"}, "eur": {"position": "end", "symbol": "\u20ac"}, "sek": {"position": "end", "symbol": " kr."}, "dkk": {"position": "end", "symbol": " kr."}, "hkd": {"position": "start", "s
drwxr-xr-x 13 root root 4096 Oct 29 06:52 .
drwxr-xr-x 16 root root 4096 Oct 28 01:25 ..
-rw-r--r-- 1 root root 38039 Oct 28 01:26 alternatives.log
drwxr-xr-x 2 root root 4096 Oct 28 01:19 apt
-rw-r----- 1 syslog adm 95452 Oct 29 18:11 auth.log
-rw-rw---- 1 root utmp 0 Dec 18 2012 btmp
-rw-r--r-- 1 syslog adm 61998 Oct 28 01:08 cloud-init.log
drwxr-xr-x 2 root root 4096 Oct 28 01:16 ConsoleKit
drwxr-xr-x 2 root root 4096 Nov 13 2012 dist-upgrade
-rw-r--r-- 1 root adm 14994 Oct 28 01:08 dmesg
"top-genres" : {
"_type" : "terms",
"missing" : 0,
"total" : 10886,
"other" : 207,
"terms" : [ {
"term" : "dance",
"count" : 1364
}, {
"term" : "electro",
@psykidellic
psykidellic / gist:7051595
Created October 19, 2013 04:15
ffmpeg-splitter
#!/usr/bin/env python
import subprocess
import re
import math
from optparse import OptionParser
length_regexp = 'Duration: (\d{2}):(\d{2}):(\d{2})\.\d+,'
re_length = re.compile(length_regexp)
[myhost tmp]$ ruby check_opt.rb --temp
--temp
[myhost tmp]$ more check_opt.rb
require 'getoptlong'
opts = GetoptLong.new(
[ '--help', '-h', GetoptLong::NO_ARGUMENT ],
[ '--repeat', '-n', GetoptLong::REQUIRED_ARGUMENT ],
[ '--name', GetoptLong::OPTIONAL_ARGUMENT ]
)
PLAY [vagrant] ****************************************************************
GATHERING FACTS ***************************************************************
ok: [192.168.33.13]
TASK: [update apt cache] ******************************************************
ok: [192.168.33.13]
TASK: [install git] ***********************************************************
ok: [192.168.33.13]
GATHERING FACTS ***************************************************************
fatal: [10.0.2.15] => Authentication or permission failure. In some cases, you may have been able to authenticate and did not have permissions on the remote directory. Consider changing the remote temp path
in ansible.cfg to a path rooted in "/tmp". Failed command was: mkdir -p $HOME/.ansible/tmp/ansible-1379021416.72-97623234269588 && chmod a+rx $HOME/.ansible/tmp/ansible-1379021416.72-97623234269588 && echo $H
OME/.ansible/tmp/ansible-1379021416.72-97623234269588, exited with result 255
PLAY RECAP ********************************************************************
to retry, use: --limit @/Users/riteshn/provision.retry
10.0.2.15 : ok=0 changed=0 unreachable=1 failed=0
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'precise64'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
{{ if (showSource) { }}
<span class='source-url'>
<a class="btn btn-primary" href="{{ source_url }}" target="_blank">
<i class="icon-external-link">
Download/buy
</i>
</a>
</span>
{{ }; }}
model = new FooModel()
model.fetch().success ->
modelView = new ModelView(model: model)
modelView.render()