Skip to content

Instantly share code, notes, and snippets.

@rmcauley
rmcauley / SassMeister-input.scss
Created May 27, 2015 07:14
Generated by SassMeister.com.
// ----
// Sass (v3.4.13)
// Compass (v1.0.3)
// ----
div.song {
div.entry_votes {
display: none;
float: right;
padding-right: .5em;
R4.1:
-----
if (json.genres.length > 0) {
var cats = $el("div", { "class": "albumview_info" });
cats.appendChild($el("span", { "textContent": $l("relevant_categories") }));
var a;
for (var i = 0; i < json.length; i++) {
a = $el("span", { "textContent": json[i].name, "class": "link" });
a._group_id = parseInt(json[i].id);
a.addEventListener("click", open_from_target);
DEBUG:tornado.application: [scan ] sids: [4, 5] Scanning file: /home/icecast/chip-all/~~Chiptune VGM Remixes/~Daniel White/Daniel White (Singles)/Bonsai Man.mp3
DEBUG:tornado.application: [scan ] mtime match, no action taken.
DEBUG:root:InotifyBuffer: in event <InotifyEvent: src_path=/home/icecast/chip-only/~~Original Chiptunes/~Daniel White/~Daniel White (Singles), wd=271, mask=IN_ISDIR|IN_MOVED_FROM, cookie=20169265, name=~Daniel White (Singles)>
DEBUG:root:InotifyBuffer: in event <InotifyEvent: src_path=/home/icecast/chip-only/~~Original Chiptunes/~Daniel White/Daniel White (Singles), wd=271, mask=IN_ISDIR|IN_MOVED_TO, cookie=20169265, name=Daniel White (Singles)>
DEBUG:tornado.application: [scan_event ] moved src_path for file /home/icecast/chip-only/~~Original Chiptunes/~Daniel White/~Daniel White (Singles)
DEBUG:tornado.application: [scan_event ] moved dest_path for dir /home/icecast/chip-only/~~Original Chiptune
<chance> LiquidRain: basically: design your app to be 2 factor. then use docker.
[14:30] <chance> ideally: use env vars for config, then most stuff will be pretty easy to configure
[14:31] <chance> containers should be isolated, single purpose applications. do not try to do all the things in 1 container. if your django app uses nginx, and postgres. then you should have at least 3 containers, your django app container, a postgres container, and an nginx container.
[14:31] <LiquidRain> running a dev environment is easy enough - django's built in stuff - but when it starts getting to where to put WSGI I'm a bit lost, coming from a world of "everything on the same box"
[14:31] <chance> layering is simply a matter of making your docker builds fast.
[14:31] <kushalsingh007> chance: Can you help me out ?
[14:32] <chance> kushalsingh007: im not sure, but its just cgroups. you might be able to do it via the CLI
[14:32] <chance> LiquidRain: how do you do wsgi now?
[14:32] <LiquidRain> chance: cool, that's a good start.
mystation.liq
-------------
r4_offline_file = "/path/to/a/song.mp3"
# your station ID
r4_sid = "1"
# NO FILE EXTENSION for dest_mount!! there will be both icecast_mount.ogg and icecast_mount.mp3
r4_dest_mount = "icecast_mount"
r4_dest_desc = "My Rainwave"
r4_dest_url = "http://myrainwave.mydomain.com"
ALTER TABLE phpbb_users ADD radio_totalvotes INTEGER DEFAULT 0;
ALTER TABLE phpbb_users ADD radio_totalmindchange INTEGER DEFAULT 0;
ALTER TABLE phpbb_users ADD radio_totalratings INTEGER DEFAULT 0;
ALTER TABLE phpbb_users ADD radio_totalrequests INTEGER DEFAULT 0;
ALTER TABLE phpbb_users ADD radio_winningvotes INTEGER DEFAULT 0;
ALTER TABLE phpbb_users ADD radio_losingvotes INTEGER DEFAULT 0;
ALTER TABLE phpbb_users ADD radio_winningrequests INTEGER DEFAULT 0;
ALTER TABLE phpbb_users ADD radio_losingrequests INTEGER DEFAULT 0;
ALTER TABLE phpbb_users ADD radio_totalvotes INTEGER DEFAULT 0;
ALTER TABLE phpbb_users ADD radio_last_active INTEGER DEFAULT 0;
_f.H = function each_songs_H(_c, _r) {
var B = document.createElement('div');
B.setAttribute('class', 'row' + (_c.cool ? 'cool' : '') + ' ' + (_c.fave ? 'song_fave_highlight' : ''));
var C = document.createElement('div');
C.setAttribute('class', 'length');
C.textContent = Formatting.minute_clock(_c.length);
B.appendChild(C);
if (_c.url) {
var D = document.createElement('a');
D.setAttribute('class', 'url');
<icecast>
<location>Somewhere</location>
<admin>myemail@mydomain.com</admin>
<limits>
<clients>100</clients>
<sources>30</sources>
<queue-size>524288</queue-size>
<client-timeout>30</client-timeout>
Exception `LoadError' at C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:1113 - no such file to load -- rubygems/defaults/operating_system
Exception `LoadError' at C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31 - no such file to load -- selenium-webdriver
Exception `NoMethodError' at C:/Ruby187/lib/ruby/1.8/rational.rb:78 - undefined method `gcd' for Rational(1, 2):Rational
Exception `LoadError' at C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31 - no such file to load -- yajl/json_gem
Exception `LoadError' at C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:38 - no such file to load -- yajl/json_gem
Exception `LoadError' at C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31 - no such file to load -- json/ext/parser
Using c extension for JSON.
Exception `LoadError' at C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31 - no such file to load -- term/ansicolor
Exception `LoadError' at C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb
C:/Ruby187/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.0/lib/selenium/webdriver/firefox/launcher.rb:81:in `connect_until_stable': unable to obtain stable firefox connection in 60 seconds (Selenium::WebDriver::Error::WebDriverError)
from C:/Ruby187/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.0/lib/selenium/webdriver/firefox/launcher.rb:37:in `launch'
from C:/Ruby187/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.0/lib/selenium/webdriver/firefox/socket_lock.rb:32:in `locked'
from C:/Ruby187/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.0/lib/selenium/webdriver/firefox/launcher.rb:32:in `launch'
from C:/Ruby187/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.0/lib/selenium/webdriver/firefox/bridge.rb:21:in `initialize'
from C:/Ruby187/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.0/lib/selenium/webdriver/common/driver.rb:38:in `new'
from C:/Ruby187/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.0/lib/selenium/webdriver/common/driver.rb:38:in `for'
from C:/R