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
diff --git a/upgrade.glade b/upgrade.glade | |
index 91d6bd5..de069b6 100644 | |
--- a/upgrade.glade | |
+++ b/upgrade.glade | |
@@ -6,65 +6,85 @@ | |
<property name="title" translatable="yes">Foresight upgrade Helper</property> | |
<property name="icon">/usr/share/pixmaps/foresight-icon.png</property> | |
<child> | |
- <widget class="GtkFixed" id="fixed1"> | |
+ <widget class="GtkHBox" id="hbox1"> |
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 piece of code is in the public domain. | |
# <[email protected]> | |
# | |
from datetime import datetime | |
def get_age(date): | |
'''Take a datetime and return its "age" as a string. | |
The age can be in second, minute, hour, day, month or year. Only the |
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
#### tag #### | |
from django import template | |
from django.core import urlresolvers | |
register = template.Library() | |
@register.simple_tag | |
def nav_active(request, views): | |
views = ["myapp.views." + view for view in views.split()] |
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 piece of code is in the public domain. | |
# <[email protected]> | |
# | |
#### the filter #### | |
def insert_ellipse(lst, ellipse=0): | |
'''Insert ellipse where it's not sequential |
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
export PS1="[\u@\h \w]$ " | |
mkdir -p /home/test | |
export HOME=/home/test | |
mkdir -p ~/conary/builds | |
cat > ~/.conaryrc <<EOF | |
buildPath ~/conary/builds | |
EOF |
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
from conary import conaryclient, conarycfg | |
from conary.state import ConaryStateFromFile | |
cfg =conarycfg.ConaryConfiguration() | |
client = conaryclient.ConaryClient(cfg) | |
repos = client.getRepos() | |
conaryState = ConaryStateFromFile('CONARY', repos) |
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
find * -type f ! \( -name '*.recipe' -o -name '*.patch' \) | while read f; do if ! file $f | grep -qi 'text\|xml\|empty'; then echo $f; fi; done > /tmp/files.bin | |
cat /tmp/files.bin | while read ln; do pkg=`echo "$ln" | cut -d/ -f1`; f=`echo "$ln" | cut -d/ -f2`; grep -q "$f" $pkg/$pkg.recipe && echo $ln; done > /tmp/files.bin.directly-referenced | |
diff -u /tmp/files.bin.directly-referenced /tmp/files.bin | grep '^+[^+]' | cut -c2- > /tmp/files.bin.un-refed | |
xargs -a /tmp/files.bin -d '\n' du -s | sort -nr > /tmp/files.bin-sizes-no-human | |
du -s * | sort -nr > /tmp/pkgs.size | |
cat /tmp/files.bin | grep -v 'png\|jpg\|svg\|vimrc' > /tmp/files.exclude-pics |
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
4Suite-XML | |
915resolution | |
abby | |
aiksaurus | |
aircrack-ng | |
akode | |
amazonmp3 | |
aMule | |
anaconda-templates | |
android-sdk |
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
# /etc/conary/system-model for fl:2-devel | |
search 'group-world=foresight.rpath.org@fl:2-devel/2.5.2+2011.11.18-0.2-2[~!bootstrap,~buildtests,~!cross,desktop,~!dom0,~!domU,~!gcc.core,~grub.static,ipv6,~kernel.debugdata,krb,ldap,pam,~!pie,readline,ssl,tcl,tk,~!vmware,~!xen is: x86(i486,i586,i686,sse,sse2) x86_64]' | |
install group-gnome-dist |
OlderNewer