Skip to content

Instantly share code, notes, and snippets.

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>
<!--
This is a sample Icecast2 server config you can use to relay rainwave.cc.
Please note that relaying is whitelisted by IP address - if you actually
want to relay Rainwave, you'll have to arrange for that. :)
Please reference icecast.org for full documentation about this file.
This config file is based off the default config for a Debian Jessie install. (2.3.3)
If you have custom compiled your own or use a different distro,
DNS REFERENCE
-------------
F:\Downloads\BIND9.10.3.x64>dig +trace @8.8.8.8 getpocket.com A
; <<>> DiG 9.10.3 <<>> +trace @8.8.8.8 getpocket.com A
; (1 server found)
;; global options: +cmd
. 20628 IN NS a.root-servers.net.
. 20628 IN NS b.root-servers.net.
<div class="mobile_rating unselectable needsclick" bind="el">
<div class="mobile_rating_header">
{{ $l("slide_to_rate") }}
</div>
<div class="mobile_rating_slider">
<div class="mobile_rating_on" bind="r1_0">1</div>
<div class="pointfive" bind="r1_5">.5</div>
<div bind="r2_0">2</div>
<div class="pointfive" bind="r2_5">.5</div>
<div bind="r3_0">3</div>