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 | |
# Suspend, hibernate, restart or shutdown the computer without sudo! | |
# by Chris Wong | |
# Released to the public domain. | |
NAME=$0 | |
usage() { | |
echo "Usage: $NAME suspend|hibernate|restart|shutdown" |
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 python | |
"""Epic script to rename scary uppercase extensions (like .JPG) to | |
more friendly lowercase (like .jpg). | |
How to use | |
========== | |
Recursively rename all files in the current directory:: | |
fixext |
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
interface Fish { int getNumberOfScales(); } | |
interface Piano { int getNumberOfScales(); } | |
class Tuna implements Fish, Piano { | |
// You can tune a piano, but can you tuna fish? | |
int getNumberOfScales() { return 91; } | |
} |
NewerOlder