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
body{background:gray} | |
table{background:#000;border:2px solid #000} | |
table.center{margin-left:auto;margin-right:auto} | |
.month{font-size:50px;word-spacing:.5em;color:#FFF;font-weight:700} | |
td{font-family:Arial;text-align:center;font-size:25px;width:82px;height:82px;padding:0;font-weight:700} | |
.weekbar{height:10px;background:#232323;color:#FFF} | |
.sunday{background-color:#606060;color:#FFF;font-style:italic} | |
.weekday{background-color:silver} | |
.today{background-color:red;font-size:35px;color:#FFF} | |
.today:hover{background-color:#000;color:red} |
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
#!/bin/bash | |
if [ "$1" ]; then | |
declare -u metar="$1" | |
curl -s http://tgftp.nws.noaa.gov/weather/current/${metar}.html | \ | |
grep -A 5 Temperature | grep "F ([0-9]" | awk -F ">" '{print $3}' | sed 's/(.*//' | sed 's/^ *//' | |
fi |
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
#!/bin/bash - | |
if [ ! "$1" ]; then | |
exit 1 | |
fi | |
in_file="$1" | |
if [ ! -e "$in_file" ] || [ -d "$in_file" ]; then | |
exit 1 |
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
#!/bin/bash - | |
reddit_user="$1" | |
echo | |
echo "karma for /u/${reddit_user}" | |
echo | |
page=$(lynx -source "https://www.reddit.com/user/${reddit_user}/") |
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
#!/bin/bash - | |
PROGRAM="${0##*/}" | |
REDDIT_URL="https://www.reddit.com/" | |
USAGE=" | |
$PROGRAM -flag parameter | |
-h | --help show this help and exit |
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
#!/bin/bash - | |
# Dim the screen with xbacklight using 1, 2, 3 buttons. | |
dim() | |
{ | |
local prog=/usr/bin/xbacklight | |
local step=20 state | |
which $prog >/dev/null |
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
#!/bin/bash - | |
# SCRIPT: mkpr | |
# AUTHOR: Luciano D. Cecere | |
# YEAR: 2016 | |
# PURPOSE: This script creates a new shell project with common directories and files included. | |
# USAGE: mkpr project-name version | |
# NOTE: If a version number is not specified, 0.0.1 is used by default. | |
PROGRAM="${0##*/}" |
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
## Here is an example for markdown. | |
## | |
syntax "markdown" "\.(md|MD)$" | |
color brightred "#*" | |
color white "^\* " | |
color red "\*\*" |
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
#!/bin/bash - | |
# | |
# SCRIPT: exnote | |
# AUTHOR: Luciano D. Cecere | |
######################################################################## | |
# | |
# exnote - convert signed decimals and integers to exponential notation | |
# Copyright (C) 2015 Luciano D. Cecere <[email protected]> | |
# | |
# This program is free software: you can redistribute it and/or modify |
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
#!/bin/bash - | |
# | |
# SCRIPT: hexnote | |
# AUTHOR: Luciano D. Cecere | |
######################################################################## | |
# | |
# hexnote - convert base 10 integers to hexadecimal notation | |
# Copyright (C) 2015 Luciano D. Cecere <[email protected]> | |
# | |
# This program is free software: you can redistribute it and/or modify |