Find a Bandcamp album on Spotify
Drag this link to your bookmarks bar: Bandcamp to Spotify Click the bookmark when you’re on a bandcamp album page and it will search for that album on Spotify
Drag this link to your bookmarks bar: Bandcamp to Spotify Click the bookmark when you’re on a bandcamp album page and it will search for that album on Spotify
Background This is a guide for setting up basic radio stations (with SSL and port 80) using Shoutcast and Liquidsoap. There’s no GUI and my stations only shuffle music, I don’t do live sets. It is definitely possible, but I won’t cover it here. VPS Requirements You’ll most likely need a VPS with unlimited bandwidth. […]
If you need to quickly create an admin account for a WordPress site, upload adminer.php to the root directory or log in to phpMyAdmin, and run this SQL command (SQL tab in phpMyAdmin): INSERT INTO `DATABASE_NAME`.`wp_users` (`ID`, `user_login`, `user_pass`, `user_nicename`, `user_email`, `user_url`, `user_registered`, `user_activation_key`, `user_status`, `display_name`) VALUES (‘99999’, ‘username’, MD5(‘MakeABetterPassword’), ‘username’, ’email@gmail.com’, ”, NOW(), ”, […]
Paste this into your .htaccess file # BEGIN Force SSL <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTPS} =off RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] </IfModule> # END Force SSL I once had the needed to exclude a directory, so http:// versions would still be served. This was just one extra line: RewriteCond %{HTTPS} =off RewriteCond %{REQUEST_URI} !^/directory/ RewriteRule […]
I often listen to new music on Bandcamp, and it’s a bit tricky to remember which tracks I liked. So, I made these simple bookmarklets which cross off or hide the current song. Hide Current Track Strike Current Track Just drag them to your bookmarks bar and they’re ready to go.
I’ve been running a rather old version of Adobe Creative Suite (CS3) successfully on Mavericks, Yosemite, El Capitan, and Sierra. With each upgrade, I need to run this odd procedure to trick the programs into thinking an old version of Java exists. Apparently they don’t really need it, but they just need to see the […]
// Shortcode for retrieving Session params if ( ! shortcode_exists(‘get_cookie’) ) { function readycat_get_cookie( $atts ) { // check for shortcode param if ( empty( $atts[‘key’] ) ) return ‘Please specify a key=whatever_value in the shortcode.’; $default = !empty( $atts[‘default’] ) ? $atts[‘default’] : ”; if ( ! empty( $_GET[ $atts[‘key’] ] ) ) { […]
Video backgrounds are pretty straightforward. Add a <video> element somewhere near the beginning or end of the body element: <video id=”bgvid” poster=”bgvid.jpg” autoplay muted loop><source src=”bgvid.mp4″ type=”video/mp4″></video> The autoplay, muted, and loop attributes are appropriate for a background, and the poster attribute is a still from the first frame of the video, something to display […]
hostnamectl set-hostname radio nano /etc/hosts apt-get update && apt-get -y dist-upgrade && apt-get -y install gcc libcurl4-gnutls-dev libvorbis-dev libxslt1-dev pkg-config libtheora-dev libspeex-dev openssl last 3 are optional (libtheora-dev libspeex-dev openssl), not sure about pkg-config cd /usr/src/ wget http://downloads.xiph.org/releases/icecast/icecast-2.4.3.tar.gz tar -xzvf icecast-2.4.3.tar.gz cd icecast-2.4.3/ ./configure make make install # libshout cd /usr/src/ wget http://downloads.xiph.org/releases/libshout/libshout-2.4.1.tar.gz tar -xzvf […]
I’m sure there are tons of plugins for adding Google Analytics to your WordPress site, and a lot of themes have an area for pasting scripts. But if you ever want to just add the code without any of that, the simplest way is in your functions.php: add_filter( ‘wp_print_footer_scripts’, function(){ ?> <script> […]