This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
r4_offline_file = "/home/icecast/~misc/cover-offline.mp3" | |
r4_sid = "3" | |
r4_dest_mount = "covers" | |
r4_dest_desc = "Rainwave Covers" | |
r4_dest_url = "http://covers.rainwave.cc" | |
r4_harbor_port = 31233 | |
################## | |
set("log.level", 3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var audioCtx = new (window.AudioContext || window.webkitAudioContext)(); | |
var source; | |
var analyser = audioCtx.createAnalyser(); | |
analyser.minDecibels = -60.0; | |
analyser.maxDecibels = 0.0; | |
analyser.smoothingTimeConstant = 0.8; | |
analyser.fftSize = 128; | |
var javascriptNode = audioCtx.createScriptProcessor(1024); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_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'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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. |