Skip to content

Instantly share code, notes, and snippets.

View HosseinAbedi's full-sized avatar
🏠
Working from home

Hossein Abedi HosseinAbedi

🏠
Working from home
View GitHub Profile
@HosseinAbedi
HosseinAbedi / install-ghc-ubuntu.md
Created August 21, 2016 12:33 — forked from yantonov/install-ghc-ubuntu.md
How to install latest GHC 8.0.1 from source + stack 1.1.2 + cabal 1.24.0.0 + cabal-install 1.24.0.0 on ubuntu

How to install latest GHC 8.0.1 from source + stack 1.1.2 + cabal 1.24.0.0 + cabal-install 1.24.0.0 on ubuntu

for your convinience these instuction is available as:
gist
git repo

preferred way install stack than install ghc

settings

@HosseinAbedi
HosseinAbedi / linkedin_access_oauth1.py
Created January 28, 2016 20:35 — forked from lebedov/linkedin_access_oauth1.py
Get LinkedIn access tokens without having to open a web browser.
#!/usr/bin/env python
"""
Get LinkedIn OAuth1 access tokens without having to open a web browser.
Notes
-----
Based upon https://developer.linkedin.com/documents/getting-oauth-token-python
Assumes that the application API key, secret key, user name, and password are stored
@HosseinAbedi
HosseinAbedi / extract_emails_from_text.py
Created January 20, 2016 17:56 — forked from dideler/example.md
A python script for extracting email addresses from text files. You can pass it multiple files. It prints the email addresses to stdout, one address per line. For ease of use, remove the .py extension and place it in your $PATH (e.g. /usr/local/bin/) to run it like a built-in command.
#!/usr/bin/env python
#
# Extracts email addresses from one or more plain text files.
#
# Notes:
# - Does not save to file (pipe the output to a file if you want it saved).
# - Does not check for duplicates (which can easily be done in the terminal).
#
# (c) 2013 Dennis Ideler <[email protected]>