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 (( $(id -u) )) ; then | |
echo "This script needs to run as root" | |
exit 1 | |
fi | |
if [[ -z "$1" ]] ; then | |
echo "Usage: $(basename $0) [username] [realname (optional)]" | |
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
# Filename: $HOME/.screenrc | |
# Purpose: Setup file for program "(GNU) screen" | |
# Latest change: Mon Jan 26 10:51:50 CET 2004 | |
# Author: Michael Prokop / <[email protected]> / www.michael-prokop.at | |
# =============================================================== | |
# | |
# =============================================================== | |
# SEE ALSO: | |
# =============================================================== | |
# SCREEN Pages: |
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
# Link: <http://example.com/resources?page=2>; rel="next", <http://example.com/resources?page=5>; rel="last" | |
links = {} | |
headers['Link'].split(',').each do |link| | |
link.strip! | |
parts = link.match(/<(.+)>; *rel="(.+)"/) | |
links[parts[2]] = parts[1] | |
end |