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 | |
if [ "$(id -u)" != 0 ]; then | |
echo "Please run this as root." | |
exit 1 | |
fi | |
echo "Success! You are root!" |
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
# Use the terminal to create your message | |
say -v Samantha -o mail.m4a "you've got mail" | |
# or... | |
say -v Samantha -o incoming.m4a "incoming message" | |
# convert the m4a file to wav for use in Thunderbird | |
afconvert -d UI8 -f 'WAVE' mail.m4a | |
afconvert -d UI8 -f 'WAVE' incoming.m4a |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>Audio on the Web!</title> | |
</head> | |
<body> | |
<h1>How do you play audio on a website?</h1> |
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/local/bin/python3 | |
# | |
# email_o365.py | |
# /sable cantus/ | |
# http://cantus.us/ | |
################### | |
""" | |
https://github.com/Narcolapser/python-o365 | |
$ pip3 install O365 |
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/local/bin/python3 | |
# | |
# check_o365.py | |
# /sable cantus/ | |
# http://cantus.us/ | |
################### | |
""" | |
https://github.com/Narcolapser/python-o365 | |
$ pip3 install O365 |
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/local/bin/python3 | |
# | |
# send_o365.py | |
# /sable cantus/ | |
# http://cantus.us/ | |
################### | |
""" | |
Use in a delay_until script to send a timed message. |
I hereby claim:
- I am sc137 on github.
- I am sable (https://keybase.io/sable) on keybase.
- I have a public key whose fingerprint is A18C 5546 1B0D B6E7 A9D3 ACCE D57E 63B5 9D2C 36E1
To claim this, I am signing this object:
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 | |
read -p "Enter the url to shorten: " URL | |
if [ ! -z $URL ]; then | |
shorty=`curl http://tinyurl.com/api-create.php?url=$URL` | |
echo $shorty | |
echo $shorty | pbcopy | |
echo "tinyurl copied to pasteboard" |
OlderNewer