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 | |
case "$((RANDOM/5461))" in | |
0) | |
color="SeaGreen2" ;; | |
1) | |
color="LimeGreen" ;; | |
2) | |
color="DarkTurquoise" ;; | |
3) | |
color="green3" ;; |
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
(taken straight from http://gitorious.org/lcd-filtering/pages/Xft) | |
Xft.autohint: 0 | |
Xft.lcdfilter: lcddefault | |
Xft.hintstyle: hintfull | |
Xft.hinting: 1 | |
Xft.antialias: 1 | |
Xft.dpi: 96 | |
Xft.rgba: rgb |
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
@namespace url(http://www.w3.org/1999/xhtml); | |
/* this filter can cause bizarre breakage on some pages, | |
sometimes mild but sometimes a severe smearing into fuzzy lines!? | |
it also fails to affect background colors or images for some reason. */ | |
@-moz-document url-prefix(http://), url-prefix(ftp://), url-prefix(file://), url-prefix(https://), url("about:blank") { | |
body { | |
/* this can crudely work-around the inability to affect backgrounds, but can cause breakage */ | |
background-color:black !important; |
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/bash | |
era="$(basename "${0%time*}")" # name/symlink me as ubertime, worktime.sh, quitsmoking, married, <any>[time][.sh] | |
[[ "${*/-r}" != "$*" ]] && date +%s >~/".${era}time" 2>/dev/null # "-r" option (re)sets start to right now | |
until timestring="$(cat ~/".${era}time" 2>/dev/null)"; date -d "@$timestring" >/dev/null 2>&1;do | |
read -r -e -p "Enter ${era} start date (e.g. YYYY-MM-DD HH:MM): " timestring # or any format recognized by date(1) | |
[[ -n "$timestring" ]] && date -d "$timestring" +%s >~/".${era}time" 2>/dev/null | |
done;shopt -s extglob # just stashing this here for the +() later, since "-O extglob" in the shebang doesn't work | |
while esecs="$(($(date +%s) - timestring))";do | |
upstring=" $((esecs/3600/24/365))y $(printf "%3id %2ih %2im %2is" $((esecs/3600/24%365)) $((esecs/3600%24)) $((esecs/60%60)) $((esecs%60)))" | |
printf "\r%s for%s" "${era}" "${upstring/+(+( )0[ydhm])}" |
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/bash | |
function myhelp() { | |
printf "Usage:\n\t$(basename $1)";shift;printf " $*" >/dev/stderr | |
exit 1 | |
} | |
[ $# -lt 2 ] && myhelp $0 "<source> <destination>\n | |
Calculates %% complete of a copy from <source> to <destination> | |
Can be started before (or after) <destination> exists.\n\n" | |
pcsrc=$(du -bsL "$1" | cut -f1) | |
pcdst=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
#!/usr/bin/env bash | |
# Copyright 2010 Grant Wier <polyze at ze dAWT yi dAWT org> | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, version 3. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
# GNU General Public License for more details. |
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
Everything i have ever understood appears to be definable by an inter-relational structure. | |
Anything else that could be proposed to define something would relate to it in doing so and thereby | |
constitute a definition by inter-relational structure itself, therefore nothing else is necessary or | |
even possible to define something. Consequently, a purported something without an inter-relational | |
structure is not even defined for consideration, which includes the explicitly non-definitional | |
concepts of 'nothing' or 'non-existence'. For lack of alternative, "something" must exist and, also | |
without any external relationship to give it shape or limit, that something must therefore consist of | |
the self-contained inter-relational structure composed of all possible inter-relational structures. | |
This is guaranteed to include regions that define the underlying structures of spacetimes and all they | |
contain. Some of these configurations are guaranteed to include the conditions for structures that |
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 -ur povray-3.7.0.RC7/source/backend/frame.h povray-3.7.0.RC7.5dturb/source/backend/frame.h | |
--- povray-3.7.0.RC7/source/backend/frame.h 2013-02-05 17:27:08.000000000 -0800 | |
+++ povray-3.7.0.RC7.5dturb/source/backend/frame.h 2013-09-24 09:09:59.607596915 -0700 | |
@@ -1269,6 +1269,7 @@ | |
VECTOR Turbulence; | |
int Octaves; | |
SNGL Lambda, Omega; | |
+ UV_VECT Hyper; | |
}; | |
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
#version 3.7; | |
#declare inverse_n = function(n,x,y,z) { 1/pow(n, sqrt((x*x)+(y*y)+(z*z))) } | |
global_settings { | |
assumed_gamma 1.0 | |
ambient_light 0 | |
} | |
background { color rgb 0 } | |
camera { | |
location <0,0,-13> | |
look_at <0,0,0> |
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 | |
CURRENT=$(setxkbmap -print | grep symbols | cut -d\( -f2 | cut -d\) -f1) | |
if [ "$CURRENT" == "dvorak" ];then | |
setxkbmap us | |
else | |
setxkbmap dvorak | |
fi |
OlderNewer