Skip to content

Instantly share code, notes, and snippets.

@schleg
schleg / 01. Gemfile
Created May 26, 2011 17:26
Setup for Devise + Omniauth
gem 'pg'
group :development do
gem 'ruby-debug'
end
gem 'rake', '~> 0.8.7'
gem 'devise'
gem 'oa-oauth', :require => 'omniauth/oauth'
gem 'omniauth'
gem 'haml'
gem 'dynamic_form'
@watson
watson / ability.rb
Created October 5, 2011 09:50
Active Admin CanCan integration with shared front/backend User model and multi-level autherization
# app/models/ability.rb
# All front end users are authorized using this class
class Ability
include CanCan::Ability
def initialize(user)
user ||= User.new
can :read, :all
@jeroenvandijk
jeroenvandijk / project.clj
Created December 8, 2011 16:40
Baisc scraper with Aleph and Enlive
(defproject scraper "1.0.0-SNAPSHOT"
:dependencies [
[org.clojure/clojure "1.2.1"]
[aleph "0.2.0"]
[enlive "1.0.0-SNAPSHOT"]
])
defmodule Plug.StaticRoot do
def init(opts), do: opts
def call(conn, opts) do
rootify(conn, opts, opts[:to] || "index.html")
end
def rootify(%Plug.Conn{path_info: []} = conn, opts, to) do
%Plug.Conn{conn | path_info: [to]}
@curtishall
curtishall / ATAK-UAS-RTSP-README.md
Last active November 10, 2024 00:47
rtsp-simple-server ATAK configuration (Linux)

1/10/2024 - I have linked a slightly newer version, still out of date, but I need to test newer versions to make sure there is no configuration changes.

Some users report having to comment out the following, your mileage may vary:

readBufferSize, runOnPublish, runOnPublishRestart, runOnRead, runOnReadRestart

ATAK users change the observer URL in UAS Tool to point to 554 (or whatever port you decide to use)

Download the latest rtsp-simple-server (0.17.13)