Skip to content

Instantly share code, notes, and snippets.

@OhadRubin
OhadRubin / bash-cheatsheet.sh
Created May 5, 2017 02:40 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@OhadRubin
OhadRubin / import_from_gist.py
Last active December 17, 2020 13:09 — forked from koji-kojiro/import_from_gist.py
[Python] import from Gist (works on python3)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
def load_gist(gist_id):
"""translate Gist ID to URL"""
from json import load
from urllib.request import Request, urlopen
gist_api = urlopen("https://api.github.com/gists/" + gist_id)