Skip to content

Instantly share code, notes, and snippets.

View bfeldman89's full-sized avatar

Blake Feldman bfeldman89

View GitHub Profile
@anoved
anoved / readinglistdump.py
Created February 9, 2012 01:57
Reading List dump. Print information about unread items in Mac OS X's Safari 5.1+ "Reading List" bookmarks.
#!/usr/bin/env python
#
# What does this script do?
# It prints information about the Unread items in your Safari Reading List.
# The oldest item is printed first (maybe). Each item is printed on its own
# line. The line format is "Title", "Preview text", "URL", "bookmark date".
#
# What is the Safari Reading List?
# A category of bookmarks introduced in Safari 5.1, intended to represent
@sorin-ionescu
sorin-ionescu / safari_reading_list_to_read_later_service.py
Last active March 14, 2019 08:50
Imports the Safari Reading List into read later services such as Instapaper, Readability, and Pocket.
#!/usr/bin/env python
# encoding: utf-8
#
# safari_reading_list_to_read_later_service.py
#
# Imports the Safari Reading List into read later services such as Instapaper,
# Readability, and Pocket.
#
# (The MIT License)
@yanofsky
yanofsky / LICENSE
Last active May 4, 2024 08:45
A script to download all of a user's tweets into a csv
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
@octocat
octocat / .gitignore
Created February 27, 2014 19:38
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@vladignatyev
vladignatyev / progress.py
Last active March 31, 2024 22:54
Python command line progress bar in less than 10 lines of code.
# The MIT License (MIT)
# Copyright (c) 2016 Vladimir Ignatev
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the Software
# is furnished to do so, subject to the following conditions:
#
@tzmartin
tzmartin / m3u8-to-mp4.md
Last active April 26, 2024 01:50
m3u8 stream to mp4 using ffmpeg

1. Copy m3u8 link

Alt text

2. Run command

echo "Enter m3u8 link:";read link;echo "Enter output filename:";read filename;ffmpeg -i "$link" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 $filename.mp4
@trusktr
trusktr / image-grid.md
Last active May 1, 2024 19:59
Image grid in Markdown
screen shot 2017-08-07 at 12 18 15 pm blah screen shot 2017-08-07 at 12 18 15 pm screen shot 2017-08-07 at 12 18 15 pm
@irisli
irisli / colors.md
Last active October 6, 2021 18:13
Github Flavored Markdown (GFM) Colored text

Using diff: red/green monospaced text

+ Green.Like all Byzantine agreement protocols, SCP makes no assumptions about the rational behavior of attackers.
- Red. Like all Byzantine agreement protocols, SCP makes no assumptions about the rational behavior of attackers.
Black. Like all Byzantine agreement protocols, SCP makes no assumptions about the rational behavior of attackers.

Using code comments: gray text

@ebergam
ebergam / python_to_ifttt.py
Created February 6, 2018 09:15
Connect a Python script to IFTTT
import requests
from bs4 import BeautifulSoup
url = ‘http://www.enricobergamini.it/trialpage.html'
#load and scrape
response = requests.get(url)
html = response.content
soup = BeautifulSoup(html, “lxml”)
number = soup.find(‘h1’, id=’number’).text
😀 Grinning Face
😁 Beaming Face With Smiling Eyes
😂 Face With Tears of Joy
🤣 Rolling on the Floor Laughing
😃 Grinning Face With Big Eyes
😄 Grinning Face With Smiling Eyes
😅 Grinning Face With Sweat
😆 Grinning Squinting Face
😉 Winking Face
😊 Smiling Face With Smiling Eyes