Skip to content

Instantly share code, notes, and snippets.

View chongchonghe's full-sized avatar

ChongChong He chongchonghe

View GitHub Profile
@SomeClown
SomeClown / crontab
Created January 15, 2017 02:30
crontab entry for mbsync
*/5 * * * * killall mbsync &>/dev/null; /usr/local/bin/mbsync -a -V 2>&1 > ~/.mbsync_log
@Winawer
Winawer / convert_bib.py
Last active October 5, 2021 19:21
Import to mendeley from bibdesk
import base64,re
# Replace these filenames with your input and output filenames.
# Or rewrite it to pass filenames on the command line.
infilename = 'replaceme.bib'
outfilename = 'replacemetoo.bib'
r = re.compile("Bdsk-File[^.]*(?P<ending>}}|},)")
with open(infilename,'r') as infile: