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/perl | |
use Date::Manip; | |
$date = `grep "pacman -Syu" /var/log/pacman.log | tail -n1 | cut -c 2- | cut -c-16`; | |
$date = &DateCalc("Jan 1, 1970 00:00:00 GMT",$date); | |
$date = UnixDate("$date","%A %H:%M"); | |
print "$date"; |
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
The MIT License (MIT) | |
Copyright (c) 2014 Simone Lombardi | |
Permission is hereby granted, free of charge, to any person obtaining a copy of | |
this software and associated documentation files (the "Software"), to deal in | |
the Software without restriction, including without limitation the rights to | |
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | |
the Software, and to permit persons to whom the Software is furnished to do so, | |
subject to the following conditions: |
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.mozilla.org/keymaster/gatekeeper/there.is.only.xul); | |
/* | |
Firefox CSS for Nightly/Australis by Twily | |
** REQUIRES FIREFOX NIGHTLY v29 AND UP | |
*/ | |
:root { | |
/* VARIABLES */ | |
var-bg-light: #424242; var-bg-dark: #000000; | |
var-fg-light: #ffffff; var-fg-dark: #ffffff; |
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
#nav-bar { display: none !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
set gui=nonavigation | |
set cpt=l | |
set visualbell | |
set noerrorbells | |
set hintchars=abcdefghijklmnopqrstuvwxyz | |
map <Right> gt | |
map <Left> gT | |
map <C-s> / | |
colorscheme molokai |
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
/* appearance */ | |
static const char font[] = "-*-terminus-medium-r-*-*-16-*-*-*-*-*-*-*"; | |
static const char normbordercolor[] = "#444444"; | |
static const char normbgcolor[] = "#151515"; | |
static const char normfgcolor[] = "#aaaaaa"; | |
static const char selbordercolor[] = "#151515"; | |
static const char selbgcolor[] = "#151515"; | |
static const char selfgcolor[] = "#ff8c00"; | |
static const unsigned int gappx = 2; | |
static const unsigned int borderpx = 1; /* border pixel of windows */ |
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
USER=your_username | |
PASS=your_passwd | |
COUNT=`curl -su $USER:$PASS https://mail.google.com/mail/feed/atom || echo "<fullcount>unknown number of</fullcount>"` | |
COUNT=`echo "$COUNT" | grep "<fullcount>" | sed -e s/"<fullcount>"// -e s/"<\/fullcount>"//` | |
echo $COUNT | |
if [ "$COUNT" != "0" ]; then | |
if [ "$COUNT" = "1" ];then | |
WORD="mail"; | |
else |
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
sed -n '1s/^\[\([0-9-]*\).*$/\1/p' /var/log/pacman.log | tr - . |
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
BATT=`acpi -b | awk '{ split($5,a,":"); print substr($3,0,2), $4, "["a[1]":"a[2]"]" }' | tr -d ',' | awk '{print $2}' | sed 's/\%//g'` | |
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
char* strtok(char* str, const char* delim) { | |
static char* s = NULL; | |
char* tok; | |
if(str == NULL) { | |
if(s == NULL) | |
return NULL; | |
} else | |
s = str; | |
for(size_t i; (*s != '\0'); s++) { | |
for(i = 0; (delim[i] != '\0') && (*s != delim[i]); i++); |
OlderNewer