Skip to content

Instantly share code, notes, and snippets.

@afontaine
afontaine / git-ignore
Last active December 19, 2015 10:09
Custom git script to create/append .gitignore file with provided arguments from gitignore.io's REST api. Move to anywhere in your PATH. Generate/Append the repo's .gitignore file using the gitignore.io api git-ignore [-l] <types> ... -l If no other option is present, list available templates. If options do exist, output is redirected to stdout. …
#!/bin/sh
USAGE="[-l] <types> ..."
LONG_USAGE="Generate/Append the repo's .gitignore file using the gitignore.io api
-l
If no other option is present, list available templates.
If options do exist, output is redirected to stdout.
`curl -s http://gitignore.io/api/`"
import me.meta1203.plugins.satoshis.Satoshis;
import me.meta1203.plugins.satoshis.SatoshisEconAPI;
import net.milkbowl.vault.economy.Economy;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import org.bukkit.plugin.Plugin;
import org.bukkit.plugin.RegisteredServiceProvider;
@jhass
jhass / nginx.conf
Last active May 12, 2022 02:13
Nginx Diaspora reverse proxy. - This is not a complete Nginx configuration! It only shows the relevant parts for integrating Diaspora.
# 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;
@jhass
jhass / diaspora.conf
Last active March 12, 2021 13:18
Advanced Diaspora Apache reverse proxy
# 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