Socialabel

Monday, March 30, 2015

Zotero Plugin Extention

http://mirror.ufs.ac.za/zotero/

Saturday, March 7, 2015

Python Send Mail HTML

import smtplib
from email.MIMEMultipart import MIMEMultipart
from email.MIMEImage import MIMEImage
from email.MIMEText import MIMEText
# Specifying the from and to addresses
fromaddr = 'kick_noreplay@zipruz.com'
toaddrs  = 'hery@zipruz.com'
# Gmail Login
username = 'kick_noreplay@zipruz.com'
password = 'password'
# Sending the mail
msg2= MIMEMultipart('alternative')
msg2.add_header('Subject', 'INI DATA BARU')
msg2.attach(MIMEText('some code'))
msg2.attach(MIMEText('<html><body><a href="http://zipruz.com">ZIPRUZ MAIL</a></body></html>', 'html'))
server = smtplib.SMTP('smtp.gmail.com:587')
server.starttls()
server.login(username,password)
server.sendmail(fromaddr, toaddrs.split(","), msg2.as_string())
server.quit()

Sunday, February 22, 2015

Abnormal Port Firefox dan CHrome

Firefox
Case:

This address is restricted
This address uses a network port which is normally used for purposes other than Web browsing. Firefox has canceled the request for your protection.
Solve:
1. about:config
3. new->string
4. network.security.ports.banned.override
5. insert port: ex:53

Chrome
Error code: ERR_UNSAFE_PORT
1. vi /usr/share/applications/google-chrome.desktop
2. find, Exec=/usr/bin/google-chrome-stable %U
3. replace, Exec=/usr/bin/google-chrome-stable %U -explicitly-allowed-ports=53

Friday, February 6, 2015

Send Mail Console Linux

echo "INI ISI" | mail -s "INI TITLE" hery@zipruz.com