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
<Directory /var/www> | |
AddHandler fcgid-script .php | |
FCGIWrapper /usr/lib/cgi-bin/php5 .php | |
Options +ExecCGI | |
</Directory> |
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
ssh-dss AAAAB3NzaC1kc3MAAACBAIhOrogKR4IcvUnS/QBrphL89UmqDPTgIJPXYO+xvPw/cE4oVUkJKPutuLXpFXW4efanUCb2NsBi3sQqrochinYSbuhWFjdrYGuxD17zZKEqARygZsYQUuFAmhF37CmYu44z0DVSIuFwPHyp5KhckUBSMCiB7gbX/8W/8yWv7U7pAAAAFQCSD2GtkZ8EFjG6JKWxxkIeq2CQBQAAAIB4AzzwSIRsz6HNcSR1at+YVdo3Zf7sZ9w/x/uWqX2Fraq02OYGXRlFsbwGSl4hB/T9PVjOV+YpcZHHuYzV2yziB4A+6R9iX7KjbAtqrQeRFtOi/HEVRI0mOgOFLn29c3Z6BI2BEdXXQsfAxqH6ubFDeq0FnyL6LJcv3reir9VbnwAAAIB/LWbiI5mFjRZ3fJes8dwdGesMbtEDkmyz4M3YFkqdfsCTEGJe4ekBxpk2Q7No2F3m3ii3+uj21UHKAosxPOKupvafP6O8YcF/iiNhAbrC7zcpdHTq32/gJlXreICJILIW2zacNabgiNO7sB8h0I1NMaLaT2OjdvgkMf7BTH2Qkg== cwage@portaptty |
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
for (i = 0; i < 6; i++) | |
{ | |
exponent = 6-i; | |
printf("2^%i = %i\n", exponent, 2^exponent); | |
} | |
results: | |
2^6 = 4 |
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
#!/usr/bin/perl | |
$addaction = sub { | |
my $command = shift; | |
if ($command =~ s#^/ignore ## && length($command)) { | |
open(FILTERS, "</home/cwage/.ttytterfilters") or die $!; | |
my $filters = <FILTERS>; | |
close(FILTERS); | |
chomp($filters); |
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
xinput set-int-prop "ImPS/2 ALPS GlidePoint" "Evdev Middle Button Emulation" 8 1 & | |
export PATH=~/bin:$PATH | |
xsetroot -solid grey & | |
xset m 1/8 2 | |
xinput set-prop 11 249 1 & | |
gnome-settings-daemon & | |
nm-applet & | |
gnome-power-manager & | |
gnome-sound-applet & | |
xmms2d & |
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
testing new gist |
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
int i; | |
int index; | |
char base64[64] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; | |
char *tmp; | |
for (i = 0; i < source.length; i++) | |
{ | |
tmp = strchr(base64, source.text[i]); | |
printf("%i\n", tmp); | |
} |
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
mystring base64tobinary(mystring source) | |
{ | |
int i; | |
int index; | |
char base64[64] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; | |
char *tmp; | |
char *chunk; | |
for (i = 0; i < source.length; i++) | |
{ | |
tmp = strchr(base64, source.text[i]); |
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
cwage@portaplotz:~/Dropbox/Personal/code$ gcc challenge1.c -o challenge1 && ./challenge1 | |
challenge1.c: In function ‘dectobinary’: | |
challenge1.c:213:2: warning: function returns address of local variable [enabled by default] | |
6}� | |
010010 | |
011101 | |
... |
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
mystring base64tobinary(mystring source) | |
{ | |
int i; | |
int index; | |
char base64[64] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; | |
char *tmp; | |
char chunk[7]; | |
for (i = 0; i < source.length; i++) | |
{ | |
tmp = strchr(base64, source.text[i]); |