Skip to content

Instantly share code, notes, and snippets.

function emacs
echo "Using emacs client/daemon loader in config.fish..."
if ps -ef | grep "emacs --daemon" | grep -v grep | grep (whoami)
env emacsclient -t $argv
else
emacs --daemon
env emacsclient -t $argv
end
end
@metachu
metachu / metachuorg.lua
Created July 28, 2012 13:08
Org mode agenda for awesome-wm
local string = string
--local print = print
local tostring = tostring
local io = io
local table = table
local pairs = pairs
local capi = {
mouse = mouse,
screen = screen
}
@metachu
metachu / email.py
Created December 14, 2011 21:58
Send email via python
import smtplib
from email.MIMEText import MIMEText
GMAIL_LOGIN = '[email protected]'
GMAIL_PASSWORD = 'password'
def send_email(subject, message, from_addr=GMAIL_LOGIN, to_addr=GMAIL_LOGIN):
msg = MIMEText(message)
@metachu
metachu / sms.py
Created December 14, 2011 10:52
Sms with google calendar
#!/usr/bin/python
#requires pip install google-api-python-client
#requires pip install gdata
import sys
import os
import gdata
import time
import gdata.calendar.service
import gdata.calendar