Follow the instructions at https://wiki.archlinux.org/index.php/Diaspora
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
<?xml version='1.0' encoding='UTF-8'?> | |
<XRD xmlns='http://docs.oasis-open.org/ns/xri/xrd-1.0' | |
xmlns:hm='http://host-meta.net/xrd/1.0'> | |
<hm:Host>mrzyx.de</hm:Host> | |
<Link rel='lrdd' | |
template='https://mrzyx.de/webfinger.php?q={uri}'> | |
<Title>Resource Descriptor</Title> | |
</Link> | |
</XRD> |
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 not a complete Nginx configuration! It only shows the relevant parts for integrating Diaspora. | |
# [...] | |
http { | |
# Your standard server configuration goes here | |
# [...] | |
gzip_static on; |
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 | |
user_id = 0 # your user id | |
aspect_name = "Work" # Name of the aspect followers should be added to | |
require File.join(File.dirname(File.expand_path(__FILE__)), '..', 'config', 'environment') | |
user = User.find(user_id) | |
aspect = user.aspects.where(:name => aspect_name).first | |
user.contacts.only_sharing.each do |contact| | |
begin | |
user.share_with(contact.person, aspect) |
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 | |
require 'yaml' | |
files = ARGV | |
if !files.nil? && files.length >= 1 | |
files.each do |file| | |
if File.exists?(file) && File.file?(file) | |
begin | |
print "checking #{file}..." |
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
#!/usr/bin/env python | |
# -*- coding: utf8 | |
from random import choice | |
fortunes = ["“Welcome” is a powerful word.", | |
"A dubious friend may be an enemy in camouflage.", | |
"A feather in the hand is better than a bird in the air. (2)", | |
"A fresh start will put you on your way.", | |
"A friend asks only for your time not your money.", | |
"A friend is a present you give yourself.", | |
"A gambler not only will lose what he has, but also will lose what he doesn’t have.", |
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
function export() { | |
echo "$1" | sudo tee /sys/class/gpio/export | |
sudo chgrp -RH --dereference users /sys/class/gpio/* | |
sudo chmod -R g+w+r /sys/class/gpio/*/* | |
} | |
function unexport() { | |
echo "$1" | sudo tee /sys/class/gpio/unexport | |
} |
OlderNewer