This file contains hidden or 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
# YMMV | |
from django.conf import settings | |
from django.contrib.auth.models import Group, Permission | |
from django.core.management.sql import emit_post_migrate_signal | |
from django.db import migrations, models | |
import django.db.models.deletion | |
import logging | |
This file contains hidden or 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
<script src="//code.jquery.com/jquery-1.10.2.min.js"></script> | |
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet"> | |
<script> | |
var rq = '//api.syfaro.net/server/status'; | |
var error = 'unknown'; | |
var classes = { | |
error: "fa-question", | |
false: "fa-times", | |
true: "fa-check", | |
}; |
This file contains hidden or 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
# From http://garmoncheg.blogspot.com/2012/06/pretty-git-log.html | |
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --" |
This file contains hidden or 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 | |
for pkg in `pacman -Qq`; do | |
size=` | |
pacman -Qi $pkg | | |
grep '^Installed Size' | | |
awk -F '[[:space:]]+:[[:space:]]+' '{print $2}' | |
` | |
echo "$size - $pkg" | |
done | |