Skip to content

Instantly share code, notes, and snippets.

@TimRepke
TimRepke / README.md
Last active October 23, 2024 13:08
PST Archive to RFC822 (*.eml) script

PST Archive to RFC822

This script extracts all emails from an Outlook PST archive and saves them into some output folder as individual RFC822 compliant *.eml files.

Installing the external dependency pypff may not be straight forward (it wasn't for me). I forked the original repository to make it work in Python 3. If you get errors, check their wiki pages for help or try my fork. Below are the steps that worked for me:

Clone https://github.com/libyal/libpff/tree/master/pypff

@UedaTakeyuki
UedaTakeyuki / mh_z19.py
Last active March 19, 2021 13:31
MH-Z19 CO2 Sensor reading.
# http://eleparts.co.kr/data/design/product_file/SENSOR/gas/MH-Z19_CO2%20Manual%20V2.pdf
# http://qiita.com/UedaTakeyuki/items/c5226960a7328155635f
import serial
import time
def mh_z19():
ser = serial.Serial('/dev/ttyAMA0',
baudrate=9600,
bytesize=serial.EIGHTBITS,
parity=serial.PARITY_NONE,
@anupdhml
anupdhml / lastfm_to_gmusic.py
Last active November 16, 2017 06:01 — forked from Timmmm/lastfm_to_gmusic.py
Lastfm loved tracks/playlist to Google Music playlist, either with songs from your library or from all access. Order of songs in lastfm is preserved and can export/load them from a json file.
#!/usr/bin/env python
# Lastfm loved tracks/playlist to Google Music playlist, either with songs from your library or from all access
# Order of songs in lastfm is preserved.
# First export the lastfm data in a json file, and then import it into Google Music
# You can edit the intermediate json file if you wish.
#
# Based on this script.
# https://gist.github.com/Timmmm/6572592
#
@Timmmm
Timmmm / lastfm_to_gmusic.py
Last active June 1, 2018 12:43
Convert Last.fm loved tracks to your Google Play Store Music Play All Access Subscription Service by Google™. It creates a new playlist rather than adding the tracks to your library willy-nilly. See code for more details.
#!/usr/bin/env python
# Lastfm loved tracks to Google Music All Access playlist. As noted in the comments you do need the All Access subscription thing otherwise it will always find 0 songs.
#
# Written by Tim Hutt, [email protected], based on this script:
#
# https://gist.github.com/oquno/3664731
#
# Today is the 15th of September 2013.
#
@uupaa
uupaa / irc.mac.remove.quit.md
Last active June 27, 2024 15:17
Remove message(joined, left, quit) for Limechat Mac

IRC クライアント Limechat for Mac で joined, left, quit メッセージを消す方法

/Applications/LimeChat.app/Contents/Themes/Limelight.css に以下のCSSを追加。
他のテーマを使っている場合は、そのテーマのcssを編集。

.line[type=join] { display:none; }
.line[type=quit] { display:none; }
.line[type=mode] { display:none; }
.line[type=part] { display:none; }