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
#!/bin/bash | |
set -e | |
if [ -z "$1" ]; then | |
echo "No PR given" | |
exit 1 | |
fi | |
parts=(${1//\// }) | |
pr=${parts[${#parts[@]}-1]} |
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
# Make sure to notice the comments at https://gist.github.com/jhass/719014#gistcomment-19774 | |
<VirtualHost *:80> | |
ServerName diaspora.example.org | |
ServerAlias www.diaspora.example.org | |
RedirectPermanent / https://diaspora.example.org/ | |
</VirtualHost> | |
<VirtualHost *:443> | |
ServerName diaspora.example.org |
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
require "option_parser" | |
require "http/server" | |
require "json" | |
class Settings | |
property port = 3000 | |
property host = "127.0.0.1" | |
property? show_headers = false | |
property? show_raw_json = false | |
end |
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 aspect_memberships | |
DROP CONSTRAINT aspect_memberships_aspect_id_fkey, | |
ADD CONSTRAINT aspect_memberships_aspect_id_fkey FOREIGN KEY (aspect_id) REFERENCES aspects(id) ON DELETE CASCADE; | |
ALTER TABLE aspect_memberships | |
DROP CONSTRAINT aspect_memberships_contact_id_fkey, | |
ADD CONSTRAINT aspect_memberships_contact_id_fkey FOREIGN KEY (contact_id) REFERENCES contacts(id) ON DELETE CASCADE; | |
ALTER TABLE aspect_visibilities | |
DROP CONSTRAINT aspect_visibilities_aspect_id_fkey, | |
ADD CONSTRAINT aspect_visibilities_aspect_id_fkey FOREIGN KEY (aspect_id) REFERENCES aspects(id) ON DELETE CASCADE; | |
ALTER TABLE comment_signatures |
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
#!/usr/bin/env ruby | |
# frozen_string_literal: true | |
require "bundler/inline" | |
gemfile do | |
source "https://rubygems.org" | |
gem "octokit" | |
gem "terminal-table" |
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
-- Based on Simple SQL Authentication module for Prosody IM | |
-- Copyright (C) 2011 Tomasz Sterna <tomek@xiaoka.com> | |
-- Copyright (C) 2011 Waqas Hussain <waqas20@gmail.com> | |
-- | |
-- 25/05/2014: Modified for Diaspora by Anahuac de Paula Gil - anahuac@anahuac.eu | |
-- 06/08/2014: Cleaned up and fixed SASL auth by Jonne Haß <me@jhass.eu> | |
-- 22/11/2014: Allow token authentication by Jonne Haß <me@jhass.eu> | |
local log = require "util.logger".init("auth_diaspora") | |
local new_sasl = require "util.sasl".new |
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
/* | |
* Copyright (C) 2004-2009 See the AUTHORS file for details. | |
* | |
* This program is free software; you can redistribute it and/or modify it | |
* under the terms of the GNU General Public License version 2 as published | |
* by the Free Software Foundation. | |
* | |
* Made by Mini | |
*/ |
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
source "https://rubygems.org" | |
ruby "2.0.0" | |
gem 'rack' | |
gem 'puma' | |
group :development do | |
gem 'foreman' | |
end |