Skip to content

Instantly share code, notes, and snippets.

@tjcelaya
tjcelaya / pandora_tls.sh
Created July 10, 2018 01:39 — forked from bonelifer/pandora_tls.sh
Replace Pandora's old tls fingerprint with new one in pianobar config
#!/bin/bash
##
## A simple little shell script that will return the current
## fingerprint on the SSL certificate and replace it in
## pianobar's config file automatically
##
## Author: William Jacoby (bonelifer) <>
##
## Base on the Github Gist by Bob Saska at: https://gist.github.com/r35krag0th/4173333
##
(function () {
//
// Global ajax loaders
//
// This is useful for showing a loading animation, yet still taking
// advantage of the default behavior of m.request, which is to wait
// for all requests to complete before rendering the view.
//
// The loader is assumed to already be on the page
var loader = document.querySelector('.ajax-loader')
# db/migrate/20120625030355_add_deleted_at_to_user.rb
class AddDeletedAtToUser < ActiveRecord::Migration
def change
add_column :users, :deleted_at, :datetime
end
end