7799ef248b6e

moar
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Tue, 12 Jun 2012 10:16:58 -0400
parents b3d0651f9a64
children be745fa0d1ab
branches/tags (none)
files bin/colortest bin/lein2 weechat/charset.conf

Changes

--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/colortest	Tue Jun 12 10:16:58 2012 -0400
@@ -0,0 +1,365 @@
+#!/usr/bin/perl
+
+# by entheon, do whatever the hell you want with this file
+
+print "\n";
+print "**************************\n";
+print "*XTERM 256Color Test Chart\n";
+print "**************************\n";
+print "* 16  = black\n";
+print "* 255 = white\n";
+print "*\n";
+print "* Usage:\n";
+print "* colortest -w\n";
+print "*    wide display\n";
+print "*\n";
+print "* colortest -w -r\n";
+print "*    wide display reversed\n";
+print "*\n";
+print "* colortest -w -s\n";
+print "*    extra spaces padding\n";
+print "*\n";
+print "* colortest -w -r -s\n";
+print "*    available combination\n";
+print "*\n";
+print "**************************\n";
+
+if( $ARGV[0] eq "-w" || $ARGV[1] eq "-w" || $ARGV[2] eq "-w" ) {
+    push(@arr, [(  " 16:  00/00/00",     " 17:  00/00/5f",     " 18:  00/00/87",     " 19:  00/00/af",     " 20:  00/00/d7",     " 21:  00/00/ff")] );  
+    push(@arr, [(  " 22:  00/5f/00",     " 23:  00/5f/5f",     " 24:  00/5f/87",     " 25:  00/5f/af",     " 26:  00/5f/d7",     " 27:  00/5f/ff")] );  
+    push(@arr, [(  " 28:  00/87/00",     " 29:  00/87/5f",     " 30:  00/87/87",     " 31:  00/87/af",     " 32:  00/87/d7",     " 33:  00/87/ff")] );  
+    push(@arr, [(  " 34:  00/af/00",     " 35:  00/af/5f",     " 36:  00/af/87",     " 37:  00/af/af",     " 38:  00/af/d7",     " 39:  00/af/ff")] );  
+    push(@arr, [(  " 40:  00/d7/00",     " 41:  00/d7/5f",     " 42:  00/d7/87",     " 43:  00/d7/af",     " 44:  00/d7/d7",     " 45:  00/d7/ff")] );  
+    push(@arr, [(  " 46:  00/ff/00",     " 47:  00/ff/5f",     " 48:  00/ff/87",     " 49:  00/ff/af",     " 50:  00/ff/d7",     " 51:  00/ff/ff")] );  
+    push(@arr, [(  " 52:  5f/00/00",     " 53:  5f/00/5f",     " 54:  5f/00/87",     " 55:  5f/00/af",     " 56:  5f/00/d7",     " 57:  5f/00/ff")] );  
+    push(@arr, [(  " 58:  5f/5f/00",     " 59:  5f/5f/5f",     " 60:  5f/5f/87",     " 61:  5f/5f/af",     " 62:  5f/5f/d7",     " 63:  5f/5f/ff")] );  
+    push(@arr, [(  " 64:  5f/87/00",     " 65:  5f/87/5f",     " 66:  5f/87/87",     " 67:  5f/87/af",     " 68:  5f/87/d7",     " 69:  5f/87/ff")] );  
+    push(@arr, [(  " 70:  5f/af/00",     " 71:  5f/af/5f",     " 72:  5f/af/87",     " 73:  5f/af/af",     " 74:  5f/af/d7",     " 75:  5f/af/ff")] );  
+    push(@arr, [(  " 76:  5f/d7/00",     " 77:  5f/d7/5f",     " 78:  5f/d7/87",     " 79:  5f/d7/af",     " 80:  5f/d7/d7",     " 81:  5f/d7/ff")] );  
+    push(@arr, [(  " 82:  5f/ff/00",     " 83:  5f/ff/5f",     " 84:  5f/ff/87",     " 85:  5f/ff/af",     " 86:  5f/ff/d7",     " 87:  5f/ff/ff")] );  
+    push(@arr, [(  " 88:  87/00/00",     " 89:  87/00/5f",     " 90:  87/00/87",     " 91:  87/00/af",     " 92:  87/00/d7",     " 93:  87/00/ff")] );  
+    push(@arr, [(  " 94:  87/5f/00",     " 95:  87/5f/5f",     " 96:  87/5f/87",     " 97:  87/5f/af",     " 98:  87/5f/d7",     " 99:  87/5f/ff")] );  
+    push(@arr, [( " 100: 87/87/00",    " 101: 87/87/5f",    " 102: 87/87/87",    " 103: 87/87/af",    " 104: 87/87/d7",    " 105: 87/87/ff")] );
+    push(@arr, [( " 106: 87/af/00",    " 107: 87/af/5f",    " 108: 87/af/87",    " 109: 87/af/af",    " 110: 87/af/d7",    " 111: 87/af/ff")] );
+    push(@arr, [( " 112: 87/d7/00",    " 113: 87/d7/5f",    " 114: 87/d7/87",    " 115: 87/d7/af",    " 116: 87/d7/d7",    " 117: 87/d7/ff")] );
+    push(@arr, [( " 118: 87/ff/00",    " 119: 87/ff/5f",    " 120: 87/ff/87",    " 121: 87/ff/af",    " 122: 87/ff/d7",    " 123: 87/ff/ff")] );
+    push(@arr, [( " 124: af/00/00",    " 125: af/00/5f",    " 126: af/00/87",    " 127: af/00/af",    " 128: af/00/d7",    " 129: af/00/ff")] );
+    push(@arr, [( " 130: af/5f/00",    " 131: af/5f/5f",    " 132: af/5f/87",    " 133: af/5f/af",    " 134: af/5f/d7",    " 135: af/5f/ff")] );
+    push(@arr, [( " 136: af/87/00",    " 137: af/87/5f",    " 138: af/87/87",    " 139: af/87/af",    " 140: af/87/d7",    " 141: af/87/ff")] );
+    push(@arr, [( " 142: af/af/00",    " 143: af/af/5f",    " 144: af/af/87",    " 145: af/af/af",    " 146: af/af/d7",    " 147: af/af/ff")] );
+    push(@arr, [( " 148: af/d7/00",    " 149: af/d7/5f",    " 150: af/d7/87",    " 151: af/d7/af",    " 152: af/d7/d7",    " 153: af/d7/ff")] );
+    push(@arr, [( " 154: af/ff/00",    " 155: af/ff/5f",    " 156: af/ff/87",    " 157: af/ff/af",    " 158: af/ff/d7",    " 159: af/ff/ff")] );
+    push(@arr, [( " 160: d7/00/00",    " 161: d7/00/5f",    " 162: d7/00/87",    " 163: d7/00/af",    " 164: d7/00/d7",    " 165: d7/00/ff")] );
+    push(@arr, [( " 166: d7/5f/00",    " 167: d7/5f/5f",    " 168: d7/5f/87",    " 169: d7/5f/af",    " 170: d7/5f/d7",    " 171: d7/5f/ff")] );
+    push(@arr, [( " 172: d7/87/00",    " 173: d7/87/5f",    " 174: d7/87/87",    " 175: d7/87/af",    " 176: d7/87/d7",    " 177: d7/87/ff")] );
+    push(@arr, [( " 178: d7/af/00",    " 179: d7/af/5f",    " 180: d7/af/87",    " 181: d7/af/af",    " 182: d7/af/d7",    " 183: d7/af/ff")] );
+    push(@arr, [( " 184: d7/d7/00",    " 185: d7/d7/5f",    " 186: d7/d7/87",    " 187: d7/d7/af",    " 188: d7/d7/d7",    " 189: d7/d7/ff")] );
+    push(@arr, [( " 190: d7/ff/00",    " 191: d7/ff/5f",    " 192: d7/ff/87",    " 193: d7/ff/af",    " 194: d7/ff/d7",    " 195: d7/ff/ff")] );
+    push(@arr, [( " 196: ff/00/00",    " 197: ff/00/5f",    " 198: ff/00/87",    " 199: ff/00/af",    " 200: ff/00/d7",    " 201: ff/00/ff")] );
+    push(@arr, [( " 202: ff/5f/00",    " 203: ff/5f/5f",    " 204: ff/5f/87",    " 205: ff/5f/af",    " 206: ff/5f/d7",    " 207: ff/5f/ff")] );
+    push(@arr, [( " 208: ff/87/00",    " 209: ff/87/5f",    " 210: ff/87/87",    " 211: ff/87/af",    " 212: ff/87/d7",    " 213: ff/87/ff")] );
+    push(@arr, [( " 214: ff/af/00",    " 215: ff/af/5f",    " 216: ff/af/87",    " 217: ff/af/af",    " 218: ff/af/d7",    " 219: ff/af/ff")] );
+    push(@arr, [( " 220: ff/d7/00",    " 221: ff/d7/5f",    " 222: ff/d7/87",    " 223: ff/d7/af",    " 224: ff/d7/d7",    " 225: ff/d7/ff")] );
+    push(@arr, [( " 226: ff/ff/00",    " 227: ff/ff/5f",    " 228: ff/ff/87",    " 229: ff/ff/af",    " 230: ff/ff/d7",    " 231: ff/ff/ff")] );
+    push(@arr, [( " 232: 08/08/08",    " 233: 12/12/12",    " 234: 1c/1c/1c",    " 235: 26/26/26",    " 236: 30/30/30",    " 237: 3a/3a/3a")] );
+    push(@arr, [( " 238: 44/44/44",    " 239: 4e/4e/4e",    " 240: 58/58/58",    " 241: 62/62/62",    " 242: 6c/6c/6c",    " 243: 76/76/76")] );
+    push(@arr, [( " 244: 80/80/80",    " 245: 8a/8a/8a",    " 246: 94/94/94",    " 247: 9e/9e/9e",    " 248: a8/a8/a8",    " 249: b2/b2/b2")] );
+    push(@arr, [( " 250: bc/bc/bc",    " 251: c6/c6/c6",    " 252: d0/d0/d0",    " 253: da/da/da",    " 254: e4/e4/e4",    " 255: ee/ee/ee")] );
+
+    if( $ARGV[0] eq "-s" || $ARGV[1] eq "-s" || $ARGV[2] eq "-s" ){
+        $padding = "    ";
+    }
+    else {
+        
+    }
+
+    # display in reverse order
+    if( $ARGV[0] eq "-r" || $ARGV[1] eq "-r" || $ARGV[2] eq "-r" ){
+        for( $dimone = 0; $dimone < scalar @arr; $dimone++ ) {
+
+            $seed = ($dimone % 6) * -1;
+            for( $dimtwo = 0; $dimtwo < 6; $dimtwo++ ) {
+
+                $movone = $seed;
+                $movtwo = $seed * -1;
+
+                print $arr[$dimone][$dimtwo] . $padding;
+
+                $seed = $seed+1;
+            }
+
+            print "\n";
+        }
+    }
+    else {
+        for( $dimone = 0; $dimone < scalar @arr; $dimone++ ) {
+
+            $seed = ($dimone % 6) * -1;
+            for( $dimtwo = 0; $dimtwo < 6; $dimtwo++ ) {
+
+                $movone = $seed;
+                $movtwo = $seed * -1;
+
+                $newone = $dimone+$movone;
+                $newtwo = $dimtwo+$movtwo;
+
+                if( $newone < scalar @arr ){
+                    print $arr[$newone][$newtwo] . $padding;
+                }
+
+                $seed = $seed+1;
+            }
+
+            print "\n";
+        }
+    }
+    print "\n";
+    print "\n";
+
+}
+else {
+    print " 16:  00/00/00\n";
+    print " 17:  00/00/5f\n";
+    print " 18:  00/00/87\n";
+    print " 19:  00/00/af\n";
+    print " 20:  00/00/d7\n";
+    print " 21:  00/00/ff\n";
+    print " 22:  00/5f/00\n";
+    print " 23:  00/5f/5f\n";
+    print " 24:  00/5f/87\n";
+    print " 25:  00/5f/af\n";
+    print " 26:  00/5f/d7\n";
+    print " 27:  00/5f/ff\n";
+    print " 28:  00/87/00\n";
+    print " 29:  00/87/5f\n";
+    print " 30:  00/87/87\n";
+    print " 31:  00/87/af\n";
+    print " 32:  00/87/d7\n";
+    print " 33:  00/87/ff\n";
+    print " 34:  00/af/00\n";
+    print " 35:  00/af/5f\n";
+    print " 36:  00/af/87\n";
+    print " 37:  00/af/af\n";
+    print " 38:  00/af/d7\n";
+    print " 39:  00/af/ff\n";
+    print " 40:  00/d7/00\n";
+    print " 41:  00/d7/5f\n";
+    print " 42:  00/d7/87\n";
+    print " 43:  00/d7/af\n";
+    print " 44:  00/d7/d7\n";
+    print " 45:  00/d7/ff\n";
+    print " 46:  00/ff/00\n";
+    print " 47:  00/ff/5f\n";
+    print " 48:  00/ff/87\n";
+    print " 49:  00/ff/af\n";
+    print " 50:  00/ff/d7\n";
+    print " 51:  00/ff/ff\n";
+    print " 52:  5f/00/00\n";
+    print " 53:  5f/00/5f\n";
+    print " 54:  5f/00/87\n";
+    print " 55:  5f/00/af\n";
+    print " 56:  5f/00/d7\n";
+    print " 57:  5f/00/ff\n";
+    print " 58:  5f/5f/00\n";
+    print " 59:  5f/5f/5f\n";
+    print " 60:  5f/5f/87\n";
+    print " 61:  5f/5f/af\n";
+    print " 62:  5f/5f/d7\n";
+    print " 63:  5f/5f/ff\n";
+    print " 64:  5f/87/00\n";
+    print " 65:  5f/87/5f\n";
+    print " 66:  5f/87/87\n";
+    print " 67:  5f/87/af\n";
+    print " 68:  5f/87/d7\n";
+    print " 69:  5f/87/ff\n";
+    print " 70:  5f/af/00\n";
+    print " 71:  5f/af/5f\n";
+    print " 72:  5f/af/87\n";
+    print " 73:  5f/af/af\n";
+    print " 74:  5f/af/d7\n";
+    print " 75:  5f/af/ff\n";
+    print " 76:  5f/d7/00\n";
+    print " 77:  5f/d7/5f\n";
+    print " 78:  5f/d7/87\n";
+    print " 79:  5f/d7/af\n";
+    print " 80:  5f/d7/d7\n";
+    print " 81:  5f/d7/ff\n";
+    print " 82:  5f/ff/00\n";
+    print " 83:  5f/ff/5f\n";
+    print " 84:  5f/ff/87\n";
+    print " 85:  5f/ff/af\n";
+    print " 86:  5f/ff/d7\n";
+    print " 87:  5f/ff/ff\n";
+    print " 88:  87/00/00\n";
+    print " 89:  87/00/5f\n";
+    print " 90:  87/00/87\n";
+    print " 91:  87/00/af\n";
+    print " 92:  87/00/d7\n";
+    print " 93:  87/00/ff\n";
+    print " 94:  87/5f/00\n";
+    print " 95:  87/5f/5f\n";
+    print " 96:  87/5f/87\n";
+    print " 97:  87/5f/af\n";
+    print " 98:  87/5f/d7\n";
+    print " 99:  87/5f/ff\n";
+    print " 100 :87/87/00\n";
+    print " 101 :87/87/5f\n";
+    print " 102 :87/87/87\n";
+    print " 103 :87/87/af\n";
+    print " 104 :87/87/d7\n";
+    print " 105 :87/87/ff\n";
+    print " 106 :87/af/00\n";
+    print " 107 :87/af/5f\n";
+    print " 108 :87/af/87\n";
+    print " 109 :87/af/af\n";
+    print " 110 :87/af/d7\n";
+    print " 111 :87/af/ff\n";
+    print " 112 :87/d7/00\n";
+    print " 113 :87/d7/5f\n";
+    print " 114 :87/d7/87\n";
+    print " 115 :87/d7/af\n";
+    print " 116 :87/d7/d7\n";
+    print " 117 :87/d7/ff\n";
+    print " 118 :87/ff/00\n";
+    print " 119 :87/ff/5f\n";
+    print " 120 :87/ff/87\n";
+    print " 121 :87/ff/af\n";
+    print " 122 :87/ff/d7\n";
+    print " 123 :87/ff/ff\n";
+    print " 124 :af/00/00\n";
+    print " 125 :af/00/5f\n";
+    print " 126 :af/00/87\n";
+    print " 127 :af/00/af\n";
+    print " 128 :af/00/d7\n";
+    print " 129 :af/00/ff\n";
+    print " 130 :af/5f/00\n";
+    print " 131 :af/5f/5f\n";
+    print " 132 :af/5f/87\n";
+    print " 133 :af/5f/af\n";
+    print " 134 :af/5f/d7\n";
+    print " 135 :af/5f/ff\n";
+    print " 136 :af/87/00\n";
+    print " 137 :af/87/5f\n";
+    print " 138 :af/87/87\n";
+    print " 139 :af/87/af\n";
+    print " 140 :af/87/d7\n";
+    print " 141 :af/87/ff\n";
+    print " 142 :af/af/00\n";
+    print " 143 :af/af/5f\n";
+    print " 144 :af/af/87\n";
+    print " 145 :af/af/af\n";
+    print " 146 :af/af/d7\n";
+    print " 147 :af/af/ff\n";
+    print " 148 :af/d7/00\n";
+    print " 149 :af/d7/5f\n";
+    print " 150 :af/d7/87\n";
+    print " 151 :af/d7/af\n";
+    print " 152 :af/d7/d7\n";
+    print " 153 :af/d7/ff\n";
+    print " 154 :af/ff/00\n";
+    print " 155 :af/ff/5f\n";
+    print " 156 :af/ff/87\n";
+    print " 157 :af/ff/af\n";
+    print " 158 :af/ff/d7\n";
+    print " 159 :af/ff/ff\n";
+    print " 160 :d7/00/00\n";
+    print " 161 :d7/00/5f\n";
+    print " 162 :d7/00/87\n";
+    print " 163 :d7/00/af\n";
+    print " 164 :d7/00/d7\n";
+    print " 165 :d7/00/ff\n";
+    print " 166 :d7/5f/00\n";
+    print " 167 :d7/5f/5f\n";
+    print " 168 :d7/5f/87\n";
+    print " 169 :d7/5f/af\n";
+    print " 170 :d7/5f/d7\n";
+    print " 171 :d7/5f/ff\n";
+    print " 172 :d7/87/00\n";
+    print " 173 :d7/87/5f\n";
+    print " 174 :d7/87/87\n";
+    print " 175 :d7/87/af\n";
+    print " 176 :d7/87/d7\n";
+    print " 177 :d7/87/ff\n";
+    print " 178 :d7/af/00\n";
+    print " 179 :d7/af/5f\n";
+    print " 180 :d7/af/87\n";
+    print " 181 :d7/af/af\n";
+    print " 182 :d7/af/d7\n";
+    print " 183 :d7/af/ff\n";
+    print " 184 :d7/d7/00\n";
+    print " 185 :d7/d7/5f\n";
+    print " 186 :d7/d7/87\n";
+    print " 187 :d7/d7/af\n";
+    print " 188 :d7/d7/d7\n";
+    print " 189 :d7/d7/ff\n";
+    print " 190 :d7/ff/00\n";
+    print " 191 :d7/ff/5f\n";
+    print " 192 :d7/ff/87\n";
+    print " 193 :d7/ff/af\n";
+    print " 194 :d7/ff/d7\n";
+    print " 195 :d7/ff/ff\n";
+    print " 196 :ff/00/00\n";
+    print " 197 :ff/00/5f\n";
+    print " 198 :ff/00/87\n";
+    print " 199 :ff/00/af\n";
+    print " 200 :ff/00/d7\n";
+    print " 201 :ff/00/ff\n";
+    print " 202 :ff/5f/00\n";
+    print " 203 :ff/5f/5f\n";
+    print " 204 :ff/5f/87\n";
+    print " 205 :ff/5f/af\n";
+    print " 206 :ff/5f/d7\n";
+    print " 207 :ff/5f/ff\n";
+    print " 208 :ff/87/00\n";
+    print " 209 :ff/87/5f\n";
+    print " 210 :ff/87/87\n";
+    print " 211 :ff/87/af\n";
+    print " 212 :ff/87/d7\n";
+    print " 213 :ff/87/ff\n";
+    print " 214 :ff/af/00\n";
+    print " 215 :ff/af/5f\n";
+    print " 216 :ff/af/87\n";
+    print " 217 :ff/af/af\n";
+    print " 218 :ff/af/d7\n";
+    print " 219 :ff/af/ff\n";
+    print " 220 :ff/d7/00\n";
+    print " 221 :ff/d7/5f\n";
+    print " 222 :ff/d7/87\n";
+    print " 223 :ff/d7/af\n";
+    print " 224 :ff/d7/d7\n";
+    print " 225 :ff/d7/ff\n";
+    print " 226 :ff/ff/00\n";
+    print " 227 :ff/ff/5f\n";
+    print " 228 :ff/ff/87\n";
+    print " 229 :ff/ff/af\n";
+    print " 230 :ff/ff/d7\n";
+    print " 231 :ff/ff/ff\n";
+    print " 232 :08/08/08\n";
+    print " 233 :12/12/12\n";
+    print " 234 :1c/1c/1c\n";
+    print " 235 :26/26/26\n";
+    print " 236 :30/30/30\n";
+    print " 237 :3a/3a/3a\n";
+    print " 238 :44/44/44\n";
+    print " 239 :4e/4e/4e\n";
+    print " 240 :58/58/58\n";
+    print " 241 :62/62/62\n";
+    print " 242 :6c/6c/6c\n";
+    print " 243 :76/76/76\n";
+    print " 244 :80/80/80\n";
+    print " 245 :8a/8a/8a\n";
+    print " 246 :94/94/94\n";
+    print " 247 :9e/9e/9e\n";
+    print " 248 :a8/a8/a8\n";
+    print " 249 :b2/b2/b2\n";
+    print " 250 :bc/bc/bc\n";
+    print " 251 :c6/c6/c6\n";
+    print " 252 :d0/d0/d0\n";
+    print " 253 :da/da/da\n";
+    print " 254 :e4/e4/e4\n";
+    print " 255 :ee/ee/ee\n";
+    print "\n";
+    print "\n";
+}
+print "0m";
+exit;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/lein2	Tue Jun 12 10:16:58 2012 -0400
@@ -0,0 +1,220 @@
+#!/bin/bash
+
+LEIN_VERSION="2.0.0-preview4"
+export LEIN_VERSION
+
+case $LEIN_VERSION in
+    *SNAPSHOT) SNAPSHOT="YES" ;;
+    *) SNAPSHOT="NO" ;;
+esac
+
+if [ `id -u` -eq 0 ] && [ "$LEIN_ROOT" = "" ]; then
+    echo "WARNING: You're currently running as root; probably by accident."
+    echo "Press control-C to abort or Enter to continue as root."
+    echo "Set LEIN_ROOT to disable this warning."
+    read _
+fi
+
+NOT_FOUND=1
+ORIGINAL_PWD="$PWD"
+while [ ! -r "$PWD/project.clj" ] && [ "$PWD" != "/" ] && [ $NOT_FOUND -ne 0 ]
+do
+    cd ..
+    if [ "$(dirname "$PWD")" = "/" ]; then
+        NOT_FOUND=0
+        cd "$ORIGINAL_PWD"
+    fi
+done
+
+export LEIN_HOME=${LEIN_HOME:-"$HOME/.lein"}
+
+if [ "$OSTYPE" = "cygwin" ]; then
+    export LEIN_HOME=`cygpath -w $LEIN_HOME`
+fi
+
+LEIN_JAR="$LEIN_HOME/self-installs/leiningen-$LEIN_VERSION-standalone.jar"
+
+# normalize $0 on certain BSDs
+if [ "$(dirname "$0")" = "." ]; then
+    SCRIPT="$(which $(basename "$0"))"
+else
+    SCRIPT="$0"
+fi
+
+# resolve symlinks to the script itself portably
+while [ -h "$SCRIPT" ] ; do
+    ls=`ls -ld "$SCRIPT"`
+    link=`expr "$ls" : '.*-> \(.*\)$'`
+    if expr "$link" : '/.*' > /dev/null; then
+        SCRIPT="$link"
+    else
+        SCRIPT="$(dirname "$SCRIPT"$)/$link"
+    fi
+done
+
+BIN_DIR="$(dirname "$SCRIPT")"
+
+if [ -r "$BIN_DIR/../src/leiningen/version.clj" ]; then
+    # Running from source checkout
+    LEIN_DIR="$(dirname "$BIN_DIR")"
+
+    # Need to use lein 1.x to bootstrap the leiningen-core library (for aether)
+    if [ "$(ls $LEIN_DIR/leiningen-core/lib/*)" = "" ]; then
+        echo "Leiningen is missing its dependencies."
+        echo "Please see \"Building\" in the README."
+        exit 1
+    fi
+
+    # If project.clj for lein or leiningen-core changes, we must recalculate
+    LAST_PROJECT_CHECKSUM=$(cat "$LEIN_DIR/.lein-project-checksum" 2> /dev/null)
+    PROJECT_CHECKSUM=$(sum "$LEIN_DIR/project.clj" "$LEIN_DIR/leiningen-core/project.clj")
+    if [ "$PROJECT_CHECKSUM" != "$LAST_PROJECT_CHECKSUM" ]; then
+        if [ -r "$LEIN_DIR/.lein-classpath" ]; then
+            rm "$LEIN_DIR/.lein-classpath"
+        fi
+    fi
+
+    # Use bin/lein to calculate its own classpath since src/ and
+    # leiningen-core/lib/*jar suffices to run the classpath task.
+    if [ ! -r "$LEIN_DIR/.lein-classpath" ] && [ "$1" != "classpath" ]; then
+        echo "Recalculating Leiningen's classpath."
+        ORIG_PWD="$PWD"
+        cd "$LEIN_DIR"
+
+        $0 classpath .lein-classpath
+        sum $LEIN_DIR/project.clj $LEIN_DIR/leiningen-core/project.clj > \
+            .lein-project-checksum
+        cd "$ORIG_PWD"
+    fi
+
+    mkdir -p "$LEIN_DIR/target/classes"
+    export LEIN_JVM_OPTS=${LEIN_JVM_OPTS:-"-Dclojure.compile.path=$LEIN_DIR/target/classes"}
+    CLASSPATH="$LEIN_DIR/leiningen-core/src/"
+    CLASSPATH="$CLASSPATH:$(cat $LEIN_DIR/.lein-classpath 2> /dev/null)"
+    CLASSPATH="$CLASSPATH:$LEIN_DIR/leiningen-core/lib/*"
+    CLASSPATH="$CLASSPATH:$LEIN_DIR/test:$LEIN_DIR/target/classes"
+    CLASSPATH="$CLASSPATH:$LEIN_DIR/src:$LEIN_DIR/resources:$LEIN_JAR"
+    if [ -f .lein-classpath ]; then
+        CLASSPATH="`cat .lein-classpath`:$CLASSPATH"
+    fi
+else # Not running from a checkout
+    # apply context specific CLASSPATH entries
+    if [ -f .lein-classpath ]; then
+        CLASSPATH="`cat .lein-classpath`:$LEIN_JAR"
+    else
+        CLASSPATH="$LEIN_JAR"
+    fi
+
+    export LEIN_JVM_OPTS=${LEIN_JVM_OPTS:-"-Xbootclasspath/a:$LEIN_JAR"}
+
+    if [ ! -r "$LEIN_JAR" -a "$1" != "self-install" ]; then
+        "$0" self-install
+    fi
+fi
+
+HTTP_CLIENT=${HTTP_CLIENT:-"wget -O"}
+if type -p curl >/dev/null 2>&1; then
+    if [ "$https_proxy" != "" ]; then
+        CURL_PROXY="-x $https_proxy"
+    fi
+    HTTP_CLIENT="curl $CURL_PROXY -f -L -o"
+fi
+
+export JAVA_CMD=${JAVA_CMD:-"java"}
+export LEIN_JAVA_CMD=${LEIN_JAVA_CMD:-$JAVA_CMD}
+
+# Support $JAVA_OPTS for backwards-compatibility.
+export JVM_OPTS="${JVM_OPTS:-"$JAVA_OPTS"}"
+
+# TODO: investigate http://skife.org/java/unix/2011/06/20/really_executable_jars.html
+# If you're packaging this for a package manager (.deb, homebrew, etc)
+# you need to remove the self-install and upgrade functionality or see lein-pkg.
+if [ "$1" = "self-install" ]; then
+    if [ -r "$LEIN_JAR" ]; then
+      echo "The self-install jar already exists at $LEIN_JAR."
+      echo "If you wish to re-download, delete it and rerun \"$0 self-install\"."
+      exit 1
+    fi
+    echo "Downloading Leiningen now..."
+    LEIN_DIR=`dirname "$LEIN_JAR"`
+    mkdir -p "$LEIN_DIR"
+    LEIN_URL="https://github.com/downloads/technomancy/leiningen/leiningen-$LEIN_VERSION-standalone.jar"
+    $HTTP_CLIENT "$LEIN_JAR" "$LEIN_URL"
+    if [ $? != 0 ]; then
+        echo "Failed to download $LEIN_URL"
+        if [ $SNAPSHOT = "YES" ]; then
+            echo "If you have Maven installed, you can do"
+            echo "mvn dependency:copy-dependencies; mv target/dependency lib"
+            echo "See README.md for further SNAPSHOT build instructions."
+        fi
+        rm $LEIN_JAR 2> /dev/null
+        exit 1
+    fi
+elif [ "$1" = "upgrade" ]; then
+    if [ "$LEIN_DIR" != "" ]; then
+        echo "The upgrade task is not meant to be run from a checkout."
+        exit 1
+    fi
+    if [ $SNAPSHOT = "YES" ]; then
+        echo "The upgrade task is only meant for stable releases."
+        echo "See the \"Hacking\" section of the README."
+        exit 1
+    fi
+    if [ ! -w "$SCRIPT" ]; then
+        echo "You do not have permission to upgrade the installation in $SCRIPT"
+        exit 1
+    else
+        TARGET_VERSION="${2:-"preview"}"
+        echo "The script at $SCRIPT will be upgraded to the latest $TARGET_VERSION version."
+        echo -n "Do you want to continue [Y/n]? "
+        read RESP
+        case "$RESP" in
+            y|Y|"")
+                echo
+                echo "Upgrading..."
+                TARGET="/tmp/lein-$$-upgrade"
+                LEIN_SCRIPT_URL="https://github.com/technomancy/leiningen/raw/$TARGET_VERSION/bin/lein"
+                $HTTP_CLIENT "$TARGET" "$LEIN_SCRIPT_URL" \
+                    && mv "$TARGET" "$SCRIPT" \
+                    && chmod +x "$SCRIPT" \
+                    && echo && "$SCRIPT" self-install && echo && echo "Now running" `$SCRIPT version`
+                exit $?;;
+            *)
+                echo "Aborted."
+                exit 1;;
+        esac
+    fi
+else
+    if [ "$OSTYPE" = "cygwin" ]; then
+        # When running on Cygwin, use Windows-style paths for java
+        ORIGINAL_PWD=`cygpath -w "$ORIGINAL_PWD"`
+        CLASSPATH=`cygpath -wp "$CLASSPATH"`
+    fi
+
+    if [ $DEBUG ]; then
+        echo "Classpath: $CLASSPATH"
+    fi
+
+    TRAMPOLINE_FILE="/tmp/lein-trampoline-$$"
+    if [ "$OSTYPE" = "cygwin" ]; then
+        TRAMPOLINE_FILE=`cygpath -w $TRAMPOLINE_FILE`
+    fi
+
+    $LEIN_JAVA_CMD \
+        -client -XX:+TieredCompilation \
+        $LEIN_JVM_OPTS \
+        -Dleiningen.original.pwd="$ORIGINAL_PWD" \
+        -Dleiningen.trampoline-file=$TRAMPOLINE_FILE \
+        -cp "$CLASSPATH" \
+        clojure.main -m leiningen.core.main "$@"
+
+    EXIT_CODE=$?
+
+    if [ -r $TRAMPOLINE_FILE ]; then
+        TRAMPOLINE="$(cat $TRAMPOLINE_FILE)"
+        rm $TRAMPOLINE_FILE
+        exec sh -c "exec $TRAMPOLINE"
+    else
+        exit $EXIT_CODE
+    fi
+fi
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/weechat/charset.conf	Tue Jun 12 10:16:58 2012 -0400
@@ -0,0 +1,11 @@
+#
+# charset.conf -- WeeChat v0.3.8
+#
+
+[default]
+decode = "iso-8859-1"
+encode = ""
+
+[decode]
+
+[encode]