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
# Fedora Nodoka gtkrc, based on Aqualooks | |
# | |
# Authors: | |
# Daniel Geiger <dgeiger_343@yahoo.com> | |
# Martin Sourada <martin.sourada@seznam.cz> | |
# | |
# Uses the Nodoka theme engine, forked from Murrine theme engine | |
gtk_color_scheme = "fg_color:#D4D4D4\nbg_color:#333333\nbase_color:#474747\ntext_color:#D4D4D4\nselected_bg_color:#ff7228\nselected_fg_color:#ffffff\ntooltip_bg_color:#ff7228\ntooltip_fg_color:#000" |
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
#!/usr/bin/python | |
import sys | |
files = sys.argv[1:] | |
for f in files: | |
h = open(f, "rU") | |
lines = h.read().split('\n') | |
h.close() |
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
main = do putStrLn "How many digits do you want?" | |
nstr <- getLine | |
putStrLn $ take (read nstr) $ cycle "1" | |
main |
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
main = do | |
f <- readFile "scores.csv" | |
let (precategories, prescores) = unzip $ map (span (/= ',')) $ lines f | |
let categories = map read precategories | |
let scores = map (\x -> sum $ read $ "[" ++ tail x ++ "]") prescores | |
let grades = map (\x -> (length $ takeWhile (<= x) levels) - 1) scores | |
let grade = sum grades | |
let ltr = gradeLetters !! ((length $ takeWhile (<= grade) levelGrades) - 1) |
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
#!/bin/sh | |
date=$(date "+%Y-%m-%dT%H:%M:%S") | |
MTPT=/mnt/Backup | |
SCWD=/root/ | |
BASEDIR=/ | |
rsync -avxzP \ | |
--delete-excluded --exclude-from="${SCWD}/exclude" \ |
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 more or less resembles the way it looks when I edit Haskell. | |
* That takes place inside emacs which runs in zenburn-inspired 88-color urxvt | |
*/ | |
.hs-keyglyph {color: #ffcd8b;} | |
.hs-keyword {color: #71bebe;} | |
.hs-comment, .hs-comment a {color: #ff8b00;} | |
.hs-str, .hs-chr {color: #cf6171;} | |
.hs-varop {color: #ffcd8b;} | |
.hs-definition {color: #8bcdff;} | |
.hs-conid, .hs-conop {color: #8bff8b;} |
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
#!/bin/sh | |
iptables -P INPUT ACCEPT | |
iptables -P OUTPUT ACCEPT | |
iptables -P FORWARD ACCEPT | |
iptables -F | |
iptables -X | |
iptables -L # appreciate the carnage |
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
main(){while(malloc(9));} |
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
#!/bin/sh | |
if [ $# != 2 ]; then | |
echo -n "syntax is: " | |
echo -n "$_" | |
echo "<file> <host>" | |
else | |
file="$1" | |
host="$2" | |
scp $file ${host}:/tmp |
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
/* tested with --std=c99 and --std=gnu99 using gcc 4.7.2 and clang 3.0 */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#define ERROR(...) \ | |
do { \ | |
fprintf(stderr, __VA_ARGS__); \ | |
fflush(stdout); \ | |
exit(1); \ |
OlderNewer